author | laca |
Wed, 22 Oct 2008 03:25:32 +0000 | |
branch | opensolaris-2008-11 |
changeset 14363 | 2a7a35a50343 |
parent 13569 | 72d623d6e95b |
child 15556 | 79756053d7da |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-system-tools |
|
3 |
# |
|
4 |
# includes module(s): gnome-system-tools, system-tools-backends |
|
5 |
# |
|
11370 | 6 |
# Copyright 2008 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: dkenny |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
%use gnomesystemtools = gnome-system-tools.spec |
|
14 |
%use systemtoolsbackends = system-tools-backends.spec |
|
12798 | 15 |
%define network_admin_sh %gnomesystemtools.SOURCE3 |
9397 | 16 |
|
17 |
Name: SUNWgnome-system-tools |
|
18 |
Summary: GNOME system tools |
|
19 |
Version: %{default_pkg_version} |
|
20 |
||
21 |
SUNW_BaseDir: %{_basedir} |
|
12114 | 22 |
SUNW_Copyright: %{name}.copyright |
9397 | 23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
24 |
Source: %{name}-manpages-0.1.tar.gz |
|
25 |
Source1: %{name}-exec_attr |
|
26 |
Requires: SUNWgnome-config |
|
27 |
Requires: SUNWgnome-base-libs |
|
28 |
Requires: SUNWgnome-file-mgr |
|
29 |
Requires: SUNWgnome-libs |
|
30 |
Requires: SUNWgnome-vfs |
|
31 |
Requires: SUNWlibms |
|
32 |
Requires: SUNWlxml |
|
33 |
Requires: SUNWperl584core |
|
34 |
Requires: SUNWperl-authen-pam |
|
35 |
Requires: SUNWgksu |
|
36 |
BuildRequires: SUNWgnome-base-libs-devel |
|
37 |
BuildRequires: SUNWgnome-file-mgr-devel |
|
38 |
BuildRequires: SUNWgnome-libs-devel |
|
39 |
BuildRequires: SUNWgnome-vfs-devel |
|
10645 | 40 |
BuildRequires: SUNWgnome-doc-utils |
9397 | 41 |
BuildRequires: SUNWgnome-config-devel |
42 |
BuildRequires: SUNWgksu-devel |
|
43 |
||
44 |
%include default-depend.inc |
|
45 |
||
46 |
%if %build_l10n |
|
47 |
%package l10n |
|
48 |
Summary: %{summary} - l10n files |
|
49 |
SUNW_BaseDir: %{_basedir} |
|
50 |
%include default-depend.inc |
|
51 |
Requires: %{name} |
|
52 |
%endif |
|
53 |
||
54 |
%package devel |
|
55 |
Summary: %{summary} - development files |
|
56 |
SUNW_BaseDir: %{_basedir} |
|
57 |
%include default-depend.inc |
|
58 |
Requires: %name |
|
59 |
||
60 |
%package root |
|
61 |
Summary: %{summary} - / filesystem |
|
62 |
SUNW_BaseDir: / |
|
63 |
%include default-depend.inc |
|
64 |
Requires: SUNWpostrun-root |
|
65 |
Requires: SUNWgnome-config |
|
66 |
||
67 |
%prep |
|
68 |
rm -rf %name-%version |
|
69 |
mkdir %name-%version |
|
70 |
%systemtoolsbackends.prep -d %name-%version |
|
71 |
%gnomesystemtools.prep -d %name-%version |
|
72 |
cd %{_builddir}/%name-%version |
|
73 |
gzcat %SOURCE0 | tar xf - |
|
74 |
||
75 |
%build |
|
76 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal -I %{_builddir}/%{name}-%{version}/%{systemtoolsbackends.name}-%{systemtoolsbackends.version}/m4macros" |
|
11433 | 77 |
export LDFLAGS="%_ldflags -L%{_libdir} -lgnomevfs-2" |
78 |
export CFLAGS="%optflags -I%{_includedir}/gnome-vfs-2.0 -I%{_libdir}/gnome-vfs-2.0/include" |
|
79 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
9397 | 80 |
export PKG_CONFIG_PATH=%{_builddir}/%{name}-%{version}/%{systemtoolsbackends.name}-%{systemtoolsbackends.version}:%{_pkg_config_path} |
81 |
%systemtoolsbackends.build -d %name-%version |
|
82 |
%gnomesystemtools.build -d %name-%version |
|
83 |
||
84 |
%install |
|
85 |
rm -rf $RPM_BUILD_ROOT |
|
86 |
%systemtoolsbackends.install -d %name-%version |
|
87 |
%gnomesystemtools.install -d %name-%version |
|
88 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/security |
|
89 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/security/exec_attr |
|
90 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/inet/gnome-system-tools |
|
10128 | 91 |
# Change to allow for addition of a network wrapper script to allow |
92 |
# for a check whether NWAM is enabled or not. |
|
93 |
# Move binary to /usr/lib |
|
94 |
mv $RPM_BUILD_ROOT/%{_bindir}/network-admin $RPM_BUILD_ROOT/%{_libdir}/network-admin |
|
95 |
# Now place script in to bin dir. |
|
12798 | 96 |
install --mode=0755 %network_admin_sh $RPM_BUILD_ROOT/%{_bindir}/network-admin |
9397 | 97 |
#Manpages |
98 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
99 |
cd %{_builddir}/%name-%version/sun-manpages |
|
100 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
101 |
||
102 |
#FIXME: Remove scrollkeeper files |
|
10350 | 103 |
#rm -rf $RPM_BUILD_ROOT%{_prefix}/var/scrollkeeper |
104 |
#rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper |
|
105 |
#rmdir $RPM_BUILD_ROOT/var |
|
9397 | 106 |
#Delete all files we don't need at the moment from /usr/share/setup-tool-backends/scripts/ |
107 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/boot* |
|
108 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/dhcpd* |
|
109 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/print* |
|
110 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/font* |
|
111 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/display-conf |
|
112 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/media.pl |
|
113 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/memory-conf |
|
114 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/mouse-conf |
|
115 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/type1inst |
|
116 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/package-conf |
|
117 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/x.pl |
|
118 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/internetsharing-conf |
|
119 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/partition.pl |
|
120 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/disks-conf |
|
121 |
rm $RPM_BUILD_ROOT%{_datadir}/setup-tool-backends/scripts/ishare.pl |
|
122 |
||
123 |
||
124 |
%if %build_l10n |
|
125 |
%else |
|
126 |
# REMOVE l10n FILES |
|
127 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z][a-z] |
|
128 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
129 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
130 |
# Remove empty dirs i.e. those with no C locale omf file. |
|
131 |
rmdir $RPM_BUILD_ROOT%{_datadir}/omf/gnome-system-tools |
|
132 |
%endif |
|
133 |
||
134 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
135 |
||
136 |
%clean |
|
137 |
rm -rf $RPM_BUILD_ROOT |
|
138 |
||
139 |
%post root |
|
11370 | 140 |
%include gconf-install.script |
9397 | 141 |
|
142 |
%preun root |
|
143 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
144 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
145 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
146 |
echo ' exit 0'; |
|
147 |
echo '}'; |
|
148 |
echo 'umask 0022'; |
|
149 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
150 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
151 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
152 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
153 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
154 |
echo 'schemas="$SDIR/gnome-system-tools.schemas"'; |
|
155 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
156 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
157 |
||
158 |
%files |
|
159 |
%defattr (-, root, bin) |
|
160 |
%dir %attr (0755, root, bin) %{_bindir} |
|
161 |
%{_bindir}/* |
|
162 |
%dir %attr (0755, root, bin) %{_libdir} |
|
163 |
%{_libdir}/nautilus |
|
10128 | 164 |
%{_libdir}/network-admin |
9397 | 165 |
%dir %attr (0755, root, sys) %{_datadir} |
166 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
167 |
%{_datadir}/applications/* |
|
168 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
169 |
%{_datadir}/gnome/help/*/C |
|
170 |
%{_datadir}/omf/*/*-C.omf |
|
171 |
%{_datadir}/gnome-system-tools |
|
172 |
%{_datadir}/setup-tool-backends |
|
173 |
%dir %attr(0755, root, bin) %{_mandir} |
|
174 |
%{_mandir}/*/* |
|
13569
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
175 |
%doc gnome-system-tools-%{gnomesystemtools.version}/AUTHORS |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
176 |
%doc gnome-system-tools-%{gnomesystemtools.version}/README |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
177 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/COPYING |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
178 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/NEWS |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
179 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
180 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/doc/network/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
181 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/doc/services/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
182 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/doc/time/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
183 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/doc/users/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
184 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/interfaces/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
185 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/pixmaps/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
186 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/po/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
187 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/src/common/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
188 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/src/network/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
189 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/src/services/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
190 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/src/shares/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
191 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/src/time/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
192 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/src/time/e-map/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
193 |
%doc(bzip2) gnome-system-tools-%{gnomesystemtools.version}/src/users/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
194 |
|
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
195 |
%doc system-tools-backends-%{systemtoolsbackends.version}/AUTHORS |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
196 |
%doc system-tools-backends-%{systemtoolsbackends.version}/README |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
197 |
%doc(bzip2) system-tools-backends-%{systemtoolsbackends.version}/COPYING |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
198 |
%doc(bzip2) system-tools-backends-%{systemtoolsbackends.version}/NEWS |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
199 |
%doc(bzip2) system-tools-backends-%{systemtoolsbackends.version}/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
200 |
%doc(bzip2) system-tools-backends-%{systemtoolsbackends.version}/po/ChangeLog |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
201 |
%dir %attr (0755, root, other) %{_datadir}/doc |
9397 | 202 |
|
203 |
%files devel |
|
204 |
%defattr (-, root, bin) |
|
205 |
%dir %attr (0755, root, bin) %{_libdir} |
|
206 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
207 |
%{_libdir}/pkgconfig/* |
|
208 |
%dir %attr (0755, root, sys) %{_datadir} |
|
209 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
|
210 |
%{_datadir}/aclocal/* |
|
211 |
||
212 |
%if %build_l10n |
|
213 |
%files l10n |
|
214 |
%defattr (-, root, bin) |
|
215 |
%dir %attr (0755, root, sys) %{_datadir} |
|
216 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
217 |
%attr (-, root, other) %{_datadir}/locale |
|
218 |
%{_datadir}/gnome/help/*/[a-z][a-z] |
|
219 |
%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
220 |
#%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z][A-Z].omf |
|
221 |
%endif |
|
222 |
||
223 |
%files root |
|
9780 | 224 |
%defattr (-, root, sys) |
9397 | 225 |
%dir %{_sysconfdir} |
226 |
%attr (0644, root, sys) %{_sysconfdir}/gconf/schemas/gnome-system-tools.schemas |
|
227 |
%{_sysconfdir}/inet |
|
228 |
%config %class(rbac) %attr (0644, root, sys) %{_sysconfdir}/security/exec_attr |
|
229 |
||
230 |
%changelog |
|
13569
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
231 |
* Fri Sep 12 2008 - [email protected] |
72d623d6e95b
* SUNWgnome-system-tools.spec: Add %doc to %files
mattman
parents:
12798
diff
changeset
|
232 |
- Update copyright |
12783 | 233 |
* Wed Jul 9 2008 - [email protected] |
234 |
- Renamed %{name}-network-admin.ksh to %gnomesystemtools.SOURCE3 |
|
235 |
to get the SUN_BRANDING translation. |
|
11433 | 236 |
* Thu Jan 10 2008 - [email protected] |
237 |
- Add gnome-vfs info to CFLAGS and LDFLAGS as configure no longer retrieves |
|
238 |
them with pkg-config (libnautilus-extension depends on gio instead of |
|
239 |
gnome-vfs). |
|
11370 | 240 |
* Thu Jan 3 2008 - [email protected] |
241 |
- use gconf-install.script instead of an inline script |
|
10645 | 242 |
* Thu Oct 11 2007 - [email protected] |
243 |
- Remove install dependency on SUNWgnome-doc-utils and change the build |
|
244 |
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils. |
|
10401 | 245 |
* Wed Aug 29 2007 - [email protected] |
246 |
- Remove comment that this package is not to reviewed by JDS ARC team, since |
|
247 |
now we want it reviewed. |
|
10350 | 248 |
* Sat Aug 18 2007 - [email protected] |
249 |
- Comment out removal of /var dirs as they are no longer installed. |
|
10128 | 250 |
* Wed Jun 27 2007 - [email protected] |
251 |
- Fix for bug#6555581 - wrapper script for network-admin to first check |
|
252 |
whether NWAM is running. |
|
9780 | 253 |
* Tue Apr 24 2007 - [email protected] |
254 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9397 | 255 |
* Mon Nov 20 2006 - [email protected] |
256 |
- Removed the need for [ir].rbac since they already exist in |
|
257 |
/usr/sadm/install/scripts |
|
258 |
* Fri Nov 17 2006 - [email protected] |
|
259 |
- Add RBAC profiles |
|
260 |
* Fri Nov 17 2006 - [email protected] |
|
261 |
- Add manpages for build |
|
262 |
* Thu Nov 16 2006 - [email protected] |
|
263 |
- Delete all files we don't need now from /usr/share/setup-tool-backends/scripts/ |
|
264 |
* Mon Oct 23 2006 - [email protected] |
|
265 |
- Add dependency on SUNWgksu and SUNWgksu-devel for builds. |
|
266 |
* Wed Sep 27 2006 - [email protected] |
|
267 |
- Delete empty omf dir when not doing l10n build. |
|
268 |
* Wed Sep 20 2006 - [email protected] |
|
269 |
- Fix l10n package - nl locale omf file was in base and l10n package. |
|
270 |
* Mon Aug 21 2006 - [email protected] |
|
271 |
- Fix l10n package - nl locale omf file was in base and l10n package. |
|
272 |
* Fri Jul 14 2006 - [email protected] |
|
273 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
274 |
part of 6448317 |
|
275 |
* Thu Jun 29 2006 - [email protected] |
|
276 |
- update postrun scripts |
|
277 |
* Mon Jun 12 2006 - [email protected] |
|
278 |
- Specify %dir %attr for %{_datadir} in the devel package. |
|
279 |
- Change devel package to have a basedir of %{_basedir} instead of /. |
|
280 |
* Sun Jun 11 2006 - [email protected] |
|
281 |
- change group from other to bin/sys |
|
282 |
* Sat Jun 10 2006 - [email protected] |
|
283 |
- split pkgconfig and aclocal files into a -devel subpkg |
|
284 |
* Fri Jun 2 2006 - [email protected] |
|
285 |
- use post/preun scripts to install schemas into the merged gconf files |
|
286 |
* Wed Mar 15 2006 - [email protected] |
|
287 |
- Add to Build/Requires after running check-deps.pl. |
|
288 |
* Tue Mar 14 2006 - [email protected] |
|
289 |
- Set perms for %{_libdir} in %files. |
|
290 |
* Mon Mar 13 2006 - [email protected] |
|
291 |
- Add Build/Requires SUNWgnome-doc-utils/-devel. |
|
292 |
- Add to %files for l10n package. |
|
293 |
* Fri Mar 03 2006 - [email protected] |
|
294 |
- Initial spec-file created |