author | jerrytan |
Mon, 29 Dec 2008 09:51:04 +0000 | |
changeset 14832 | 02df36a14dd4 |
parent 14696 | 4a63fef4b8ec |
child 15020 | 3189ac36bddc |
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 |
# |
|
9562 | 8 |
# owner:jerrytan |
9 |
# |
|
9914 | 10 |
%include l10n.inc |
9560 | 11 |
Name: gthumb |
14542 | 12 |
License: GPL v2 |
9560 | 13 |
Group: Applications/Multimedia |
14696 | 14 |
Version: 2.10.10 |
9560 | 15 |
Release: 1 |
16 |
Distribution: Java Desktop System |
|
17 |
Vendor: Sun Microsystems, Inc. |
|
18 |
Summary: An image viewer and browser for GNOME. |
|
9595 | 19 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gthumb/2.10/%{name}-%{version}.tar.bz2 |
9914 | 20 |
Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2 |
12031 | 21 |
%if %build_l10n |
22 |
Source2: l10n-configure.sh |
|
23 |
%endif |
|
9610
069547656d47
Remove gthumb's old patches since not needed any more
jerrytan
parents:
9595
diff
changeset
|
24 |
#owner:jerrytan date:2006-03-22 type:branding |
9560 | 25 |
Patch1: gthumb-01-menu-entry.diff |
12966
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12875
diff
changeset
|
26 |
#owner:jerrytan date:2008-07-31 type:branding |
13036 | 27 |
Patch2: gthumb-02-man.diff |
13286 | 28 |
#owner:fujiwara date:2008-08-26 type:bug bugster:6738015 bugzilla:489922 state:upsteam |
29 |
Patch3: gthumb-03-g11n-locale-dir.diff |
|
14832 | 30 |
#owner:jerrytan date:2008-11-20 type:bug bugster:6718848 bugzilla:561632 |
14632 | 31 |
Patch4: gthumb-04-zh-ja-locale.diff |
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 |
13286 | 76 |
%patch3 -p1 |
14632 | 77 |
%patch4 -p1 |
9560 | 78 |
|
79 |
%build |
|
80 |
%ifos linux |
|
81 |
if [ -x /usr/bin/getconf ]; then |
|
82 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
83 |
fi |
|
84 |
%else |
|
85 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
86 |
%endif |
|
87 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
88 |
CPUS=1 |
|
89 |
fi |
|
90 |
||
91 |
libtoolize --force |
|
10407 | 92 |
intltoolize --force --copy --automake |
12031 | 93 |
|
94 |
%if %build_l10n |
|
95 |
bash -x %SOURCE2 --enable-copyright |
|
96 |
%endif |
|
97 |
||
9560 | 98 |
aclocal $ACLOCAL_FLAGS |
99 |
automake -a -c -f |
|
100 |
autoconf |
|
101 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
102 |
./configure --prefix=%{_prefix} \ |
|
103 |
--bindir=%{_bindir} \ |
|
104 |
--libdir=%{_libdir} \ |
|
105 |
--mandir=%{_mandir} \ |
|
106 |
--sysconfdir=%{_sysconfdir} \ |
|
9562 | 107 |
--disable-scrollkeeper \ |
108 |
--disable-schemas-install \ |
|
9560 | 109 |
--libexecdir=%{_libexecdir} |
110 |
make -j $CPUS |
|
111 |
||
112 |
%install |
|
113 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
114 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
115 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
116 |
#Clean up unpackage files |
|
117 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
118 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
119 |
rm $RPM_BUILD_ROOT%{_libdir}/gthumb/modules/*.a |
|
120 |
rm $RPM_BUILD_ROOT%{_libdir}/gthumb/modules/*.la |
|
121 |
||
122 |
||
123 |
# Remove omf file(s) so that does not appear in yelp |
|
124 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/gthumb |
|
125 |
rmdir $RPM_BUILD_ROOT%{_datadir}/omf |
|
126 |
||
127 |
%clean |
|
128 |
rm -rf $RPM_BUILD_ROOT |
|
129 |
||
130 |
%post |
|
131 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
132 |
SCHEMAS="gthumb.schemas" |
|
133 |
for S in $SCHEMAS; do |
|
134 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
135 |
done |
|
136 |
||
137 |
||
138 |
%postun |
|
139 |
||
140 |
%files |
|
141 |
%defattr(-,root,root) |
|
142 |
%{_bindir}/gthumb |
|
143 |
%{_libdir}/gthumb/libgthumb.so |
|
144 |
%{_libexecdir}/gthumb-image-viewer |
|
145 |
%{_libexecdir}/gthumb-catalog-view |
|
146 |
%{_datadir}/applications/gthumb.desktop |
|
147 |
%{_datadir}/gnome-2.0/ui/*.xml |
|
148 |
%{_datadir}/gthumb/glade/* |
|
149 |
%{_datadir}/gthumb/icons/* |
|
150 |
%{_datadir}/gthumb/albumthemes/* |
|
151 |
%{_datadir}/locale/*/LC_MESSAGES/gthumb.mo |
|
152 |
%{_datadir}/application-registry/gthumb.applications |
|
153 |
%{_libdir}/bonobo/servers/*.server |
|
154 |
%{_libdir}/gthumb/modules/*.so |
|
155 |
%{_datadir}/pixmaps/gthumb.png |
|
156 |
%{_sysconfdir}/gconf/schemas/*.schemas |
|
157 |
%doc AUTHORS NEWS README COPYING |
|
158 |
%doc %{_datadir}/man/man1/gthumb.1* |
|
159 |
%doc %{_datadir}/gnome/help/gthumb |
|
160 |
||
161 |
%changelog |
|
14696 | 162 |
* Wed Dec 03 2008 - [email protected] |
163 |
- Bump to 2.10.10 |
|
14632 | 164 |
* Thu Nov 20 2008 [email protected] |
165 |
- Add gthumb-04-zh-ja-locale.diff to fix the core dumped bug 6718848 |
|
13286 | 166 |
* Tue Aug 26 2008 - [email protected] |
167 |
- Add gthumb-03-g11n-locale-dir.diff to show none UTF-8 filenames. |
|
13035 | 168 |
* Tue Aug 05 2008 - [email protected] |
169 |
- Bump to 2.10.9. Remove upstream patch 02-uninstd_h. |
|
12875 | 170 |
* Tue Jul 22 2008 - [email protected] |
171 |
- Add upstream patch 02-uninstd_h to fix 543584. |
|
172 |
* Thu 25 Apr 2008 - [email protected] |
|
12209 | 173 |
- Bump to 2.10.8. |
11233
ca3d18bc34d3
* base-specs/eog.spec : Add patch eog-02-threads.diff fixes bugs
mattman
parents:
10674
diff
changeset
|
174 |
* Thu Nov 22 2007 - [email protected] |
ca3d18bc34d3
* base-specs/eog.spec : Add patch eog-02-threads.diff fixes bugs
mattman
parents:
10674
diff
changeset
|
175 |
- Add Patch 02-threads.diff resolves bugs 6631422/498995 |
10674 | 176 |
* Fri Oct 19 2007 - [email protected] |
177 |
- Bump to 2.10.7. |
|
10407 | 178 |
* Thu Aug 30 2007 - [email protected] |
179 |
- Add intltoolize call to update intltool scripts. |
|
10381 | 180 |
* Tue Aug 28 2007 - [email protected] |
181 |
- Bump to 2.10.6. |
|
10147 | 182 |
* Mon Jul 02 2007 - [email protected] |
183 |
- Bump to 2.10.5. Remove upstream patch, 02-html-page-begin. |
|
10114 | 184 |
* Fri Jun 22 2007 - [email protected] |
185 |
- Add patch, 02-html-page-begin, to fix 450110. |
|
10075 | 186 |
* Tue Jun 19 2007 - [email protected] |
187 |
- Bump to 2.10.4. |
|
9919 | 188 |
* Thu May 17 2007 - [email protected] |
189 |
- Bump to 2.10.3. Remove upstream patch, 02-fix-photo-import. |
|
9914 | 190 |
* Wed May 16 2007 - [email protected] |
191 |
- Add l10n tarball. |
|
9732 | 192 |
* Thu Apr 12 2007 - [email protected] |
193 |
- Bump to 2.10.2. |
|
9637 | 194 |
* Wed Mar 28 2007 - [email protected] |
195 |
- Bump to 2.10.1. |
|
9595 | 196 |
* Tue Mar 20 2007 - [email protected] |
197 |
- Bump to 2.10.0. |
|
9562 | 198 |
* Wed Mar 14 2007 - [email protected] |
199 |
- add --disable-scrollkeeper configure option |
|
9560 | 200 |
* Wed Mar 07 2007 - [email protected] |
201 |
- Bump to 2.9.3. |
|
202 |
* Mon Feb 19 2007 - [email protected] |
|
203 |
- Bump to 2.9.2. Minor change to deletion of *.a & *.la. |
|
204 |
* Thu Nov 20 2006 - [email protected] |
|
205 |
- bump to 2.7.9 |
|
206 |
* Sat May 13 2006 - [email protected] |
|
207 |
- Move to /usr |
|
208 |
* Thu Apr 20 2006 - [email protected] |
|
209 |
- Bump to 2.7.6. |
|
210 |
* Tue Mar 21 2006 - [email protected] |
|
211 |
- Bump to 2.7.5.1. |
|
212 |
* Mon Mar 6 2006 - [email protected] |
|
213 |
- Bump to 2.7.4. |
|
214 |
* Tue Feb 14 2006 - [email protected] |
|
215 |
- Bump to 2.7.3. |
|
216 |
* Sun Jan 15 2006 - [email protected] |
|
217 |
- Bump to 2.7.2 |
|
218 |
* Tue Dec 20 2005 - [email protected] |
|
219 |
- Bump to 2.7.1 |
|
220 |
* Fri Dec 02 2005 - [email protected] |
|
221 |
- Added gthumb-04-sfw-path.diff to use the absolute path of the |
|
222 |
executable in the .desktop file as usr/sfw/bin should not be |
|
223 |
included in $PATH. |
|
224 |
Fixes bug #6345489. |
|
225 |
* Tue Nov 29 2005 - laca.com |
|
226 |
- remove javahelp stuff |
|
227 |
* Tue Sep 27 2005 - [email protected] |
|
228 |
- Bump to 2.6.8. |
|
229 |
* Mon Aug 15 2005 - [email protected] |
|
230 |
- Bump to 2.6.6. |
|
231 |
* Fri Jan 28 2005 - [email protected] |
|
232 |
- #6222302 - Remove from yelp |
|
233 |
* Sun Nov 14 2004 - [email protected] |
|
234 |
- added --libdir=%{_libdir} and --bindir=%{_bindir} to configure opts |
|
235 |
* Wed Oct 20 2004 - [email protected] |
|
236 |
- Added patch6. It fixes bug #5101957 |
|
237 |
* Wed Oct 20 2004 - [email protected] |
|
238 |
- "Source" entry updated |
|
239 |
* Wed Sep 15 2004 - [email protected] |
|
240 |
- Added gthumb-04-g11n-potfiles.diff |
|
241 |
* Thu Jul 08 2004 - [email protected] |
|
242 |
- Updated l10n content to gthumb-l10n-po-1.2.tar.bz2 |
|
243 |
* Wed Jul 07 2004 - [email protected] |
|
244 |
- port to rpm4 |
|
245 |
* Wed Jul 07 2004 - [email protected] |
|
246 |
- added "-j $CPUS" to make to speed up builds |
|
247 |
* Mon Jun 14 2004 - [email protected] |
|
248 |
- Fix gthumb omf file installation. |
|
249 |
* Thu Jun 10 2004 - [email protected] |
|
250 |
- Fixes search pattern. |
|
251 |
* Wed May 12 2004 - [email protected] |
|
252 |
- Updated l10n content to gthumb-l10n-po-1.1.tar.bz2 |
|
253 |
* Sun Apr 18 2004 - [email protected] |
|
254 |
- enable javahelp conversion on Solaris |
|
255 |
* Fri Apr 09 2004 - [email protected] |
|
256 |
- Change the way the build directory is cleaned so that eog and |
|
257 |
gthumb can be built into the same Solaris package. |
|
258 |
* Thu Apr 01 2004 - [email protected] |
|
259 |
- Added patch02, now use ACLOCAL_FLAGS in aclocal call, and |
|
260 |
added --libexecdir to the configure line. |
|
261 |
* Thu Apr 01 2004 - [email protected] |
|
262 |
- Javahelp conversion, fix BuildRoot location |
|
263 |
* Wed Mar 31 2004 - [email protected] |
|
264 |
- replace tar jxf with the more solaris friendly |
|
265 |
bzcat piped through tar |
|
266 |
* Mon Mar 29 2004 - [email protected] |
|
267 |
- Adding gthumb-l10n-po-1.0.tar.bz2 l10n content |
|
268 |
* Mon Feb 23 2004 - <[email protected]> |
|
269 |
- uprevd to 2.3.1, removed patch 02 |
|
270 |
* Fri Jan 09 2004 - <[email protected]> |
|
271 |
- Deprecated patch for compile |
|
272 |
* Mon Oct 20 2003 - <[email protected]> |
|
273 |
- upreved to 2.1.7 |
|
274 |
* Thu Aug 14 2003 - <[email protected]> |
|
275 |
- remove *.a, *.la |
|
276 |
* Mon Aug 11 2003 - [email protected] |
|
277 |
- new tarball, reset release |
|
278 |
* Sat Aug 01 2003 - [email protected] |
|
279 |
- Update menu entry. |
|
280 |
* Mon Jul 14 2003 - [email protected] |
|
281 |
- Initial Sun Release |