author | jerrytan |
Mon, 11 Aug 2008 07:35:57 +0000 | |
branch | gnome-2-22 |
changeset 12497 | f4743e0d8120 |
parent 11958 | 9a5520e3cc7a |
child 13505 | fb02d1329af5 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-archive-mgr |
|
3 |
# |
|
4 |
# includes module(s): file-roller |
|
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: mattman |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use froller = file-roller.spec |
|
15 |
||
16 |
Name: SUNWgnome-archive-mgr |
|
17 |
Summary: GNOME archive manager |
|
18 |
Version: %{default_pkg_version} |
|
19 |
Source: %{name}-manpages-0.1.tar.gz |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
11958
9a5520e3cc7a
* SUNWgnome-pdf-viewer.spec : Add Copyright to preamble
mattman
parents:
11433
diff
changeset
|
21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
25 |
Requires: SUNWgnome-archive-mgr-root |
|
26 |
Requires: SUNWgnome-file-mgr |
|
27 |
Requires: SUNWgnome-libs |
|
28 |
Requires: SUNWgnome-vfs |
|
29 |
Requires: SUNWgnome-config |
|
30 |
Requires: SUNWbzip |
|
31 |
Requires: SUNWzlib |
|
32 |
Requires: SUNWgnome-base-libs |
|
33 |
Requires: SUNWlibms |
|
34 |
Requires: SUNWlibpopt |
|
35 |
Requires: SUNWpostrun |
|
36 |
BuildRequires: SUNWgnome-base-libs-devel |
|
37 |
BuildRequires: SUNWlibpopt-devel |
|
38 |
||
39 |
%if %build_l10n |
|
40 |
%package l10n |
|
41 |
Summary: %{summary} - l10n files |
|
42 |
SUNW_BaseDir: %{_basedir} |
|
43 |
%include default-depend.inc |
|
44 |
Requires: %{name} |
|
45 |
%endif |
|
46 |
||
47 |
%package root |
|
48 |
Summary: %{summary} - / filesystem |
|
49 |
SUNW_BaseDir: / |
|
50 |
%include default-depend.inc |
|
51 |
Requires: SUNWpostrun-root |
|
52 |
Requires: SUNWgnome-config |
|
53 |
||
54 |
%prep |
|
55 |
rm -rf %name-%version |
|
56 |
mkdir %name-%version |
|
57 |
%froller.prep -d %name-%version |
|
58 |
cd %{_builddir}/%name-%version |
|
59 |
gzcat %SOURCE0 | tar xf - |
|
60 |
||
61 |
%build |
|
11433 | 62 |
export CFLAGS="%optflags -I%{_includedir}/gnome-vfs-2.0 -I%{_libdir}/gnome-vfs-2.0/include" |
9397 | 63 |
export RPM_OPT_FLAGS="$CFLAGS" |
64 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
11433 | 65 |
export LDFLAGS="%_ldflags -L%{_libdir} -lgnomevfs-2" |
9397 | 66 |
|
67 |
%froller.build -d %name-%version |
|
68 |
||
69 |
%install |
|
70 |
rm -rf $RPM_BUILD_ROOT |
|
71 |
%froller.install -d %name-%version |
|
72 |
||
73 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
74 |
cd %{_builddir}/%name-%version/sun-manpages |
|
75 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
76 |
||
77 |
%if %build_l10n |
|
78 |
%else |
|
79 |
# REMOVE l10n FILES |
|
80 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale |
|
81 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
82 |
rm $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
83 |
%endif |
|
84 |
||
85 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
86 |
||
87 |
%clean |
|
88 |
rm -rf $RPM_BUILD_ROOT |
|
89 |
||
90 |
%post |
|
91 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
92 |
echo '/usr/bin/update-desktop-database' |
|
93 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
94 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
95 |
echo '/usr/bin/scrollkeeper-update' |
|
96 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
97 |
||
98 |
%postun |
|
99 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
100 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
101 |
echo '/usr/bin/update-desktop-database' |
|
102 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
103 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
104 |
echo '/usr/bin/scrollkeeper-update' |
|
105 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
106 |
||
107 |
%post root |
|
11370 | 108 |
%include gconf-install.script |
9397 | 109 |
|
110 |
%preun root |
|
111 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
112 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
113 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
114 |
echo ' exit 0'; |
|
115 |
echo '}'; |
|
116 |
echo 'umask 0022'; |
|
117 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
118 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
119 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
120 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
121 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
122 |
echo 'schemas="$SDIR/file-roller.schemas"'; |
|
123 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
124 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
125 |
||
126 |
%files |
|
127 |
%defattr (-, root, bin) |
|
128 |
%dir %attr (0755, root, bin) %{_bindir} |
|
129 |
%{_bindir}/* |
|
130 |
%dir %attr (0755, root, bin) %{_libdir} |
|
131 |
%{_libdir}/file-roller |
|
132 |
%{_libdir}/nautilus |
|
133 |
%dir %attr (0755, root, sys) %{_datadir} |
|
134 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
135 |
%{_datadir}/applications/* |
|
136 |
%{_datadir}/file-roller |
|
137 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
138 |
%{_datadir}/gnome/help/file-roller/C |
|
139 |
%{_datadir}/omf/file-roller/*-C.omf |
|
140 |
%attr (-, root, other) %{_datadir}/icons |
|
141 |
%dir %attr(0755, root, bin) %{_mandir} |
|
142 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
143 |
%{_mandir}/*/* |
|
144 |
||
145 |
%if %build_l10n |
|
146 |
%files l10n |
|
147 |
%defattr (-, root, bin) |
|
148 |
%dir %attr (0755, root, sys) %{_datadir} |
|
149 |
%attr (-, root, other) %{_datadir}/locale |
|
150 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
151 |
%{_datadir}/gnome/help/*/[a-z]* |
|
152 |
%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
153 |
%endif |
|
154 |
||
155 |
%files root |
|
9780 | 156 |
%defattr (-, root, sys) |
9397 | 157 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
158 |
%{_sysconfdir}/gconf/schemas/file-roller.schemas |
|
159 |
||
160 |
%changelog |
|
11433 | 161 |
* Thu Jan 10 2008 - [email protected] |
162 |
- Add gnome-vfs info to CFLAGS and LDFLAGS as configure no longer retrieves |
|
163 |
them with pkg-config (libnautilus-extension depends on gio instead of |
|
164 |
gnome-vfs). |
|
11370 | 165 |
* Thu Jan 3 2008 - [email protected] |
166 |
- use gconf-install.script instead of an inline script |
|
9780 | 167 |
* Tue Apr 24 2007 - [email protected] |
168 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9594 | 169 |
* Mon Mar 20 2007 - [email protected] |
170 |
- Remove omf deletion line from %install, as suggested by reborg on |
|
171 |
desktop-discuss. |
|
9397 | 172 |
* Wed Jan 10 2007 - [email protected] |
173 |
- Update l10n code for omf files as some locales have been removed. |
|
174 |
* Fri Nov 24 2006 - [email protected] |
|
175 |
- Update %files for 2.17.2 tarball. |
|
176 |
* Fri Sep 01 2006 - [email protected] |
|
177 |
- New Manpage tarball |
|
178 |
* Mon Aug 21 2006 - [email protected] |
|
179 |
- Fix l10n package - C locale omf file was in base and l10n package. |
|
180 |
* Sat Aug 12 2006 - [email protected] |
|
181 |
- delete some unnecessary env variables |
|
182 |
* Sat Aug 12 2006 - [email protected] |
|
183 |
- change datadir/icons permissions back to root:other since it's a stable |
|
184 |
interface and wasn't supposed to be changed |
|
185 |
* Fri Jul 14 2006 - [email protected] |
|
186 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
187 |
part of 6448317 |
|
188 |
* Thu Jun 29 2006 - [email protected] |
|
189 |
- update postrun scripts |
|
190 |
* Sun Jun 11 2006 - [email protected] |
|
191 |
- change group from other to bin/sys |
|
192 |
* Thu Jun 1 2006 - [email protected] |
|
193 |
- use post/preun scripts to install schemas into the merged gconf files |
|
194 |
* Tue May 09 2006 - [email protected] |
|
195 |
- merge -share pkg(s) into the base pkg(s) |
|
196 |
* Tue Apr 18 2006 - [email protected] |
|
197 |
- Icons have moved to %{_datadir}/icons, from pixmaps. |
|
198 |
* Mon Feb 20 2006 - [email protected] |
|
199 |
- Update Build/Requires after running check-deps.pl script. |
|
200 |
* Tue Jan 31 2006 - [email protected] |
|
201 |
- Remove mime-info from %files. No files installed now. |
|
202 |
* Sun Jan 22 2006 - [email protected] |
|
203 |
- Remove application-registry from share package as no longer installed. |
|
204 |
* Mon Jan 09 2006 - [email protected] |
|
205 |
- Remove bonobo files from base package as they are no longer installed. |
|
206 |
* Sat Dec 3 2005 - [email protected] |
|
207 |
- add %post script that runs update-desktop-database |
|
208 |
* Tue Nov 29 2005 - [email protected] |
|
209 |
- remove javahelp stuff |
|
210 |
* Fri Nov 12 2004 - [email protected] |
|
211 |
- Revised files section |
|
212 |
* Sat Oct 02 2004 - [email protected] |
|
213 |
- added %pkgbuild_postprocess |
|
214 |
* Sat Jun 26 2004 [email protected] |
|
215 |
- Changed install location to /usr/... |
|
216 |
* Wed Jun 2 2004 - [email protected] |
|
217 |
- Added %{_datadir}/locale to install l10n messages |
|
218 |
* Wed Mar 24 2004 - [email protected] |
|
219 |
- Added SGML man page integration |
|
220 |
* Mon Mar 01 2004 - <[email protected]> |
|
221 |
- define PERL5LIB |
|
222 |
- fix share subpkg contents/permissions |
|
223 |
* Wed Feb 25 2004 - <[email protected]> |
|
224 |
- inital Solaris spec file created |