13390
|
1 |
#
|
|
2 |
# spec file for package SUNWnwam-manager
|
|
3 |
#
|
|
4 |
# includes module(s): nwam-manager
|
|
5 |
#
|
15556
|
6 |
# Copyright 2009 Sun Microsystems, Inc.
|
13390
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
16434
|
10 |
%define owner dkenny
|
13390
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use nwam_manager = nwam-manager.spec
|
|
15 |
|
|
16 |
Name: SUNWnwam-manager
|
13405
|
17 |
Summary: Network Auto-Magic User Interface
|
13390
|
18 |
Version: %{default_pkg_version}
|
16280
|
19 |
Vendor: %{nwam_manager.vendor}
|
|
20 |
License: %{nwam_manager.license}
|
13390
|
21 |
Source: %{name}-manpages-0.1.tar.gz
|
|
22 |
SUNW_BaseDir: %{_prefix}
|
|
23 |
SUNW_Copyright: %{name}.copyright
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
|
|
26 |
%include default-depend.inc
|
15650
|
27 |
BuildRequires: SUNWlibgnomecanvas-devel
|
13390
|
28 |
BuildRequires: SUNWgnome-libs-devel
|
|
29 |
# Disable these until NWAM 0.5 integrated into OpenSolaris
|
|
30 |
# BuildRequires: SUNWnwamintu
|
|
31 |
# BuildRequires: SUNWnwamintr
|
|
32 |
BuildRequires: SUNWcslr
|
15650
|
33 |
Requires: SUNWlibgnomecanvas
|
13390
|
34 |
Requires: %{name}-root
|
|
35 |
Requires: SUNWgnome-libs
|
|
36 |
Requires: SUNWgnome-session
|
|
37 |
Requires: SUNWcslr
|
15556
|
38 |
Requires: SUNWdesktop-cache
|
13390
|
39 |
|
|
40 |
%package root
|
|
41 |
Summary: %{summary} - / filesystem
|
|
42 |
SUNW_BaseDir: /
|
|
43 |
%include default-depend.inc
|
|
44 |
|
|
45 |
%if %build_l10n
|
|
46 |
%package l10n
|
|
47 |
Summary: %{summary} - l10n files
|
|
48 |
SUNW_BaseDir: %{_basedir}
|
|
49 |
%include default-depend.inc
|
|
50 |
Requires: %{name}
|
|
51 |
%endif
|
|
52 |
|
|
53 |
%prep
|
|
54 |
rm -rf %name-%version
|
|
55 |
mkdir %name-%version
|
|
56 |
%nwam_manager.prep -d %name-%version
|
|
57 |
cd %{_builddir}/%name-%version
|
|
58 |
gzcat %SOURCE0 | tar xf -
|
|
59 |
|
|
60 |
%build
|
|
61 |
%nwam_manager.build -d %name-%version
|
|
62 |
|
|
63 |
%install
|
|
64 |
rm -rf $RPM_BUILD_ROOT
|
|
65 |
%nwam_manager.install -d %name-%version
|
|
66 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
67 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
68 |
|
|
69 |
%if %build_l10n
|
|
70 |
%else
|
|
71 |
# REMOVE l10n FILES
|
|
72 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
73 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
74 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
|
|
75 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf
|
|
76 |
%endif
|
|
77 |
|
|
78 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT}
|
|
79 |
|
|
80 |
%clean
|
|
81 |
rm -rf $RPM_BUILD_ROOT
|
|
82 |
|
|
83 |
%post
|
15556
|
84 |
%restart_fmri icon-cache gconf-cache
|
13405
|
85 |
|
13390
|
86 |
%files
|
|
87 |
%defattr (-, root, bin)
|
|
88 |
%dir %attr (0755, root, bin) %{_libexecdir}
|
|
89 |
%{_libexecdir}/*
|
|
90 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
91 |
%dir %attr (0755, root, bin) %{_datadir}/nwam-manager
|
|
92 |
%dir %attr (0755, root, bin) %{_datadir}/nwam-manager/icons
|
13405
|
93 |
%attr (-, root, bin) %{_datadir}/nwam-manager/*.*
|
|
94 |
%attr (-, root, bin) %{_datadir}/nwam-manager/icons/*
|
13390
|
95 |
%dir %attr (0755, root, other) %{_datadir}/icons
|
13438
|
96 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor
|
|
97 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
|
|
98 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/status
|
|
99 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24
|
|
100 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps
|
|
101 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/status
|
|
102 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32
|
|
103 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps
|
|
104 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/status
|
|
105 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48
|
|
106 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps
|
|
107 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/status
|
|
108 |
%attr (-, root, other) %{_datadir}/icons/hicolor/16x16/status/*
|
|
109 |
%attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps/*
|
|
110 |
%attr (-, root, other) %{_datadir}/icons/hicolor/24x24/status/*
|
|
111 |
%attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps/*
|
|
112 |
%attr (-, root, other) %{_datadir}/icons/hicolor/32x32/status/*
|
|
113 |
%attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps/*
|
|
114 |
%attr (-, root, other) %{_datadir}/icons/hicolor/48x48/status/*
|
13390
|
115 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
116 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
117 |
%{_mandir}/*/*
|
13589
|
118 |
%doc -d nwam-manager-%{nwam_manager.version} AUTHORS README
|
|
119 |
%doc(bzip2) -d nwam-manager-%{nwam_manager.version} COPYING ChangeLog
|
|
120 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
13390
|
121 |
|
|
122 |
%files root
|
|
123 |
%defattr(-, root, sys)
|
|
124 |
%attr(0755, root, sys) %dir %{_sysconfdir}
|
|
125 |
%{_sysconfdir}/gconf/schemas/nwam-manager.schemas
|
|
126 |
%dir %attr (-, root, sys) %{_sysconfdir}/xdg
|
|
127 |
%dir %attr (-, root, sys) %{_sysconfdir}/xdg/autostart
|
|
128 |
%attr (-, root, sys) %{_sysconfdir}/xdg/autostart/*
|
|
129 |
|
|
130 |
%if %build_l10n
|
|
131 |
%files l10n
|
|
132 |
%defattr (-, root, bin)
|
|
133 |
%dir %attr (0755, root, sys) %{_datadir}
|
14475
|
134 |
%attr (-, root, other) %{_datadir}/locale
|
13390
|
135 |
%endif
|
|
136 |
|
|
137 |
%changelog
|
15556
|
138 |
* Fri Apr 3 2009 - [email protected]
|
|
139 |
- use desktop-cache instead of postrun
|
13589
|
140 |
* Mon Sep 15 2008 - [email protected]
|
|
141 |
- Update copyright (thanks to Matt for the changes).
|
13438
|
142 |
* Mon Sep 8 2008 - [email protected]
|
|
143 |
- Fix some icon file attributes.
|
13429
|
144 |
* Fri Sep 5 2008 - [email protected]
|
|
145 |
- Comment more l10n dirs until there is something to deliver, it's
|
|
146 |
causing build failures.
|
13405
|
147 |
* Thu Sep 4 2008 - [email protected]
|
|
148 |
- Fix some issues in spec, add preun for schema and fix l10n build..
|
13390
|
149 |
* Wed Sep 3 2008 - [email protected]
|
|
150 |
- Initial delivery.
|
15650
|
151 |
|