author | chrisk |
Mon, 31 Aug 2009 12:02:58 +0000 | |
changeset 16427 | 63d81b085adb |
parent 15963 | de8e59307496 |
child 16434 | f21f22550fe9 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package gimp |
|
3 |
# |
|
11461 | 4 |
# Copyright 2008 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
15963 | 8 |
# Owner: leon.sha |
9397 | 9 |
# |
16427 | 10 |
|
11 |
%define OSR 10917:2.x |
|
12 |
||
9397 | 13 |
%include l10n.inc |
15824 | 14 |
%define subver 2.6 |
9397 | 15 |
%define subver_install 2.0 |
12604 | 16 |
%define microver 6 |
9397 | 17 |
|
18 |
Name: gimp |
|
19 |
License: GPL/LGPL |
|
20 |
Group: System/GUI/GNOME |
|
21 |
Version: %{subver}.%{microver} |
|
22 |
Release: 2 |
|
23 |
Distribution: Java Desktop System |
|
24 |
Vendor: Sun Microsystems, Inc. |
|
25 |
Summary: The GIMP (GNU Image Manipulation Program) |
|
10725 | 26 |
Source: ftp://ftp.gimp.org/pub/%{name}/v%{subver}/%{name}-%{version}.tar.bz2 |
11461 | 27 |
Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2 |
12031 | 28 |
%if %build_l10n |
29 |
Source2: l10n-configure.sh |
|
30 |
%endif |
|
9397 | 31 |
# date:2003-07-17 owner:gman type:branding |
32 |
Patch1: gimp-01-menu-entry.diff |
|
15963 | 33 |
# date:2009-06-19 owner:leon.sha type:branding |
34 |
Patch2: gimp-02-copying-gplv3.diff |
|
15824 | 35 |
|
9397 | 36 |
URL: http://www.gimp.org |
37 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
38 |
Docdir: %{_defaultdocdir}/doc |
|
39 |
Autoreqprov: on |
|
40 |
Prereq: /sbin/ldconfig |
|
41 |
Prereq: coreutils |
|
42 |
||
43 |
%define glib2_version 2.4.1 |
|
44 |
%define gtk2_version 2.4.1 |
|
45 |
%define libmng_version 1.0.6 |
|
46 |
%define libgimpprint_version 4.2.6 |
|
47 |
%define libpng_version 1.2.5 |
|
48 |
%define libjpeg_version 6.2.0 |
|
49 |
%define libungif_version 4.1.0 |
|
50 |
%define slang_version 1.4.9 |
|
51 |
%define pygtk2_version 2.7.3 |
|
52 |
||
53 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
54 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
55 |
BuildRequires: libgimpprint-devel >= %{libgimpprint_version} |
|
56 |
BuildRequires: libmng-devel >= %{libmng_version} |
|
57 |
BuildRequires: libpng-devel >= %{libpng_version} |
|
58 |
BuildRequires: libjpeg-devel >= %{libjpeg_version} |
|
59 |
BuildRequires: libungif >= %{libungif_version} |
|
60 |
BuildRequires: slang-devel >= %{slang_version} |
|
61 |
BuildRequires: pygtk2-devel >= %{pygtk2_version} |
|
62 |
||
63 |
Requires: glib2 >= %{glib2_version} |
|
64 |
Requires: gtk2 >= %{gtk2_version} |
|
65 |
||
66 |
%description |
|
67 |
The GIMP (GNU Image Manipulation Program) is a powerful image |
|
68 |
composition and editing program, which can be extremely useful for |
|
69 |
creating logos and other graphics for webpages. The GIMP has many of |
|
70 |
the tools and filters you would expect to find in similar commercial |
|
71 |
offerings, and some interesting extras as well. The GIMP provides a |
|
72 |
large image manipulation toolbox, including channel operations and |
|
73 |
layers, effects, sub-pixel imaging and anti-aliasing, and conversions, |
|
74 |
all with multi-level undo. |
|
75 |
||
76 |
The GIMP includes a scripting facility, but many of the included |
|
77 |
scripts rely on fonts that we cannot distribute. The GIMP FTP site |
|
78 |
has a package of fonts that you can install by yourself, which |
|
79 |
includes all the fonts needed to run the included scripts. Some of |
|
80 |
the fonts have unusual licensing requirements; all the licenses are |
|
81 |
documented in the package. Get |
|
82 |
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and |
|
83 |
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you are so |
|
84 |
inclined. Alternatively, choose fonts which exist on your system |
|
85 |
before running the scripts. |
|
86 |
||
87 |
%package devel |
|
88 |
Summary: The GIMP plug-in and extension development kit. |
|
89 |
Group: Applications/Multimedia |
|
90 |
Requires: gtk2-devel >= %{gtk2_version} |
|
91 |
Requires: %{name} = %{version} |
|
92 |
Autoreqprov: on |
|
93 |
||
94 |
%description devel |
|
95 |
The gimp-devel package contains the static libraries and header files |
|
96 |
for writing GNU Image Manipulation Program (GIMP) plug-ins and |
|
97 |
extensions. |
|
98 |
||
99 |
||
100 |
%prep |
|
101 |
%setup -q |
|
102 |
%if %build_l10n |
|
11461 | 103 |
bzcat %SOURCE1 | tar xf - |
9397 | 104 |
cd po-sun; make; cd .. |
105 |
%endif |
|
106 |
%patch1 -p1 |
|
15963 | 107 |
%patch2 -p1 |
9397 | 108 |
%build |
109 |
%ifos linux |
|
110 |
if [ -x /usr/bin/getconf ]; then |
|
111 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
112 |
fi |
|
113 |
%else |
|
114 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
115 |
%endif |
|
116 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
117 |
CPUS=1 |
|
118 |
fi |
|
119 |
||
120 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
121 |
libtoolize --force |
|
10392
234e91fa03fa
Add the intltoolize call mentioned in ChangeLog.
dcarbery
parents:
10391
diff
changeset
|
122 |
intltoolize --force --copy --automake |
12031 | 123 |
|
124 |
%if %build_l10n |
|
125 |
bash -x %SOURCE2 --enable-copyright |
|
126 |
%endif |
|
127 |
||
9397 | 128 |
aclocal $ACLOCAL_FLAGS |
129 |
automake -a -c -f |
|
130 |
autoconf |
|
131 |
# Removing sierra driver on Solaris since it doesn't compile yet. |
|
132 |
%ifos solaris |
|
133 |
%define print_options "--disable-print" |
|
134 |
%define mmx_options "--enable-mmx=no" |
|
135 |
%else |
|
136 |
%define print_options "" |
|
137 |
%endif |
|
138 |
./configure --prefix=%{_prefix} \ |
|
139 |
--sysconfdir=%{_sysconfdir} \ |
|
140 |
--bindir=%{_bindir} \ |
|
141 |
--libdir=%{_libdir} \ |
|
142 |
--includedir=%{_includedir} \ |
|
143 |
--libexecdir=%{_libexecdir} \ |
|
144 |
--localstatedir=/var/lib \ |
|
145 |
--mandir=%{_mandir} \ |
|
146 |
--enable-mp \ |
|
147 |
%{gtk_doc_option} \ |
|
148 |
--enable-default-binary \ |
|
149 |
%{mmx_options} \ |
|
150 |
%{print_options} |
|
151 |
make munix= |
|
152 |
||
153 |
%install |
|
154 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
155 |
#clean up unpackaged files |
|
156 |
rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/modules/*.la |
|
157 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
158 |
#rm $RPM_BUILD_ROOT%{_libdir}/gimp/%{subver_install}/python/lib*.la |
|
159 |
rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/python/*.la |
|
160 |
#rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/python/*.a |
|
161 |
||
162 |
%clean |
|
163 |
rm -rf $RPM_BUILD_ROOT |
|
164 |
||
165 |
%post |
|
166 |
/sbin/ldconfig |
|
167 |
||
168 |
%postun |
|
169 |
rm -f %{_datadir}/mime-info/gimp-%{subver}.keys |
|
170 |
/sbin/ldconfig |
|
171 |
||
172 |
%files |
|
173 |
%defattr (-, root, root) |
|
174 |
%{_bindir}/gimp |
|
175 |
%{_bindir}/gimp-%{subver} |
|
176 |
%{_bindir}/gimp-console* |
|
177 |
%{_bindir}/gimp-remote* |
|
178 |
%{_libdir}/lib*-%{subver_install}.so.* |
|
179 |
%dir %{_datadir}/gimp/%{subver_install} |
|
180 |
%dir %{_libdir}/gimp/%{subver_install} |
|
181 |
%dir %{_libdir}/gimp/%{subver_install}/environ |
|
182 |
%dir %{_libdir}/gimp/%{subver_install}/modules |
|
183 |
%dir %{_libdir}/gimp/%{subver_install}/plug-ins |
|
184 |
%{_libdir}/gimp/%{subver_install}/environ/* |
|
185 |
%{_libdir}/gimp/%{subver_install}/modules/*.so |
|
186 |
%{_libdir}/gimp/%{subver_install}/plug-ins/* |
|
187 |
%{_libdir}/gimp/%{subver_install}/interpreters |
|
188 |
%{_libdir}/gimp/%{subver_install}/python |
|
189 |
%{_datadir}/gimp/%{subver_install}/brushes/ |
|
190 |
%{_datadir}/gimp/%{subver_install}/fractalexplorer/ |
|
191 |
%{_datadir}/gimp/%{subver_install}/gfig/ |
|
192 |
%{_datadir}/gimp/%{subver_install}/gflare/ |
|
193 |
%{_datadir}/gimp/%{subver_install}/gimpressionist/ |
|
194 |
%{_datadir}/gimp/%{subver_install}/gradients/ |
|
195 |
%{_datadir}/gimp/%{subver_install}/images/ |
|
196 |
%{_datadir}/gimp/%{subver_install}/palettes/ |
|
197 |
%{_datadir}/gimp/%{subver_install}/patterns/ |
|
198 |
%{_datadir}/gimp/%{subver_install}/scripts/ |
|
199 |
%{_datadir}/gimp/%{subver_install}/themes/ |
|
200 |
%{_datadir}/gimp/%{subver_install}/tips/ |
|
201 |
%{_datadir}/gimp/%{subver_install}/menus/ |
|
202 |
%{_datadir}/applications/gimp.desktop |
|
203 |
%{_datadir}/application-registry/gimp.applications |
|
204 |
%{_datadir}/mime-info/gimp.keys |
|
205 |
%{_datadir}/locale |
|
206 |
%{_datadir}/icons |
|
207 |
%{_sysconfdir}/gimp/%{subver_install}/gimprc |
|
208 |
%{_sysconfdir}/gimp/%{subver_install}/gtkrc |
|
209 |
%{_sysconfdir}/gimp/%{subver_install}/ps-menurc |
|
210 |
%{_sysconfdir}/gimp/%{subver_install}/sessionrc |
|
211 |
%{_sysconfdir}/gimp/%{subver_install}/templaterc |
|
212 |
%{_sysconfdir}/gimp/%{subver_install}/unitrc |
|
213 |
%{_sysconfdir}/gimp/%{subver_install}/controllerrc |
|
214 |
%{_mandir}/man1/gimp-%{subver}.1* |
|
215 |
%{_mandir}/man1/gimp-remote* |
|
216 |
%{_mandir}/man1/gimptool* |
|
217 |
%{_mandir}/man5/gimprc-%{subver}.5* |
|
218 |
||
219 |
%files devel |
|
220 |
%defattr (-, root, root) |
|
221 |
%{_includedir}/gimp-%{subver_install}/ |
|
222 |
%{_bindir}/gimptool-%{subver_install} |
|
223 |
%{_libdir}/*.so |
|
224 |
%{_libdir}/pkgconfig/*.pc |
|
225 |
%dir %{_libdir}/gimp/%{subver_install}/modules |
|
226 |
%{_datadir}/aclocal/gimp-2.0.m4 |
|
227 |
%{_datadir}/gtk-doc/html/ |
|
228 |
%{_mandir}/man1/gimptool-%{subver_install}.1* |
|
229 |
||
230 |
%changelog |
|
15963 | 231 |
* Fri Jun 26 2009 - [email protected] |
232 |
- Change spec and patch owner to leon.sha |
|
233 |
* Fri Jun 19 2009 - [email protected] |
|
234 |
- Add patch 02-copying-gplv3 to explicit indicate that we are using GPLv3 |
|
235 |
for Gimp-2.6.x |
|
15824 | 236 |
* Mon Jun 1 2009 - [email protected] |
237 |
- Change owner to bewitche |
|
238 |
* Mon Apr 27 2009 - [email protected] |
|
239 |
- Bump to version 2.6.6 |
|
12604 | 240 |
* Thu Jun 05 2008 - [email protected] |
241 |
- Revert to 2.4.6 because 2.5.0 requires gegl and babl, both GPL v3 modules. |
|
12519 | 242 |
* Wed May 28 2008 - [email protected] |
243 |
- Bump to 2.5.0. |
|
11805 | 244 |
* Thu Mar 06 2008 - [email protected] |
245 |
- Bump to 2.4.5. |
|
11599 | 246 |
* Mon Feb 04 2008 - [email protected] |
247 |
- Bump to 2.4.4. |
|
11461 | 248 |
* Fri Jan 11 2008 - [email protected] |
249 |
- remove help -- moved to a separate spec file and package |
|
11343 | 250 |
* Wed Dec 19 2007 - [email protected] |
251 |
- Bump to 2.4.3. |
|
11275 | 252 |
* Mon Dec 03 2007 - [email protected] |
253 |
- Bump to 2.4.2. Bump gimp-help to 2.4.0 |
|
11156 | 254 |
* Wed Nov 07 2007 - [email protected] |
255 |
- Bump to 2.4.1. |
|
10718 | 256 |
* Fri Oct 26 2007 - [email protected] |
257 |
- Bump to 2.4.0. |
|
10592 | 258 |
* Thu Oct 2 2007 - [email protected] |
259 |
- Bump gimp-help to 2.0.13. |
|
10553 | 260 |
* Wed Sep 25 2007 - [email protected] |
261 |
- Bump to 2.4.0-rc3. |
|
10459 | 262 |
* Thu Sep 06 2007 - [email protected] |
263 |
- Bump to 2.4.0-rc2. |
|
10391 | 264 |
* Tue Aug 28 2007 - [email protected] |
265 |
- Replace 05-iconv-solaris patch with call to intltoolize. |
|
10353 | 266 |
* Mon Aug 20 2007 - [email protected] |
267 |
- Bump to 2.4.0-rc1. Add patch 05-iconv-solaris to fix #467309. Modify |
|
268 |
intltool-merge.in to allow use of non-GNU iconv. |
|
10258 | 269 |
* Thu Aug 02 2007 - [email protected] |
270 |
- Bump to 2.3.19. |
|
10195 | 271 |
* Sat Jul 14 2007 - [email protected] |
272 |
- Bump to 2.3.18. |
|
9988 | 273 |
* Tue Jun 05 2007 - [email protected] |
274 |
- Bump to 2.3.17. Remove upstream patch, 02-void-return. |
|
9842 | 275 |
* Sun May 06 2007 - [email protected] |
276 |
- Bump to 2.3.16. Add patch 02-void-return to fix 433339. Removes 'return' |
|
277 |
keyword from void function code. |
|
9555 | 278 |
* Wed Mar 14 2007 - [email protected] |
279 |
- Bump to 2.3.15. |
|
9397 | 280 |
* Tue Feb 13 2007 - [email protected] |
281 |
- Add l10n tarball. |
|
282 |
* Thu Feb 8 2007 - [email protected] |
|
283 |
- Bump to 2.3.14. |
|
284 |
* Thu Jan 25 2006 - [email protected] |
|
285 |
- Remove gimp-02-fixcompile. Fixed upstream. |
|
286 |
* Thu Dec 21 2006 - [email protected] |
|
287 |
- Bump help version to 2.0.11. Add --without-gimp to help |
|
288 |
configure so the help docs build. |
|
289 |
* Tue Nov 28 2006 - [email protected] |
|
290 |
- Bump to 2.3.13. Remove upstream patches 02-Xext and 04-null-char. Renumber |
|
291 |
remainder. |
|
292 |
* Fri Nov 3 2006 - [email protected] |
|
293 |
- use %gtk_doc_option in configure so that it can be disabled using |
|
294 |
--without-gtk-doc |
|
295 |
* Tue Oct 17 2006 - [email protected] |
|
296 |
- Created bugzilla : #362877, attached patch gimp-02-Xext.diff, |
|
297 |
to get this upstream |
|
298 |
* Tue Oct 17 2006 - [email protected] |
|
299 |
- Add patch, 04-null-char, to remove a null char that is breaking the build. |
|
300 |
Bugzilla #362832. |
|
301 |
- Bump to 2.3.12. |
|
302 |
* Fri Oct 13 2006 - [email protected] |
|
303 |
- Delete .a and .la files. |
|
304 |
* Thu Sep 28 2006 - [email protected] |
|
305 |
- Bump to 2.3.11. Remove upstream patch, 03-hidden, and renumber rest. |
|
306 |
* Mon Aug 14 2006 - [email protected] |
|
307 |
- Bump to 2.3.10. |
|
308 |
* Fri Jun 23 2006 - [email protected] |
|
309 |
- Bump to 2.3.9. Set --enable-mmx=no when building on Solaris since |
|
310 |
this compiler option doesn't work on Solaris |
|
311 |
* Tue May 30 2006 - [email protected] |
|
312 |
- Add patch, 04-hidden, for new G_GNUC_INTERNAL usage. |
|
313 |
* Wed May 03 2006 - [email protected] |
|
314 |
- Bump help version to 2.0.10. |
|
315 |
* Tue Apr 25 2006 - [email protected] |
|
316 |
- Add patch, 03-void-return, to fix build issues. Bugzilla: 339698. |
|
317 |
* Mon Apr 24 2006 - [email protected] |
|
318 |
- Bump to 2.3.8. |
|
319 |
- Bump help version to 2.0.9. |
|
320 |
* Tue Feb 21 2006 - [email protected] |
|
321 |
- Bump to 2.3.7. |
|
322 |
* Tue Jan 03 2006 - [email protected] |
|
323 |
- Bump to 2.3.6. |
|
324 |
* Fri Sep 30 2005 - [email protected] |
|
325 |
- Bump to 2.3.4 |
|
326 |
* Tue Sep 20 2005 - [email protected] |
|
327 |
- add patch Xext.diff: add -lXext to a Makefile.am |
|
328 |
* Mon Aug 15 2005 - [email protected] |
|
329 |
- Bump to 2.3.3. |
|
330 |
* Fri Jun 10 2005 - [email protected] |
|
331 |
- Bump to 2.2.7, reapply patches |
|
332 |
* Tue Feb 01 2005 - [email protected] |
|
333 |
- add a symlink called gimp to bindir that points to gimp-%subver, fixes |
|
334 |
#6221126 |
|
335 |
* Fri Jan 21 2005 - [email protected] |
|
336 |
- %ifos linux the PKG_CONFIG_PATH so Solaris one can be different. |
|
337 |
* Sun Jan 16 2005 - [email protected] |
|
338 |
- Set PKG_CONFIG_PATH to build with gimp-help tarball. |
|
339 |
* Tue Jan 11 2005 - [email protected] |
|
340 |
- #6199103 : Add gimp-help tarball |
|
341 |
* Fri Nov 12 2004 - [email protected] |
|
342 |
- Added --libdir and --bindir to configure opts so they can be redirected |
|
343 |
on Solaris |
|
344 |
* Tue Sep 14 2004 - [email protected] |
|
345 |
- Added gimp-03-g11n-potfiles.diff |
|
346 |
* Wed Aug 25 2004 - [email protected] |
|
347 |
- changed header file permissions |
|
348 |
* Wed Aug 18 2004 - [email protected] |
|
349 |
- removed --disable-gtk-doc since it doesn't make sense to include both |
|
350 |
this and --enable-gtk-doc. |
|
351 |
* Fri Jul 16 2004 - [email protected] |
|
352 |
- Finally bumped to 2.0.x series (2.0.2) |
|
353 |
- packaging fixes for rpm4 and remove upstream patches |
|
354 |
* Tue Jul 13 2004 - [email protected] |
|
355 |
- Remove '-j $CPUS' from 'make' because of failures on Solaris and intermittent |
|
356 |
failures on Linux. |
|
357 |
* Thu Jul 08 2004 - [email protected] |
|
358 |
- Updated l10n content to gimp-l10n-po-1.2.tar.bz2 |
|
359 |
* Wed Jul 07 2004 - [email protected] |
|
360 |
- added "-j $CPUS" to make to speed up builds |
|
361 |
* Fri May 21 2004 - [email protected] |
|
362 |
- Added patch 4 to support building on x86 Solaris. |
|
363 |
* Wed May 12 2004 - [email protected] |
|
364 |
- Updated l10n content to gimp-l10n-po-1.1.tar.bz2 |
|
365 |
* Wed Apr 28 2004 - [email protected] |
|
366 |
- Remove unwanted keys from gimp.keys. |
|
367 |
* Sun Apr 03 2004 - [email protected] |
|
368 |
- Use #ifdef to set --disable-print for Solaris. |
|
369 |
* Thu Apr 01 2004 - [email protected] |
|
370 |
- replace tar jxf with the more solaris friendly |
|
371 |
bzcat piped through tar. Now pass ACLOCAL_FLAGS into |
|
372 |
aclocal. Added EXTRA_CONFIGURE_OPTIONS to allow Solaris |
|
373 |
to pass in --disable-print. Fixed a few defattr lines. |
|
374 |
* Mon Mar 29 2004 - [email protected] |
|
375 |
- Adding gimp-l10n-po-1.0.tar.bz2 l10n content |
|
376 |
* Fri Jan 09 2004 - <[email protected]> |
|
377 |
- Patch configure.in to enable deprecated widgets |
|
378 |
* Mon Oct 20 2003 - <[email protected]> |
|
379 |
- Updated version of glib2 and gtk2 dependency to build for QS. |
|
380 |
* Thu Aug 14 2003 - <[email protected]> |
|
381 |
- remove *.a, *.la |
|
382 |
* Tue Aug 11 2003 - [email protected] |
|
383 |
- Move mime, .desktop and keys files into proper location |
|
384 |
instead of just sym-linking them |
|
385 |
* Mon Aug 10 2003 - [email protected] |
|
386 |
- Bump tarball |
|
387 |
* Thu Jul 17 2003 - [email protected] |
|
388 |
- Correct menu entry |
|
389 |
* Mon Jul 14 2003 - [email protected] |
|
390 |
- initial spec file created |