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
|
|
15 |
|
|
16 |
Name: SUNWgnome-system-tools
|
|
17 |
Summary: GNOME system tools
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
12114
|
21 |
SUNW_Copyright: %{name}.copyright
|
9397
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
Source: %{name}-manpages-0.1.tar.gz
|
|
24 |
Source1: %{name}-exec_attr
|
10128
|
25 |
Source2: %{name}-network-admin.ksh
|
9397
|
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.
|
|
96 |
install --mode=0755 %SOURCE2 $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}/*/*
|
|
175 |
|
|
176 |
%files devel
|
|
177 |
%defattr (-, root, bin)
|
|
178 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
179 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
180 |
%{_libdir}/pkgconfig/*
|
|
181 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
182 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
183 |
%{_datadir}/aclocal/*
|
|
184 |
|
|
185 |
%if %build_l10n
|
|
186 |
%files l10n
|
|
187 |
%defattr (-, root, bin)
|
|
188 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
189 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
190 |
%attr (-, root, other) %{_datadir}/locale
|
|
191 |
%{_datadir}/gnome/help/*/[a-z][a-z]
|
|
192 |
%{_datadir}/omf/*/*-[a-z][a-z].omf
|
|
193 |
#%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z][A-Z].omf
|
|
194 |
%endif
|
|
195 |
|
|
196 |
%files root
|
9780
|
197 |
%defattr (-, root, sys)
|
9397
|
198 |
%dir %{_sysconfdir}
|
|
199 |
%attr (0644, root, sys) %{_sysconfdir}/gconf/schemas/gnome-system-tools.schemas
|
|
200 |
%{_sysconfdir}/inet
|
|
201 |
%config %class(rbac) %attr (0644, root, sys) %{_sysconfdir}/security/exec_attr
|
|
202 |
|
|
203 |
%changelog
|
11433
|
204 |
* Thu Jan 10 2008 - [email protected]
|
|
205 |
- Add gnome-vfs info to CFLAGS and LDFLAGS as configure no longer retrieves
|
|
206 |
them with pkg-config (libnautilus-extension depends on gio instead of
|
|
207 |
gnome-vfs).
|
11370
|
208 |
* Thu Jan 3 2008 - [email protected]
|
|
209 |
- use gconf-install.script instead of an inline script
|
10645
|
210 |
* Thu Oct 11 2007 - [email protected]
|
|
211 |
- Remove install dependency on SUNWgnome-doc-utils and change the build
|
|
212 |
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils.
|
10401
|
213 |
* Wed Aug 29 2007 - [email protected]
|
|
214 |
- Remove comment that this package is not to reviewed by JDS ARC team, since
|
|
215 |
now we want it reviewed.
|
10350
|
216 |
* Sat Aug 18 2007 - [email protected]
|
|
217 |
- Comment out removal of /var dirs as they are no longer installed.
|
10128
|
218 |
* Wed Jun 27 2007 - [email protected]
|
|
219 |
- Fix for bug#6555581 - wrapper script for network-admin to first check
|
|
220 |
whether NWAM is running.
|
9780
|
221 |
* Tue Apr 24 2007 - [email protected]
|
|
222 |
- s/0755/-/ in defattr so that files are not made all executable
|
9397
|
223 |
* Mon Nov 20 2006 - [email protected]
|
|
224 |
- Removed the need for [ir].rbac since they already exist in
|
|
225 |
/usr/sadm/install/scripts
|
|
226 |
* Fri Nov 17 2006 - [email protected]
|
|
227 |
- Add RBAC profiles
|
|
228 |
* Fri Nov 17 2006 - [email protected]
|
|
229 |
- Add manpages for build
|
|
230 |
* Thu Nov 16 2006 - [email protected]
|
|
231 |
- Delete all files we don't need now from /usr/share/setup-tool-backends/scripts/
|
|
232 |
* Mon Oct 23 2006 - [email protected]
|
|
233 |
- Add dependency on SUNWgksu and SUNWgksu-devel for builds.
|
|
234 |
* Wed Sep 27 2006 - [email protected]
|
|
235 |
- Delete empty omf dir when not doing l10n build.
|
|
236 |
* Wed Sep 20 2006 - [email protected]
|
|
237 |
- Fix l10n package - nl locale omf file was in base and l10n package.
|
|
238 |
* Mon Aug 21 2006 - [email protected]
|
|
239 |
- Fix l10n package - nl locale omf file was in base and l10n package.
|
|
240 |
* Fri Jul 14 2006 - [email protected]
|
|
241 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
242 |
part of 6448317
|
|
243 |
* Thu Jun 29 2006 - [email protected]
|
|
244 |
- update postrun scripts
|
|
245 |
* Mon Jun 12 2006 - [email protected]
|
|
246 |
- Specify %dir %attr for %{_datadir} in the devel package.
|
|
247 |
- Change devel package to have a basedir of %{_basedir} instead of /.
|
|
248 |
* Sun Jun 11 2006 - [email protected]
|
|
249 |
- change group from other to bin/sys
|
|
250 |
* Sat Jun 10 2006 - [email protected]
|
|
251 |
- split pkgconfig and aclocal files into a -devel subpkg
|
|
252 |
* Fri Jun 2 2006 - [email protected]
|
|
253 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
254 |
* Wed Mar 15 2006 - [email protected]
|
|
255 |
- Add to Build/Requires after running check-deps.pl.
|
|
256 |
* Tue Mar 14 2006 - [email protected]
|
|
257 |
- Set perms for %{_libdir} in %files.
|
|
258 |
* Mon Mar 13 2006 - [email protected]
|
|
259 |
- Add Build/Requires SUNWgnome-doc-utils/-devel.
|
|
260 |
- Add to %files for l10n package.
|
|
261 |
* Fri Mar 03 2006 - [email protected]
|
|
262 |
- Initial spec-file created
|