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