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