9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-file-mgr
|
|
3 |
#
|
|
4 |
# includes module(s): eel, nautilus, gnome-mount,
|
|
5 |
# gnome-volume-manager
|
|
6 |
#
|
|
7 |
# Copyright (c) 2004 Sun Microsystems, Inc.
|
|
8 |
# This file and all modifications and additions to the pristine
|
|
9 |
# package are under the same license as the package itself.
|
|
10 |
#
|
|
11 |
# Owner:stephen
|
|
12 |
|
|
13 |
%include Solaris.inc
|
|
14 |
|
|
15 |
%define with_hal %(pkginfo -q SUNWhal && echo 1 || echo 0)
|
|
16 |
|
|
17 |
%use eel = eel.spec
|
|
18 |
%use nautilus = nautilus.spec
|
|
19 |
%use open_terminal= nautilus-open-terminal.spec
|
|
20 |
|
|
21 |
%if %with_hal
|
|
22 |
%use gmount = gnome-mount.spec
|
|
23 |
%use gvm = gnome-volume-manager.spec
|
|
24 |
%endif
|
|
25 |
|
|
26 |
Name: SUNWgnome-file-mgr
|
|
27 |
Summary: GNOME file manager
|
|
28 |
Version: %{default_pkg_version}
|
|
29 |
Source: %{name}-manpages-0.1.tar.gz
|
|
30 |
SUNW_BaseDir: %{_basedir}
|
|
31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
32 |
|
|
33 |
%include default-depend.inc
|
|
34 |
BuildRequires: SUNWgnome-component-devel
|
|
35 |
BuildRequires: SUNWlibrsvg-devel
|
|
36 |
BuildRequires: SUNWgnome-audio-devel
|
|
37 |
BuildRequires: SUNWlibexif-devel
|
|
38 |
BuildRequires: SUNWlibpopt-devel
|
|
39 |
BuildRequires: SUNWgnome-libs-devel
|
|
40 |
BuildRequires: SUNWgnome-vfs-devel
|
|
41 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
42 |
BuildRequires: SUNWgnome-config-devel
|
|
43 |
BuildRequires: SUNWgnome-panel-devel
|
|
44 |
BuildRequires: SUNWgnome-print-devel
|
|
45 |
BuildRequires: SUNWgnome-a11y-base-devel
|
|
46 |
Requires: SUNWgnome-file-mgr-root
|
|
47 |
Requires: SUNWgnome-libs
|
|
48 |
Requires: SUNWgnome-vfs
|
|
49 |
Requires: SUNWgnome-base-libs
|
|
50 |
Requires: SUNWgnome-config
|
|
51 |
Requires: SUNWgnome-panel
|
|
52 |
Requires: SUNWgnome-print
|
|
53 |
Requires: SUNWgnome-a11y-base-libs
|
|
54 |
Requires: SUNWgnome-audio
|
|
55 |
Requires: SUNWgnome-component
|
|
56 |
Requires: SUNWlibexif
|
|
57 |
Requires: SUNWlibms
|
|
58 |
Requires: SUNWlibpopt
|
|
59 |
Requires: SUNWxwrtl
|
|
60 |
Requires: SUNWlibrsvg
|
|
61 |
Requires: SUNWperl584usr
|
|
62 |
Requires: SUNWbzip
|
|
63 |
Requires: SUNWzlib
|
|
64 |
Requires: SUNWlxml
|
|
65 |
Requires: SUNWpostrun
|
|
66 |
%if %with_hal
|
|
67 |
Requires: SUNWhal
|
|
68 |
%endif
|
|
69 |
|
|
70 |
%package root
|
|
71 |
Summary: %{summary} - / filesystem
|
|
72 |
SUNW_BaseDir: /
|
|
73 |
%include default-depend.inc
|
|
74 |
Requires: SUNWpostrun-root
|
|
75 |
Requires: SUNWgnome-config
|
|
76 |
|
|
77 |
%package devel
|
|
78 |
Summary: %{summary} - development files
|
|
79 |
SUNW_BaseDir: %{_basedir}
|
|
80 |
%include default-depend.inc
|
|
81 |
|
|
82 |
%if %build_l10n
|
|
83 |
%package l10n
|
|
84 |
Summary: %{summary} - l10n files
|
|
85 |
SUNW_BaseDir: %{_basedir}
|
|
86 |
%include default-depend.inc
|
|
87 |
Requires: %{name}
|
|
88 |
%endif
|
|
89 |
|
|
90 |
%prep
|
|
91 |
rm -rf %name-%version
|
|
92 |
mkdir %name-%version
|
|
93 |
%eel.prep -d %name-%version
|
|
94 |
%nautilus.prep -d %name-%version
|
|
95 |
%open_terminal.prep -d %name-%version
|
|
96 |
|
|
97 |
%if %with_hal
|
|
98 |
%gmount.prep -d %name-%version
|
|
99 |
%gvm.prep -d %name-%version
|
|
100 |
%endif
|
|
101 |
cd %{_builddir}/%name-%version
|
|
102 |
gzcat %SOURCE0 | tar xf -
|
|
103 |
|
|
104 |
%build
|
|
105 |
PKG_CONFIG_DISABLE_UNINSTALLED=
|
|
106 |
unset PKG_CONFIG_DISABLE_UNINSTALLED
|
|
107 |
|
|
108 |
export PKG_CONFIG_PATH=../eel-%{eel.version}:../nautilus-%{nautilus.version}/libnautilus-extension:%{_pkg_config_path}
|
|
109 |
export CFLAGS="%optflags -I%{_includedir}"
|
|
110 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
111 |
export LDFLAGS="%_ldflags"
|
|
112 |
|
|
113 |
%eel.build -d %name-%version
|
|
114 |
%nautilus.build -d %name-%version
|
|
115 |
%open_terminal.build -d %name-%version
|
|
116 |
|
|
117 |
%if %with_hal
|
|
118 |
export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -lX11 -lresolv"
|
|
119 |
%gmount.build -d %name-%version
|
|
120 |
%gvm.build -d %name-%version
|
|
121 |
%endif
|
|
122 |
|
|
123 |
%install
|
|
124 |
rm -rf $RPM_BUILD_ROOT
|
|
125 |
%eel.install -d %name-%version
|
|
126 |
%nautilus.install -d %name-%version
|
|
127 |
%open_terminal.install -d %name-%version
|
|
128 |
|
|
129 |
%if %with_hal
|
|
130 |
%gmount.install -d %name-%version
|
|
131 |
%gvm.install -d %name-%version
|
|
132 |
%endif
|
|
133 |
|
|
134 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
135 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
136 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
137 |
|
|
138 |
# generated in the postinstall scripts (update-mime-database)
|
|
139 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/mime
|
|
140 |
|
|
141 |
%if %build_l10n
|
|
142 |
%else
|
|
143 |
# REMOVE l10n FILES
|
|
144 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
145 |
%endif
|
|
146 |
|
|
147 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
148 |
|
|
149 |
%clean
|
|
150 |
rm -rf $RPM_BUILD_ROOT
|
|
151 |
|
|
152 |
%post
|
|
153 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
154 |
echo '/usr/bin/update-desktop-database'
|
|
155 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
156 |
( echo 'test -x %{_bindir}/update-mime-database || exit 0';
|
|
157 |
echo '%{_bindir}/update-mime-database %{_datadir}/mime'
|
|
158 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
159 |
|
|
160 |
%postun
|
|
161 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
162 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
163 |
echo '/usr/bin/update-desktop-database'
|
|
164 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
165 |
( echo 'test -x %{_bindir}/update-mime-database || exit 0';
|
|
166 |
echo '%{_bindir}/update-mime-database %{_datadir}/mime'
|
|
167 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
168 |
|
|
169 |
%post root
|
|
170 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
171 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
172 |
echo ' exit 0';
|
|
173 |
echo '}';
|
|
174 |
echo 'umask 0022';
|
|
175 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
|
|
176 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
177 |
echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas'
|
|
178 |
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
|
|
179 |
|
|
180 |
%preun root
|
|
181 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
182 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
183 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
184 |
echo ' exit 0';
|
|
185 |
echo '}';
|
|
186 |
echo 'umask 0022';
|
|
187 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
188 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
189 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
190 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
191 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
192 |
%if %with_hal
|
|
193 |
echo 'schemas="$SDIR/apps_nautilus_preferences.schemas';
|
|
194 |
echo ' $SDIR/gnome-mount.schemas';
|
|
195 |
echo ' $SDIR/gnome-volume-control.schemas"';
|
|
196 |
%else
|
|
197 |
echo 'schemas="$SDIR/apps_nautilus_preferences.schemas"';
|
|
198 |
%endif
|
|
199 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
200 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
201 |
|
|
202 |
%files
|
|
203 |
%defattr (-, root, bin)
|
|
204 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
205 |
%{_bindir}/*
|
|
206 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
207 |
%{_libdir}/bonobo/servers
|
|
208 |
%{_libdir}/nautilus/extensions-1.0/*.so
|
|
209 |
%{_libdir}/lib*.so*
|
|
210 |
%if %with_hal
|
|
211 |
%{_libexecdir}/gnome-volume-manager
|
|
212 |
%endif
|
|
213 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
214 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
215 |
%{_datadir}/applications/*
|
|
216 |
%if %with_hal
|
|
217 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
218 |
%{_datadir}/gnome/*
|
|
219 |
%dir %attr (0755, root, other) %{_datadir}/gnome-mount
|
|
220 |
%{_datadir}/gnome-mount/*
|
|
221 |
%dir %attr (0755, root, other) %{_datadir}/gnome-volume-manager
|
|
222 |
%{_datadir}/gnome-volume-manager/*
|
|
223 |
%endif
|
|
224 |
%dir %attr (-, root, other) %{_datadir}/icons
|
|
225 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor
|
|
226 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
|
|
227 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
|
|
228 |
%{_datadir}/icons/hicolor/16x16/apps/nautilus.png
|
|
229 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
|
|
230 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
|
|
231 |
%{_datadir}/icons/hicolor/22x22/apps/nautilus.png
|
|
232 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
|
|
233 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
|
|
234 |
%{_datadir}/icons/hicolor/24x24/apps/nautilus.png
|
|
235 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
|
|
236 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
|
|
237 |
%{_datadir}/icons/hicolor/32x32/apps/nautilus.png
|
|
238 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
|
|
239 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
|
|
240 |
%{_datadir}/icons/hicolor/scalable/apps/nautilus.svg
|
|
241 |
%{_datadir}/nautilus
|
|
242 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
243 |
%{_datadir}/pixmaps/*
|
|
244 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
245 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
246 |
%{_mandir}/*/*
|
|
247 |
|
|
248 |
%files root
|
9780
|
249 |
%defattr (-, root, sys)
|
9397
|
250 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
251 |
%{_sysconfdir}/gconf/schemas/apps_nautilus_preferences.schemas
|
|
252 |
%if %with_hal
|
|
253 |
%{_sysconfdir}/gconf/schemas/gnome-mount.schemas
|
|
254 |
%{_sysconfdir}/gconf/schemas/gnome-volume-manager.schemas
|
|
255 |
%endif
|
|
256 |
|
|
257 |
%files devel
|
9780
|
258 |
%defattr (-, root, bin)
|
9397
|
259 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
260 |
%{_includedir}/*
|
|
261 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
262 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
263 |
%{_libdir}/pkgconfig/*
|
|
264 |
|
|
265 |
%if %build_l10n
|
|
266 |
%files l10n
|
|
267 |
%defattr (-, root, bin)
|
|
268 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
269 |
%attr (-, root, other) %{_datadir}/locale
|
|
270 |
%endif
|
|
271 |
|
|
272 |
%changelog
|
9780
|
273 |
* Tue Apr 24 2007 - [email protected]
|
|
274 |
- s/0755/-/ in defattr so that files are not made all executable
|
9397
|
275 |
* Tue Dec 19 2006 - [email protected]
|
|
276 |
- Update %files for new graphics files.
|
|
277 |
* Fri Oct 20 2006 - [email protected]
|
|
278 |
- Remove SUNWhalh BuildRequires because header files are in SUNWhea in snv_51.
|
|
279 |
* Mon Sep 18 2006 - [email protected]
|
|
280 |
- Add SUNWhalh BuildRequires.
|
|
281 |
* Fri Sep 01 2006 - [email protected]
|
|
282 |
- New Manpage tarball
|
|
283 |
* Mon Aug 14 2006 - [email protected]
|
|
284 |
- Add Build/Requires SUNWhal after check-deps.pl run.
|
|
285 |
* Sat Aug 12 2006 - [email protected]
|
|
286 |
- delete some unnecessary env variables
|
|
287 |
* Thu Jul 25 2006 - [email protected]
|
|
288 |
- Add gnome-volume-manager and gnome-mount for HAL integration.
|
|
289 |
* Fri Jul 14 2006 - [email protected]
|
|
290 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
291 |
part of 6448317
|
|
292 |
* Thu Jun 29 2006 - [email protected]
|
|
293 |
- update postrun scripts
|
|
294 |
* Sun Jun 11 2006 - [email protected]
|
|
295 |
- change group from other to bin/sys
|
|
296 |
* Thu Jun 1 2006 - [email protected]
|
|
297 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
298 |
* Wed May 10 2006 - [email protected]
|
|
299 |
- merge -share pkg(s) into the base pkg(s)
|
|
300 |
* Mon Feb 20 2006 - [email protected]
|
|
301 |
- Update Build/Requires after running check-deps.pl script.
|
|
302 |
* Mon Jan 09 2006 - [email protected]
|
|
303 |
- Delete mime dir structure.
|
|
304 |
* Sat Dec 3 2005 - [email protected]
|
|
305 |
- add %post script that runs update-desktop-database
|
|
306 |
* Thu Jul 28 2005 - [email protected]
|
|
307 |
- Add SUNWlibrsvg-devel build dependency. Add SUNWlibrsvg runtime dependency.
|
|
308 |
* Thu Jun 02 2005 - brian.cameron
|
|
309 |
- Bumped to 2.10, fixed packaging.
|
|
310 |
* Sat Oct 02 2004 - [email protected]
|
|
311 |
- added %pkgbuild_postprocess
|
|
312 |
* Thu Sep 09 2004 - [email protected]
|
|
313 |
- Added nautlius-file-management-properties.1 manpage
|
|
314 |
* Mon Aug 23 2004 - [email protected]
|
|
315 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
316 |
* Wed Aug 18 2004 - [email protected]
|
|
317 |
- Change manpage perms for Solaris integration.
|
|
318 |
* Tue Jul 27 2004 - [email protected]
|
|
319 |
- Add SUNWgnome-component-devel as BuildRequires, for ORBit-2.0.
|
|
320 |
* Sat Jun 26 2004 - [email protected]
|
|
321 |
- Changed install location to /usr/...
|
|
322 |
* Mon Jun 07 2004 - [email protected]
|
|
323 |
- Added SUNWlibexif dependency, then removed it since it is alrady
|
|
324 |
a dependency of SUNWgnome-libs.
|
|
325 |
* Wed Jun 02 2004 - [email protected]
|
|
326 |
- Added %{_datadir}/locale to install l10n messages
|
|
327 |
* Thu May 20 2004 - [email protected]
|
|
328 |
- Added man page to share package.
|
|
329 |
* Thu May 13 2004 - [email protected]
|
|
330 |
- Removed %{_libdir}/nautilus-*-helper from packages since Glynn
|
|
331 |
removed these files that were added via ext-sources on May 5th.
|
|
332 |
* Fri Apr 30 2004 - [email protected]
|
|
333 |
- adjust %files for new nautilus version
|
|
334 |
* Fri Mar 26 2004 - [email protected]
|
|
335 |
- fix %files for libexecdir change
|
|
336 |
* Wed Mar 24 2004 - [email protected]
|
|
337 |
- Added SGML man page integration
|
|
338 |
* Mon Mar 01 2004 - [email protected]
|
|
339 |
- remove dependencies on SUNWgnome-libs-root and -share
|
|
340 |
* Thu Feb 26 2004 - [email protected]
|
|
341 |
- remove clashing (and empty gconf.xml files) after schema installation
|
|
342 |
- add "-R%{_libdir}" to LDFLAGS
|
|
343 |
- define PERL5LIB for XML::Parser
|
|
344 |
- add a defattr for %package devel
|
|
345 |
* Mon Feb 23 2004 - [email protected]
|
|
346 |
- install gconf schemas at the end of the install stage
|
|
347 |
* Wed Feb 18 2004 - [email protected]
|
|
348 |
- removed gnome-desktop as it's provided by the panel pkgs now.
|
|
349 |
- removed rsvg man pages from file maps + tidy up
|
|
350 |
- removed unnecessary exported CFLAGS
|
|
351 |
* Wed Feb 18 2004 - [email protected]
|
|
352 |
- moved librsvg to SUNWgnome-libs as it is required by other modules as well
|
|
353 |
* Mon Feb 16 2004 - [email protected]
|
|
354 |
- initial spec file created
|