author | daniell |
Wed, 13 Oct 2010 16:43:58 +0000 | |
branch | opensolaris-2009-06 |
changeset 20159 | f18a6979f732 |
parent 13661 | bdac99c67015 |
child 15556 | 79756053d7da |
permissions | -rw-r--r-- |
9560 | 1 |
# |
2 |
# spec file for package SUNWgnome-img-organizer |
|
3 |
# |
|
4 |
# includes module(s): gthumb |
|
5 |
# |
|
11370 | 6 |
# Copyright 2008 Sun Microsystems, Inc. |
9560 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
12967
5f4e5ac840fa
* SUNWgnome-config.spec: Update Owner Comment, to confirm with all other
mattman
parents:
12263
diff
changeset
|
10 |
# Owner: jerrytan |
9560 | 11 |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use gthumb = gthumb.spec |
|
15 |
||
16 |
Name: SUNWgnome-img-organizer |
|
17 |
Summary: GNOME image organizer (gthumb) |
|
18 |
Version: %{default_pkg_version} |
|
11927 | 19 |
SUNW_Copyright: %{name}.copyright |
9560 | 20 |
SUNW_BaseDir: %{_basedir} |
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
22 |
||
23 |
%include default-depend.inc |
|
24 |
Requires: SUNWgnome-libs |
|
25 |
Requires: SUNWgnome-print |
|
26 |
Requires: SUNWgnome-img-organizer-root |
|
27 |
Requires: SUNWgnome-file-mgr |
|
28 |
Requires: SUNWgnome-camera |
|
29 |
Requires: SUNWgnome-base-libs |
|
30 |
Requires: SUNWgnome-component |
|
31 |
Requires: SUNWgnome-config |
|
32 |
Requires: SUNWgnome-panel |
|
33 |
Requires: SUNWgnome-vfs |
|
34 |
Requires: SUNWjpg |
|
35 |
Requires: SUNWlibexif |
|
36 |
Requires: SUNWlibms |
|
37 |
Requires: SUNWlibpopt |
|
38 |
Requires: SUNWpostrun |
|
39 |
BuildRequires: SUNWgnome-component-devel |
|
40 |
BuildRequires: SUNWgnome-config-devel |
|
41 |
BuildRequires: SUNWgnome-panel-devel |
|
42 |
BuildRequires: SUNWgnome-vfs-devel |
|
43 |
BuildRequires: SUNWjpg-devel |
|
44 |
BuildRequires: SUNWlibexif-devel |
|
45 |
BuildRequires: SUNWlibpopt-devel |
|
46 |
BuildRequires: SUNWgnome-file-mgr-devel |
|
47 |
BuildRequires: SUNWgnome-camera-devel |
|
48 |
BuildRequires: SUNWgnome-libs-devel |
|
49 |
BuildRequires: SUNWgnome-print-devel |
|
50 |
BuildRequires: SUNWgnome-base-libs-devel |
|
51 |
||
52 |
%if %build_l10n |
|
53 |
%package l10n |
|
54 |
Summary: %{summary} - l10n files |
|
55 |
SUNW_BaseDir: %{_basedir} |
|
56 |
%include default-depend.inc |
|
57 |
Requires: %{name} |
|
58 |
%endif |
|
59 |
||
60 |
%package root |
|
61 |
Summary: %{summary} - / filesystem |
|
62 |
SUNW_BaseDir: / |
|
63 |
%include default-depend.inc |
|
9562 | 64 |
Requires: SUNWpostrun-root |
9560 | 65 |
Requires: SUNWgnome-config |
66 |
||
67 |
%prep |
|
68 |
rm -rf %name-%version |
|
69 |
mkdir %name-%version |
|
70 |
%gthumb.prep -d %name-%version |
|
71 |
||
72 |
%build |
|
9562 | 73 |
export CFLAGS="%optflags" |
9560 | 74 |
export RPM_OPT_FLAGS="$CFLAGS" |
75 |
export CPPFLAGS="-I/usr/sfw/include" |
|
76 |
export LDFLAGS="%_ldflags -lm -L/usr/sfw/lib -R/usr/sfw/lib" |
|
77 |
||
78 |
%gthumb.build -d %name-%version |
|
79 |
||
80 |
%install |
|
9562 | 81 |
rm -rf $RPM_BUILD_ROOT |
9560 | 82 |
%gthumb.install -d %name-%version |
83 |
||
84 |
%if %build_l10n |
|
85 |
%else |
|
86 |
# REMOVE l10n FILES |
|
87 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
88 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
89 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf |
|
90 |
%endif |
|
91 |
||
92 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}(gthumb):$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT/usr} |
|
93 |
||
94 |
%clean |
|
95 |
rm -rf $RPM_BUILD_ROOT |
|
96 |
||
97 |
%post |
|
98 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
99 |
echo '/usr/bin/update-desktop-database' |
|
9782 | 100 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
9560 | 101 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
102 |
echo '/usr/bin/scrollkeeper-update' |
|
9782 | 103 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
9560 | 104 |
|
105 |
%postun |
|
9782 | 106 |
test -x $BASEDIR/lib/postrun || exit 0 |
9560 | 107 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
108 |
echo '/usr/bin/update-desktop-database' |
|
9782 | 109 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
9560 | 110 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
111 |
echo '/usr/bin/scrollkeeper-update' |
|
9782 | 112 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
9560 | 113 |
|
114 |
%post root |
|
11370 | 115 |
%include gconf-install.script |
9560 | 116 |
|
117 |
%preun root |
|
9562 | 118 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
119 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
120 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
9560 | 121 |
echo ' exit 0'; |
122 |
echo '}'; |
|
123 |
echo 'umask 0022'; |
|
9562 | 124 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
125 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
126 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
127 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
128 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
129 |
echo 'schemas="$SDIR/gthumb.schemas"'; |
|
130 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
131 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
9560 | 132 |
|
133 |
%files |
|
13618 | 134 |
%doc -d gthumb-%{gthumb.version} README AUTHORS |
135 |
%doc(bzip2) -d gthumb-%{gthumb.version} ChangeLog NEWS doc/ChangeLog po/ChangeLog |
|
136 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9560 | 137 |
%defattr (-, root, bin) |
138 |
%dir %attr (0755, root, bin) %{_bindir} |
|
139 |
%{_bindir}/* |
|
140 |
%dir %attr (0755, root, bin) %{_libdir} |
|
141 |
%{_libdir}/libgthumb.so |
|
10384 | 142 |
%{_libdir}/bonobo/servers/GNOME_GThumb.server |
9560 | 143 |
%{_libdir}/gthumb/modules/lib*.so* |
144 |
%dir %attr (0755, root, sys) %{_datadir} |
|
145 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
146 |
%{_datadir}/applications/* |
|
147 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
148 |
%{_datadir}/gnome/help/*/C |
|
149 |
%{_datadir}/gthumb |
|
13661 | 150 |
%dir %attr(0755, root, other) %{_datadir}/icons |
151 |
%dir %attr(0755, root, other) %{_datadir}/icons/hicolor |
|
152 |
%dir %attr(0755, root, other) %{_datadir}/icons/hicolor/48x48 |
|
153 |
%dir %attr(0755, root, other) %{_datadir}/icons/hicolor/48x48/apps |
|
154 |
%{_datadir}/icons/hicolor/48x48/apps/gthumb.png |
|
9560 | 155 |
%dir %attr(0755, root, bin) %{_mandir} |
156 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
157 |
%{_mandir}/*/* |
|
158 |
||
159 |
%if %build_l10n |
|
160 |
%files l10n |
|
161 |
%defattr (-, root, bin) |
|
162 |
%dir %attr (0755, root, sys) %{_datadir} |
|
163 |
%attr (-, root, other) %{_datadir}/locale |
|
164 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
165 |
%{_datadir}/gnome/help/gthumb/[a-z][a-z] |
|
166 |
%endif |
|
167 |
||
168 |
%files root |
|
9780 | 169 |
%defattr (-, root, sys) |
9560 | 170 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
171 |
%{_sysconfdir}/gconf/schemas/gthumb.schemas |
|
172 |
||
173 |
%changelog |
|
12263 | 174 |
* Wed May 07 2008 - [email protected] |
175 |
- Remove PERL5LIB setting as it is not necessary. |
|
11370 | 176 |
* Thu Jan 3 2008 - [email protected] |
177 |
- use gconf-install.script instead of an inline script |
|
10572 | 178 |
* Fri Sep 28 2007 - [email protected] |
179 |
- delete Nevada X dep |
|
10384 | 180 |
* Tue Aug 28 2007 - [email protected] |
181 |
- Update %files with GNOME_GThumb.server as installed by the new tarball. |
|
9780 | 182 |
* Tue Apr 24 2007 - [email protected] |
9782 | 183 |
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install |
184 |
(CR 6537817) |
|
185 |
* Tue Apr 24 2007 - [email protected] |
|
9780 | 186 |
- s/0755/-/ in defattr so that files are not made all executable |
9595 | 187 |
* Tue Mar 20 2007 - [email protected] |
188 |
- Update %files for new tarball (remove the %{datadir}/application-registry |
|
189 |
dir). |
|
9562 | 190 |
* Mon Mar 14 2007 - [email protected] |
191 |
- update postrun scripts to the latest and greatest |
|
192 |
- delete some unnecessary env variables |
|
9560 | 193 |
* Mon Feb 19 2007 - [email protected] |
194 |
- Minor updates for new gthumb tarball. |
|
195 |
* Wed Oct 11 2006 - [email protected] |
|
196 |
- fix icondir permissions |
|
197 |
* Fri Jun 2 2006 - [email protected] |
|
198 |
- use post/postun scripts to install schemas into the merged gconf files |
|
199 |
* Thu May 11 2006 - [email protected] |
|
200 |
- kill -share pkg, remove eog.1 man page. |
|
201 |
* Mon May 01 2006 - [email protected] |
|
202 |
- Add %{_datadir}/icons to share package. |
|
203 |
* Mon Feb 20 2006 - [email protected] |
|
204 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
205 |
* Thu Feb 16 2006 - [email protected] |
|
206 |
- Update Build/Requires after running check-deps.pl script. |
|
207 |
* Wed Feb 15 2006 - [email protected] |
|
208 |
- Set PKG_CONFIG_PATH to find libgphoto; Set LDFLAGS to link with libpng. |
|
209 |
* Sat Jan 28 2006 - [email protected] |
|
210 |
- Add BuildRequires for '-devel' equivalents of the Requires packages. |
|
211 |
- Added BuildRequires SUNWgnome-camera-devel for gthumb. |
|
212 |
* Sat Dec 3 2005 - [email protected] |
|
213 |
- add %post script that runs update-desktop-database |
|
214 |
* Tue Nov 29 2005 - laca.com |
|
215 |
- remove javahelp stuff |
|
216 |
* Mon Oct 03 2005 - [email protected] |
|
217 |
- Remove unpackaged files. |
|
218 |
* Sat Dec 18 2004 - [email protected] |
|
219 |
- Move gthumb to /usr/sfw per ARC decision. |
|
220 |
* Sun Nov 14 2004 - [email protected] |
|
221 |
- move gthumb to /usr/demo/jds |
|
222 |
* Sat Oct 02 2004 - [email protected] |
|
223 |
- added %pkgbuild_postprocess |
|
224 |
* Mon Aug 23 2004 - [email protected] |
|
225 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
226 |
* Mon Jun 26 2004 [email protected] |
|
227 |
- change eog.1 permissions to 0755 for Solaris integration error |
|
228 |
* Sat Jun 26 2004 [email protected] |
|
229 |
- Changed install location to /usr/... |
|
230 |
* Wed Jun 2 2004 - [email protected] |
|
231 |
- Added %{_datadir}/locale to install l10n messages |
|
232 |
* Tue May 18 2004 - [email protected] |
|
233 |
- add sfw to LDFLAGS/CPPFLAGS (patch from Shirley) |
|
234 |
* Tue May 11 2004 - [email protected] |
|
235 |
- add %{_datadir}/eog to files share so glade files |
|
236 |
get installed. This corrects core dumping problem |
|
237 |
when bringing up preferences dialog. |
|
238 |
* Tue May 04 2004 - [email protected] |
|
239 |
- add SUNWgnome-camera dependency |
|
240 |
* Fri Mar 26 2004 - [email protected] |
|
241 |
- add SUNWgnome-file-mgr dependency (for eel) |
|
242 |
* Wed Mar 24 2004 - [email protected] |
|
243 |
- Added SGML man page integration |
|
244 |
* Mon Mar 01 2004 - <[email protected]> |
|
245 |
- fix dependencies |
|
246 |
- define PERL5LIB |
|
247 |
- file %files share |
|
248 |
* Mon Feb 23 2004 - <[email protected]> |
|
249 |
- install gconf schemas at the end of the install stage |