author | Jon Tibble <meths@btinternet.com> |
Thu, 15 Mar 2012 09:58:35 +0000 | |
branch | s11express-2010-11 |
changeset 22104 | cde243cbe3f6 |
parent 17864 | 337913e88a9d |
child 20109 | 234786f0a6c7 |
child 20266 | 8bea88f4b589 |
permissions | -rw-r--r-- |
9560 | 1 |
# |
2 |
# spec file for package gthumb |
|
3 |
# |
|
12875 | 4 |
# Copyright 2008 Sun Microsystems, Inc. |
9560 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
15344 | 8 |
# owner: jerrytan |
9562 | 9 |
# |
16427 | 10 |
|
17852 | 11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a |
16427 | 12 |
|
9914 | 13 |
%include l10n.inc |
9560 | 14 |
Name: gthumb |
14542 | 15 |
License: GPL v2 |
9560 | 16 |
Group: Applications/Multimedia |
17850 | 17 |
Version: 2.11.3 |
9560 | 18 |
Release: 1 |
19 |
Distribution: Java Desktop System |
|
17864 | 20 |
Vendor: Gnome Community |
9560 | 21 |
Summary: An image viewer and browser for GNOME. |
17464 | 22 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gthumb/2.11/%{name}-%{version}.tar.bz2 |
9914 | 23 |
Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2 |
12031 | 24 |
%if %build_l10n |
25 |
Source2: l10n-configure.sh |
|
26 |
%endif |
|
9610
069547656d47
Remove gthumb's old patches since not needed any more
jerrytan
parents:
9595
diff
changeset
|
27 |
#owner:jerrytan date:2006-03-22 type:branding |
9560 | 28 |
Patch1: gthumb-01-menu-entry.diff |
17705 | 29 |
#owner:chrisk date:2010-03-13 type:bug |
17850 | 30 |
Patch2: gthumb-02-enable-deprecated.diff |
17705 | 31 |
|
9560 | 32 |
URL: http://gthumb.sourceforge.net/ |
33 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
34 |
Docdir: %{_docdir}/doc |
|
35 |
Autoreqprov: on |
|
36 |
||
37 |
BuildRequires: libpng-devel |
|
38 |
BuildRequires: glib2-devel >= 2.4.0 |
|
39 |
BuildRequires: gtk2-devel >= 2.4.0 |
|
40 |
BuildRequires: libxml2-devel >= 2.6.7 |
|
41 |
BuildRequires: libgnome-devel >= 2.6.0 |
|
42 |
BuildRequires: libgnomeui-devel >= 2.6.0 |
|
43 |
BuildRequires: gnome-vfs-devel >= 2.6.0 |
|
44 |
BuildRequires: libglade-devel >= 2.3.6 |
|
45 |
BuildRequires: libgnomeprint-devel >= 2.6.0 |
|
46 |
BuildRequires: libgnomeprintui-devel >= 2.6.0 |
|
47 |
BuildRequires: libbonobo-devel >= 2.6.0 |
|
48 |
BuildRequires: libbonoboui-devel >= 2.6.0 |
|
49 |
Requires: libpng |
|
50 |
Requires: glib2 >= 2.4.0 |
|
51 |
Requires: gtk2 >= 2.4.0 |
|
52 |
Requires: libxml2 >= 2.6.7 |
|
53 |
Requires: libgnome >= 2.6.0 |
|
54 |
Requires: libgnomeui >= 2.6.0 |
|
55 |
Requires: gnome-vfs >= 2.6.0 |
|
56 |
Requires: libglade >= 2.3.6 |
|
57 |
Requires: libgnomeprint >= 2.6.0 |
|
58 |
Requires: libgnomeprintui >= 2.6.0 |
|
59 |
Requires: libbonobo >= 2.6.0 |
|
60 |
Requires: libbonoboui >= 2.6.0 |
|
61 |
||
62 |
%description |
|
63 |
gThumb lets you browse your hard disk, showing you thumbnails of image files. |
|
64 |
It also lets you view single files (including GIF animations), add comments to |
|
65 |
images, organize images in catalogs, print images, view slideshows, set your |
|
66 |
desktop background, and more. |
|
67 |
||
68 |
%prep |
|
69 |
%setup -q |
|
9914 | 70 |
%if %build_l10n |
71 |
bzcat %SOURCE1 | tar xf - |
|
72 |
cd po-sun; make; cd .. |
|
73 |
%endif |
|
9560 | 74 |
%patch1 -p1 |
13036 | 75 |
%patch2 -p1 |
9560 | 76 |
|
77 |
%build |
|
78 |
%ifos linux |
|
79 |
if [ -x /usr/bin/getconf ]; then |
|
80 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
81 |
fi |
|
82 |
%else |
|
83 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
84 |
%endif |
|
85 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
86 |
CPUS=1 |
|
87 |
fi |
|
88 |
||
89 |
libtoolize --force |
|
10407 | 90 |
intltoolize --force --copy --automake |
12031 | 91 |
|
92 |
%if %build_l10n |
|
93 |
bash -x %SOURCE2 --enable-copyright |
|
94 |
%endif |
|
95 |
||
9560 | 96 |
aclocal $ACLOCAL_FLAGS |
97 |
automake -a -c -f |
|
98 |
autoconf |
|
99 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
100 |
./configure --prefix=%{_prefix} \ |
|
101 |
--bindir=%{_bindir} \ |
|
102 |
--libdir=%{_libdir} \ |
|
103 |
--mandir=%{_mandir} \ |
|
104 |
--sysconfdir=%{_sysconfdir} \ |
|
9562 | 105 |
--disable-scrollkeeper \ |
106 |
--disable-schemas-install \ |
|
9560 | 107 |
--libexecdir=%{_libexecdir} |
108 |
make -j $CPUS |
|
109 |
||
110 |
%install |
|
111 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
112 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
113 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
114 |
#Clean up unpackage files |
|
17464 | 115 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
116 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
9560 | 117 |
|
118 |
||
119 |
# Remove omf file(s) so that does not appear in yelp |
|
120 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/gthumb |
|
121 |
rmdir $RPM_BUILD_ROOT%{_datadir}/omf |
|
122 |
||
123 |
%clean |
|
124 |
rm -rf $RPM_BUILD_ROOT |
|
125 |
||
126 |
%post |
|
127 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
128 |
SCHEMAS="gthumb.schemas" |
|
129 |
for S in $SCHEMAS; do |
|
130 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
131 |
done |
|
132 |
||
133 |
||
134 |
%postun |
|
135 |
||
136 |
%files |
|
137 |
%defattr(-,root,root) |
|
138 |
%{_bindir}/gthumb |
|
139 |
%{_libdir}/gthumb/libgthumb.so |
|
140 |
%{_libexecdir}/gthumb-image-viewer |
|
141 |
%{_libexecdir}/gthumb-catalog-view |
|
142 |
%{_datadir}/applications/gthumb.desktop |
|
143 |
%{_datadir}/gnome-2.0/ui/*.xml |
|
144 |
%{_datadir}/gthumb/glade/* |
|
145 |
%{_datadir}/gthumb/icons/* |
|
146 |
%{_datadir}/gthumb/albumthemes/* |
|
147 |
%{_datadir}/locale/*/LC_MESSAGES/gthumb.mo |
|
148 |
%{_datadir}/application-registry/gthumb.applications |
|
149 |
%{_libdir}/bonobo/servers/*.server |
|
150 |
%{_libdir}/gthumb/modules/*.so |
|
151 |
%{_datadir}/pixmaps/gthumb.png |
|
152 |
%{_sysconfdir}/gconf/schemas/*.schemas |
|
153 |
%doc AUTHORS NEWS README COPYING |
|
154 |
%doc %{_datadir}/man/man1/gthumb.1* |
|
155 |
%doc %{_datadir}/gnome/help/gthumb |
|
156 |
||
157 |
%changelog |
|
17850 | 158 |
* Fri Apr 16 2010 - [email protected] |
159 |
- Bump to 2.11.3. |
|
160 |
- Remove patches/gthumb-02-upgrade.diff. |
|
161 |
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii |
|
162 |
- Re-shuffle and re-work patches/gthumb-03-enable-deprecated.diff. |
|
17705 | 163 |
* Sat Mar 13 2010 - [email protected] |
164 |
- Add gthumb-03-enable-deprecated.diff. |
|
15235 | 165 |
* Thu Feb 26 2009 - [email protected] |
166 |
- Bump to 2.10.11 |
|
167 |
- Remove upstreamed patch 05-libumem-check.diff. |
|
15020
3189ac36bddc
add gthumb-05-libumem-check.diff to fix bug 6647918
jerrytan
parents:
14832
diff
changeset
|
168 |
* Wed Feb 04 2009 - [email protected] |
3189ac36bddc
add gthumb-05-libumem-check.diff to fix bug 6647918
jerrytan
parents:
14832
diff
changeset
|
169 |
- Add gthumb-05-libumem-check.diff to fix bug 6647918 |
14696 | 170 |
* Wed Dec 03 2008 - [email protected] |
171 |
- Bump to 2.10.10 |
|
14632 | 172 |
* Thu Nov 20 2008 [email protected] |
173 |
- Add gthumb-04-zh-ja-locale.diff to fix the core dumped bug 6718848 |
|
13286 | 174 |
* Tue Aug 26 2008 - [email protected] |
175 |
- Add gthumb-03-g11n-locale-dir.diff to show none UTF-8 filenames. |
|
13035 | 176 |
* Tue Aug 05 2008 - [email protected] |
177 |
- Bump to 2.10.9. Remove upstream patch 02-uninstd_h. |
|
12875 | 178 |
* Tue Jul 22 2008 - [email protected] |
179 |
- Add upstream patch 02-uninstd_h to fix 543584. |
|
180 |
* Thu 25 Apr 2008 - [email protected] |
|
12209 | 181 |
- Bump to 2.10.8. |
11233
ca3d18bc34d3
* base-specs/eog.spec : Add patch eog-02-threads.diff fixes bugs
mattman
parents:
10674
diff
changeset
|
182 |
* Thu Nov 22 2007 - [email protected] |
ca3d18bc34d3
* base-specs/eog.spec : Add patch eog-02-threads.diff fixes bugs
mattman
parents:
10674
diff
changeset
|
183 |
- Add Patch 02-threads.diff resolves bugs 6631422/498995 |
10674 | 184 |
* Fri Oct 19 2007 - [email protected] |
185 |
- Bump to 2.10.7. |
|
10407 | 186 |
* Thu Aug 30 2007 - [email protected] |
187 |
- Add intltoolize call to update intltool scripts. |
|
10381 | 188 |
* Tue Aug 28 2007 - [email protected] |
189 |
- Bump to 2.10.6. |
|
10147 | 190 |
* Mon Jul 02 2007 - [email protected] |
191 |
- Bump to 2.10.5. Remove upstream patch, 02-html-page-begin. |
|
10114 | 192 |
* Fri Jun 22 2007 - [email protected] |
193 |
- Add patch, 02-html-page-begin, to fix 450110. |
|
10075 | 194 |
* Tue Jun 19 2007 - [email protected] |
195 |
- Bump to 2.10.4. |
|
9919 | 196 |
* Thu May 17 2007 - [email protected] |
197 |
- Bump to 2.10.3. Remove upstream patch, 02-fix-photo-import. |
|
9914 | 198 |
* Wed May 16 2007 - [email protected] |
199 |
- Add l10n tarball. |
|
9732 | 200 |
* Thu Apr 12 2007 - [email protected] |
201 |
- Bump to 2.10.2. |
|
9637 | 202 |
* Wed Mar 28 2007 - [email protected] |
203 |
- Bump to 2.10.1. |
|
9595 | 204 |
* Tue Mar 20 2007 - [email protected] |
205 |
- Bump to 2.10.0. |
|
9562 | 206 |
* Wed Mar 14 2007 - [email protected] |
207 |
- add --disable-scrollkeeper configure option |
|
9560 | 208 |
* Wed Mar 07 2007 - [email protected] |
209 |
- Bump to 2.9.3. |
|
210 |
* Mon Feb 19 2007 - [email protected] |
|
211 |
- Bump to 2.9.2. Minor change to deletion of *.a & *.la. |
|
212 |
* Thu Nov 20 2006 - [email protected] |
|
213 |
- bump to 2.7.9 |
|
214 |
* Sat May 13 2006 - [email protected] |
|
215 |
- Move to /usr |
|
216 |
* Thu Apr 20 2006 - [email protected] |
|
217 |
- Bump to 2.7.6. |
|
218 |
* Tue Mar 21 2006 - [email protected] |
|
219 |
- Bump to 2.7.5.1. |
|
220 |
* Mon Mar 6 2006 - [email protected] |
|
221 |
- Bump to 2.7.4. |
|
222 |
* Tue Feb 14 2006 - [email protected] |
|
223 |
- Bump to 2.7.3. |
|
224 |
* Sun Jan 15 2006 - [email protected] |
|
225 |
- Bump to 2.7.2 |
|
226 |
* Tue Dec 20 2005 - [email protected] |
|
227 |
- Bump to 2.7.1 |
|
228 |
* Fri Dec 02 2005 - [email protected] |
|
229 |
- Added gthumb-04-sfw-path.diff to use the absolute path of the |
|
230 |
executable in the .desktop file as usr/sfw/bin should not be |
|
231 |
included in $PATH. |
|
232 |
Fixes bug #6345489. |
|
233 |
* Tue Nov 29 2005 - laca.com |
|
234 |
- remove javahelp stuff |
|
235 |
* Tue Sep 27 2005 - [email protected] |
|
236 |
- Bump to 2.6.8. |
|
237 |
* Mon Aug 15 2005 - [email protected] |
|
238 |
- Bump to 2.6.6. |
|
239 |
* Fri Jan 28 2005 - [email protected] |
|
240 |
- #6222302 - Remove from yelp |
|
241 |
* Sun Nov 14 2004 - [email protected] |
|
242 |
- added --libdir=%{_libdir} and --bindir=%{_bindir} to configure opts |
|
243 |
* Wed Oct 20 2004 - [email protected] |
|
244 |
- Added patch6. It fixes bug #5101957 |
|
245 |
* Wed Oct 20 2004 - [email protected] |
|
246 |
- "Source" entry updated |
|
247 |
* Wed Sep 15 2004 - [email protected] |
|
248 |
- Added gthumb-04-g11n-potfiles.diff |
|
249 |
* Thu Jul 08 2004 - [email protected] |
|
250 |
- Updated l10n content to gthumb-l10n-po-1.2.tar.bz2 |
|
251 |
* Wed Jul 07 2004 - [email protected] |
|
252 |
- port to rpm4 |
|
253 |
* Wed Jul 07 2004 - [email protected] |
|
254 |
- added "-j $CPUS" to make to speed up builds |
|
255 |
* Mon Jun 14 2004 - [email protected] |
|
256 |
- Fix gthumb omf file installation. |
|
257 |
* Thu Jun 10 2004 - [email protected] |
|
258 |
- Fixes search pattern. |
|
259 |
* Wed May 12 2004 - [email protected] |
|
260 |
- Updated l10n content to gthumb-l10n-po-1.1.tar.bz2 |
|
261 |
* Sun Apr 18 2004 - [email protected] |
|
262 |
- enable javahelp conversion on Solaris |
|
263 |
* Fri Apr 09 2004 - [email protected] |
|
264 |
- Change the way the build directory is cleaned so that eog and |
|
265 |
gthumb can be built into the same Solaris package. |
|
266 |
* Thu Apr 01 2004 - [email protected] |
|
267 |
- Added patch02, now use ACLOCAL_FLAGS in aclocal call, and |
|
268 |
added --libexecdir to the configure line. |
|
269 |
* Thu Apr 01 2004 - [email protected] |
|
270 |
- Javahelp conversion, fix BuildRoot location |
|
271 |
* Wed Mar 31 2004 - [email protected] |
|
272 |
- replace tar jxf with the more solaris friendly |
|
273 |
bzcat piped through tar |
|
274 |
* Mon Mar 29 2004 - [email protected] |
|
275 |
- Adding gthumb-l10n-po-1.0.tar.bz2 l10n content |
|
276 |
* Mon Feb 23 2004 - <[email protected]> |
|
277 |
- uprevd to 2.3.1, removed patch 02 |
|
278 |
* Fri Jan 09 2004 - <[email protected]> |
|
279 |
- Deprecated patch for compile |
|
280 |
* Mon Oct 20 2003 - <[email protected]> |
|
281 |
- upreved to 2.1.7 |
|
282 |
* Thu Aug 14 2003 - <[email protected]> |
|
283 |
- remove *.a, *.la |
|
284 |
* Mon Aug 11 2003 - [email protected] |
|
285 |
- new tarball, reset release |
|
286 |
* Sat Aug 01 2003 - [email protected] |
|
287 |
- Update menu entry. |
|
288 |
* Mon Jul 14 2003 - [email protected] |
|
289 |
- Initial Sun Release |