author | jerrytan |
Thu, 22 Mar 2007 14:12:26 +0000 | |
changeset 9610 | 069547656d47 |
parent 9595 | 4c54d5ed64bc |
child 9637 | 4a1fee8a2d6a |
permissions | -rw-r--r-- |
9560 | 1 |
# |
2 |
# spec file for package gthumb |
|
3 |
# |
|
9562 | 4 |
# Copyright 2007 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 |
# |
|
9560 | 10 |
Name: gthumb |
11 |
License: GPL |
|
12 |
Group: Applications/Multimedia |
|
9595 | 13 |
Version: 2.10.0 |
9560 | 14 |
Release: 1 |
15 |
Distribution: Java Desktop System |
|
16 |
Vendor: Sun Microsystems, Inc. |
|
17 |
Summary: An image viewer and browser for GNOME. |
|
9595 | 18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gthumb/2.10/%{name}-%{version}.tar.bz2 |
9610
069547656d47
Remove gthumb's old patches since not needed any more
jerrytan
parents:
9595
diff
changeset
|
19 |
#owner:jerrytan date:2006-03-22 type:branding |
9560 | 20 |
Patch1: gthumb-01-menu-entry.diff |
21 |
URL: http://gthumb.sourceforge.net/ |
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
23 |
Docdir: %{_docdir}/doc |
|
24 |
Autoreqprov: on |
|
25 |
||
26 |
BuildRequires: libpng-devel |
|
27 |
BuildRequires: glib2-devel >= 2.4.0 |
|
28 |
BuildRequires: gtk2-devel >= 2.4.0 |
|
29 |
BuildRequires: libxml2-devel >= 2.6.7 |
|
30 |
BuildRequires: libgnome-devel >= 2.6.0 |
|
31 |
BuildRequires: libgnomeui-devel >= 2.6.0 |
|
32 |
BuildRequires: gnome-vfs-devel >= 2.6.0 |
|
33 |
BuildRequires: libglade-devel >= 2.3.6 |
|
34 |
BuildRequires: libgnomeprint-devel >= 2.6.0 |
|
35 |
BuildRequires: libgnomeprintui-devel >= 2.6.0 |
|
36 |
BuildRequires: libbonobo-devel >= 2.6.0 |
|
37 |
BuildRequires: libbonoboui-devel >= 2.6.0 |
|
38 |
Requires: libpng |
|
39 |
Requires: glib2 >= 2.4.0 |
|
40 |
Requires: gtk2 >= 2.4.0 |
|
41 |
Requires: libxml2 >= 2.6.7 |
|
42 |
Requires: libgnome >= 2.6.0 |
|
43 |
Requires: libgnomeui >= 2.6.0 |
|
44 |
Requires: gnome-vfs >= 2.6.0 |
|
45 |
Requires: libglade >= 2.3.6 |
|
46 |
Requires: libgnomeprint >= 2.6.0 |
|
47 |
Requires: libgnomeprintui >= 2.6.0 |
|
48 |
Requires: libbonobo >= 2.6.0 |
|
49 |
Requires: libbonoboui >= 2.6.0 |
|
50 |
||
51 |
%description |
|
52 |
gThumb lets you browse your hard disk, showing you thumbnails of image files. |
|
53 |
It also lets you view single files (including GIF animations), add comments to |
|
54 |
images, organize images in catalogs, print images, view slideshows, set your |
|
55 |
desktop background, and more. |
|
56 |
||
57 |
%prep |
|
58 |
%setup -q |
|
59 |
%patch1 -p1 |
|
60 |
||
61 |
%build |
|
62 |
%ifos linux |
|
63 |
if [ -x /usr/bin/getconf ]; then |
|
64 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
65 |
fi |
|
66 |
%else |
|
67 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
68 |
%endif |
|
69 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
70 |
CPUS=1 |
|
71 |
fi |
|
72 |
||
73 |
libtoolize --force |
|
74 |
aclocal $ACLOCAL_FLAGS |
|
75 |
automake -a -c -f |
|
76 |
autoconf |
|
77 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
78 |
./configure --prefix=%{_prefix} \ |
|
79 |
--bindir=%{_bindir} \ |
|
80 |
--libdir=%{_libdir} \ |
|
81 |
--mandir=%{_mandir} \ |
|
82 |
--sysconfdir=%{_sysconfdir} \ |
|
9562 | 83 |
--disable-scrollkeeper \ |
84 |
--disable-schemas-install \ |
|
9560 | 85 |
--libexecdir=%{_libexecdir} |
86 |
make -j $CPUS |
|
87 |
||
88 |
%install |
|
89 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
90 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
91 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
92 |
#Clean up unpackage files |
|
93 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
94 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
95 |
rm $RPM_BUILD_ROOT%{_libdir}/gthumb/modules/*.a |
|
96 |
rm $RPM_BUILD_ROOT%{_libdir}/gthumb/modules/*.la |
|
97 |
||
98 |
||
99 |
# Remove omf file(s) so that does not appear in yelp |
|
100 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/gthumb |
|
101 |
rmdir $RPM_BUILD_ROOT%{_datadir}/omf |
|
102 |
||
103 |
%clean |
|
104 |
rm -rf $RPM_BUILD_ROOT |
|
105 |
||
106 |
%post |
|
107 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
108 |
SCHEMAS="gthumb.schemas" |
|
109 |
for S in $SCHEMAS; do |
|
110 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
111 |
done |
|
112 |
||
113 |
||
114 |
%postun |
|
115 |
||
116 |
%files |
|
117 |
%defattr(-,root,root) |
|
118 |
%{_bindir}/gthumb |
|
119 |
%{_libdir}/gthumb/libgthumb.so |
|
120 |
%{_libexecdir}/gthumb-image-viewer |
|
121 |
%{_libexecdir}/gthumb-catalog-view |
|
122 |
%{_datadir}/applications/gthumb.desktop |
|
123 |
%{_datadir}/gnome-2.0/ui/*.xml |
|
124 |
%{_datadir}/gthumb/glade/* |
|
125 |
%{_datadir}/gthumb/icons/* |
|
126 |
%{_datadir}/gthumb/albumthemes/* |
|
127 |
%{_datadir}/locale/*/LC_MESSAGES/gthumb.mo |
|
128 |
%{_datadir}/application-registry/gthumb.applications |
|
129 |
%{_libdir}/bonobo/servers/*.server |
|
130 |
%{_libdir}/gthumb/modules/*.so |
|
131 |
%{_datadir}/pixmaps/gthumb.png |
|
132 |
%{_sysconfdir}/gconf/schemas/*.schemas |
|
133 |
%doc AUTHORS NEWS README COPYING |
|
134 |
%doc %{_datadir}/man/man1/gthumb.1* |
|
135 |
%doc %{_datadir}/gnome/help/gthumb |
|
136 |
||
137 |
%changelog |
|
9595 | 138 |
* Tue Mar 20 2007 - [email protected] |
139 |
- Bump to 2.10.0. |
|
9562 | 140 |
* Wed Mar 14 2007 - [email protected] |
141 |
- add --disable-scrollkeeper configure option |
|
9560 | 142 |
* Wed Mar 07 2007 - [email protected] |
143 |
- Bump to 2.9.3. |
|
144 |
* Mon Feb 19 2007 - [email protected] |
|
145 |
- Bump to 2.9.2. Minor change to deletion of *.a & *.la. |
|
146 |
* Thu Nov 20 2006 - [email protected] |
|
147 |
- bump to 2.7.9 |
|
148 |
* Sat May 13 2006 - [email protected] |
|
149 |
- Move to /usr |
|
150 |
* Thu Apr 20 2006 - [email protected] |
|
151 |
- Bump to 2.7.6. |
|
152 |
* Tue Mar 21 2006 - [email protected] |
|
153 |
- Bump to 2.7.5.1. |
|
154 |
* Mon Mar 6 2006 - [email protected] |
|
155 |
- Bump to 2.7.4. |
|
156 |
* Tue Feb 14 2006 - [email protected] |
|
157 |
- Bump to 2.7.3. |
|
158 |
* Sun Jan 15 2006 - [email protected] |
|
159 |
- Bump to 2.7.2 |
|
160 |
* Tue Dec 20 2005 - [email protected] |
|
161 |
- Bump to 2.7.1 |
|
162 |
* Fri Dec 02 2005 - [email protected] |
|
163 |
- Added gthumb-04-sfw-path.diff to use the absolute path of the |
|
164 |
executable in the .desktop file as usr/sfw/bin should not be |
|
165 |
included in $PATH. |
|
166 |
Fixes bug #6345489. |
|
167 |
* Tue Nov 29 2005 - laca.com |
|
168 |
- remove javahelp stuff |
|
169 |
* Tue Sep 27 2005 - [email protected] |
|
170 |
- Bump to 2.6.8. |
|
171 |
* Mon Aug 15 2005 - [email protected] |
|
172 |
- Bump to 2.6.6. |
|
173 |
* Fri Jan 28 2005 - [email protected] |
|
174 |
- #6222302 - Remove from yelp |
|
175 |
* Sun Nov 14 2004 - [email protected] |
|
176 |
- added --libdir=%{_libdir} and --bindir=%{_bindir} to configure opts |
|
177 |
* Wed Oct 20 2004 - [email protected] |
|
178 |
- Added patch6. It fixes bug #5101957 |
|
179 |
* Wed Oct 20 2004 - [email protected] |
|
180 |
- "Source" entry updated |
|
181 |
* Wed Sep 15 2004 - [email protected] |
|
182 |
- Added gthumb-04-g11n-potfiles.diff |
|
183 |
* Thu Jul 08 2004 - [email protected] |
|
184 |
- Updated l10n content to gthumb-l10n-po-1.2.tar.bz2 |
|
185 |
* Wed Jul 07 2004 - [email protected] |
|
186 |
- port to rpm4 |
|
187 |
* Wed Jul 07 2004 - [email protected] |
|
188 |
- added "-j $CPUS" to make to speed up builds |
|
189 |
* Mon Jun 14 2004 - [email protected] |
|
190 |
- Fix gthumb omf file installation. |
|
191 |
* Thu Jun 10 2004 - [email protected] |
|
192 |
- Fixes search pattern. |
|
193 |
* Wed May 12 2004 - [email protected] |
|
194 |
- Updated l10n content to gthumb-l10n-po-1.1.tar.bz2 |
|
195 |
* Sun Apr 18 2004 - [email protected] |
|
196 |
- enable javahelp conversion on Solaris |
|
197 |
* Fri Apr 09 2004 - [email protected] |
|
198 |
- Change the way the build directory is cleaned so that eog and |
|
199 |
gthumb can be built into the same Solaris package. |
|
200 |
* Thu Apr 01 2004 - [email protected] |
|
201 |
- Added patch02, now use ACLOCAL_FLAGS in aclocal call, and |
|
202 |
added --libexecdir to the configure line. |
|
203 |
* Thu Apr 01 2004 - [email protected] |
|
204 |
- Javahelp conversion, fix BuildRoot location |
|
205 |
* Wed Mar 31 2004 - [email protected] |
|
206 |
- replace tar jxf with the more solaris friendly |
|
207 |
bzcat piped through tar |
|
208 |
* Mon Mar 29 2004 - [email protected] |
|
209 |
- Adding gthumb-l10n-po-1.0.tar.bz2 l10n content |
|
210 |
* Mon Feb 23 2004 - <[email protected]> |
|
211 |
- uprevd to 2.3.1, removed patch 02 |
|
212 |
* Fri Jan 09 2004 - <[email protected]> |
|
213 |
- Deprecated patch for compile |
|
214 |
* Mon Oct 20 2003 - <[email protected]> |
|
215 |
- upreved to 2.1.7 |
|
216 |
* Thu Aug 14 2003 - <[email protected]> |
|
217 |
- remove *.a, *.la |
|
218 |
* Mon Aug 11 2003 - [email protected] |
|
219 |
- new tarball, reset release |
|
220 |
* Sat Aug 01 2003 - [email protected] |
|
221 |
- Update menu entry. |
|
222 |
* Mon Jul 14 2003 - [email protected] |
|
223 |
- Initial Sun Release |