author | gman |
Tue, 20 Sep 2005 09:59:20 +0000 | |
changeset 5944 | a20b90979bc9 |
parent 5929 | fc99efa0b5d7 |
child 5974 | 87adeff95409 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package gimp |
|
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
||
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
9 |
%define subver 2.3 |
5518 | 10 |
%define subver_install 2.0 |
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
11 |
%define microver 3 |
5518 | 12 |
%define help_version 8 |
561 | 13 |
|
14 |
Name: gimp |
|
15 |
License: GPL, LGPL |
|
16 |
Group: System/GUI/GNOME |
|
17 |
Version: %{subver}.%{microver} |
|
5518 | 18 |
Release: 1 |
19 |
Distribution: Java Desktop System |
|
575 | 20 |
Vendor: Sun Microsystems, Inc. |
561 | 21 |
Summary: The GIMP (GNU Image Manipulation Program) |
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
22 |
Source: ftp://ftp.gimp.org/pub/%{name}/v%{subver}/%{name}-%{version}.tar.bz2 |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
23 |
Source1: ftp://ftp.gimp.org/pub/%{name}/help/testing/gimp-help-2-0.%{help_version}.tar.bz2 |
628 | 24 |
Patch1: gimp-01-menu-entry.diff |
5929 | 25 |
Patch2: gimp-02-poppler-api.diff |
561 | 26 |
URL: http://www.gimp.org |
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
28 |
Docdir: %{_defaultdocdir}/doc |
|
29 |
Autoreqprov: on |
|
5518 | 30 |
Prereq: /sbin/ldconfig |
31 |
Prereq: coreutils |
|
561 | 32 |
|
3628 | 33 |
%define glib2_version 2.4.1 |
34 |
%define gtk2_version 2.4.1 |
|
35 |
%define libmng_version 1.0.6 |
|
36 |
%define libgimpprint_version 4.2.6 |
|
37 |
%define libpng_version 1.2.5 |
|
561 | 38 |
%define libjpeg_version 6.2.0 |
39 |
%define libungif_version 4.1.0 |
|
3628 | 40 |
%define slang_version 1.4.9 |
5602 | 41 |
%define pygtk2_version 2.7.3 |
561 | 42 |
|
43 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
44 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
45 |
BuildRequires: libgimpprint-devel >= %{libgimpprint_version} |
|
46 |
BuildRequires: libmng-devel >= %{libmng_version} |
|
47 |
BuildRequires: libpng-devel >= %{libpng_version} |
|
48 |
BuildRequires: libjpeg-devel >= %{libjpeg_version} |
|
49 |
BuildRequires: libungif >= %{libungif_version} |
|
50 |
BuildRequires: slang-devel >= %{slang_version} |
|
5602 | 51 |
BuildRequires: pygtk2-devel >= %{pygtk2_version} |
561 | 52 |
|
53 |
Requires: glib2 >= %{glib2_version} |
|
54 |
Requires: gtk2 >= %{gtk2_version} |
|
55 |
||
56 |
%description |
|
57 |
The GIMP (GNU Image Manipulation Program) is a powerful image |
|
58 |
composition and editing program, which can be extremely useful for |
|
59 |
creating logos and other graphics for webpages. The GIMP has many of |
|
60 |
the tools and filters you would expect to find in similar commercial |
|
61 |
offerings, and some interesting extras as well. The GIMP provides a |
|
62 |
large image manipulation toolbox, including channel operations and |
|
63 |
layers, effects, sub-pixel imaging and anti-aliasing, and conversions, |
|
64 |
all with multi-level undo. |
|
65 |
||
66 |
The GIMP includes a scripting facility, but many of the included |
|
67 |
scripts rely on fonts that we cannot distribute. The GIMP FTP site |
|
68 |
has a package of fonts that you can install by yourself, which |
|
69 |
includes all the fonts needed to run the included scripts. Some of |
|
70 |
the fonts have unusual licensing requirements; all the licenses are |
|
71 |
documented in the package. Get |
|
72 |
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and |
|
73 |
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you are so |
|
74 |
inclined. Alternatively, choose fonts which exist on your system |
|
75 |
before running the scripts. |
|
76 |
||
77 |
%package devel |
|
78 |
Summary: The GIMP plug-in and extension development kit. |
|
79 |
Group: Applications/Multimedia |
|
80 |
Requires: gtk2-devel >= %{gtk2_version} |
|
1027 | 81 |
Requires: %{name} = %{version} |
82 |
Autoreqprov: on |
|
83 |
||
561 | 84 |
%description devel |
85 |
The gimp-devel package contains the static libraries and header files |
|
86 |
for writing GNU Image Manipulation Program (GIMP) plug-ins and |
|
87 |
extensions. |
|
88 |
||
89 |
||
90 |
%prep |
|
1479 | 91 |
%setup -q |
5929 | 92 |
%patch1 -p1 |
93 |
%patch2 -p1 |
|
5518 | 94 |
/usr/bin/bzcat -dc %SOURCE1|tar xf - |
561 | 95 |
|
96 |
%build |
|
3263 | 97 |
%ifos linux |
98 |
if [ -x /usr/bin/getconf ]; then |
|
99 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
100 |
fi |
|
101 |
%else |
|
3846 | 102 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 103 |
%endif |
104 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
105 |
CPUS=1 |
|
106 |
fi |
|
107 |
||
561 | 108 |
CFLAGS="$RPM_OPT_FLAGS" \ |
628 | 109 |
libtoolize --force |
5518 | 110 |
aclocal $ACLOCAL_FLAGS |
628 | 111 |
automake -a -c -f |
112 |
autoconf |
|
2380 | 113 |
# Removing sierra driver on Solaris since it doesn't compile yet. |
114 |
%ifos solaris |
|
115 |
%define print_options "--disable-print" |
|
116 |
%else |
|
117 |
%define print_options "" |
|
118 |
%endif |
|
119 |
./configure --prefix=%{_prefix} \ |
|
561 | 120 |
--sysconfdir=%{_sysconfdir} \ |
4536 | 121 |
--bindir=%{_bindir} \ |
122 |
--libdir=%{_libdir} \ |
|
123 |
--includedir=%{_includedir} \ |
|
561 | 124 |
--libexecdir=%{_libexecdir} \ |
125 |
--localstatedir=/var/lib \ |
|
126 |
--mandir=%{_mandir} \ |
|
127 |
--enable-mp \ |
|
128 |
--enable-gtk-doc \ |
|
3666 | 129 |
--enable-default-binary \ |
130 |
%{print_options} |
|
3322
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
131 |
make |
561 | 132 |
|
4850
2aea1a7a4fea
* gimp.spec: Set PKG_CONFIG_PATH to build with gimp-help tarball.
dc144907
parents:
4836
diff
changeset
|
133 |
PKG_CONFIG_DISABLE_UNINSTALLED= |
2aea1a7a4fea
* gimp.spec: Set PKG_CONFIG_PATH to build with gimp-help tarball.
dc144907
parents:
4836
diff
changeset
|
134 |
unset PKG_CONFIG_DISABLE_UNINSTALLED |
4891
395c6f631b16
* gimp.spec: %ifos linux the PKG_CONFIG_PATH so Solaris one can be different.
dc144907
parents:
4867
diff
changeset
|
135 |
%ifos linux |
4850
2aea1a7a4fea
* gimp.spec: Set PKG_CONFIG_PATH to build with gimp-help tarball.
dc144907
parents:
4836
diff
changeset
|
136 |
export PKG_CONFIG_PATH=/usr/src/packages/BUILD/gimp-%{subver}.%{microver}:%{_pkg_config_path} |
4891
395c6f631b16
* gimp.spec: %ifos linux the PKG_CONFIG_PATH so Solaris one can be different.
dc144907
parents:
4867
diff
changeset
|
137 |
%endif |
4836 | 138 |
cd gimp-help-2-0.%{help_version} |
139 |
./configure --prefix=%{_prefix} \ |
|
140 |
--sysconfdir=%{_sysconfdir} \ |
|
141 |
--bindir=%{_bindir} \ |
|
142 |
--libdir=%{_libdir} \ |
|
143 |
--includedir=%{_includedir} \ |
|
144 |
--libexecdir=%{_libexecdir} \ |
|
145 |
--localstatedir=/var/lib \ |
|
146 |
--mandir=%{_mandir} \ |
|
147 |
--enable-mp \ |
|
148 |
--enable-gtk-doc \ |
|
149 |
--enable-default-binary \ |
|
150 |
%{print_options} |
|
151 |
make |
|
152 |
cd .. |
|
153 |
||
561 | 154 |
%install |
155 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
3628 | 156 |
#clean up unpackaged files |
5518 | 157 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/modules/*.la |
3628 | 158 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
561 | 159 |
|
4836 | 160 |
cd gimp-help-2-0.%{help_version} |
5002 | 161 |
make DESTDIR=$RPM_BUILD_ROOT install |
4836 | 162 |
|
561 | 163 |
%clean |
164 |
rm -rf $RPM_BUILD_ROOT |
|
165 |
||
166 |
%post |
|
167 |
/sbin/ldconfig |
|
168 |
||
169 |
%postun |
|
170 |
rm -f %{_datadir}/mime-info/gimp-%{subver}.keys |
|
171 |
/sbin/ldconfig |
|
172 |
||
173 |
%files |
|
174 |
%defattr (-, root, root) |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
175 |
%{_bindir}/gimp |
561 | 176 |
%{_bindir}/gimp-%{subver} |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
177 |
%{_bindir}/gimp-console* |
561 | 178 |
%{_bindir}/gimp-remote* |
5518 | 179 |
%{_libdir}/lib*-%{subver_install}.so.* |
180 |
%dir %{_datadir}/gimp/%{subver_install} |
|
181 |
%dir %{_libdir}/gimp/%{subver_install} |
|
182 |
%dir %{_libdir}/gimp/%{subver_install}/environ |
|
183 |
%dir %{_libdir}/gimp/%{subver_install}/modules |
|
184 |
%dir %{_libdir}/gimp/%{subver_install}/plug-ins |
|
185 |
%{_libdir}/gimp/%{subver_install}/environ/* |
|
186 |
%{_libdir}/gimp/%{subver_install}/modules/*.so |
|
187 |
%{_libdir}/gimp/%{subver_install}/plug-ins/* |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
188 |
%{_libdir}/gimp/%{subver_install}/interpreters |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
189 |
%{_libdir}/gimp/%{subver_install}/python |
5518 | 190 |
%{_datadir}/gimp/%{subver_install}/brushes/ |
191 |
%{_datadir}/gimp/%{subver_install}/fractalexplorer/ |
|
192 |
%{_datadir}/gimp/%{subver_install}/gfig/ |
|
193 |
%{_datadir}/gimp/%{subver_install}/gflare/ |
|
194 |
%{_datadir}/gimp/%{subver_install}/gimpressionist/ |
|
195 |
%{_datadir}/gimp/%{subver_install}/gradients/ |
|
196 |
%{_datadir}/gimp/%{subver_install}/images/ |
|
197 |
%{_datadir}/gimp/%{subver_install}/palettes/ |
|
198 |
%{_datadir}/gimp/%{subver_install}/patterns/ |
|
199 |
%{_datadir}/gimp/%{subver_install}/scripts/ |
|
200 |
%{_datadir}/gimp/%{subver_install}/themes/ |
|
201 |
%{_datadir}/gimp/%{subver_install}/tips/ |
|
202 |
%{_datadir}/gimp/%{subver_install}/help/ |
|
203 |
%{_datadir}/gimp/%{subver_install}/menus/ |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
204 |
%{_datadir}/applications/gimp.desktop |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
205 |
%{_datadir}/application-registry/gimp.applications |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
206 |
%{_datadir}/mime-info/gimp.keys |
561 | 207 |
%{_datadir}/locale |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5532
diff
changeset
|
208 |
%{_datadir}/icons |
5518 | 209 |
%{_sysconfdir}/gimp/%{subver_install}/gimprc |
210 |
%{_sysconfdir}/gimp/%{subver_install}/gtkrc |
|
211 |
%{_sysconfdir}/gimp/%{subver_install}/ps-menurc |
|
212 |
%{_sysconfdir}/gimp/%{subver_install}/sessionrc |
|
213 |
%{_sysconfdir}/gimp/%{subver_install}/templaterc |
|
214 |
%{_sysconfdir}/gimp/%{subver_install}/unitrc |
|
215 |
%{_sysconfdir}/gimp/%{subver_install}/controllerrc |
|
561 | 216 |
%{_mandir}/man1/gimp-%{subver}.1* |
217 |
%{_mandir}/man1/gimp-remote* |
|
218 |
%{_mandir}/man1/gimptool* |
|
219 |
%{_mandir}/man5/gimprc-%{subver}.5* |
|
220 |
||
221 |
%files devel |
|
5944 | 222 |
%defattr (-, root, root) |
5518 | 223 |
%{_includedir}/gimp-%{subver_install}/ |
224 |
%{_bindir}/gimptool-%{subver_install} |
|
561 | 225 |
%{_libdir}/*.so |
3628 | 226 |
%{_libdir}/pkgconfig/*.pc |
5518 | 227 |
%dir %{_libdir}/gimp/%{subver_install}/modules |
1027 | 228 |
%{_datadir}/aclocal/gimp-2.0.m4 |
5944 | 229 |
%doc %{_datadir}/gtk-doc/html/ |
5518 | 230 |
%{_mandir}/man1/gimptool-%{subver_install}.1* |
561 | 231 |
|
1027 | 232 |
%changelog |
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
233 |
* Mon Aug 15 2005 - [email protected] |
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
234 |
- Bump to 2.3.3. |
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
235 |
|
5518 | 236 |
* Fri Jun 10 2005 - [email protected] |
237 |
- Bump to 2.2.7, reapply patches |
|
238 |
||
4989 | 239 |
* Tue Feb 01 2005 - [email protected] |
240 |
- add a symlink called gimp to bindir that points to gimp-%subver, fixes |
|
241 |
#6221126 |
|
242 |
||
4891
395c6f631b16
* gimp.spec: %ifos linux the PKG_CONFIG_PATH so Solaris one can be different.
dc144907
parents:
4867
diff
changeset
|
243 |
* Fri Jan 21 2005 - [email protected] |
395c6f631b16
* gimp.spec: %ifos linux the PKG_CONFIG_PATH so Solaris one can be different.
dc144907
parents:
4867
diff
changeset
|
244 |
- %ifos linux the PKG_CONFIG_PATH so Solaris one can be different. |
395c6f631b16
* gimp.spec: %ifos linux the PKG_CONFIG_PATH so Solaris one can be different.
dc144907
parents:
4867
diff
changeset
|
245 |
|
4850
2aea1a7a4fea
* gimp.spec: Set PKG_CONFIG_PATH to build with gimp-help tarball.
dc144907
parents:
4836
diff
changeset
|
246 |
* Sun Jan 16 2005 - [email protected] |
2aea1a7a4fea
* gimp.spec: Set PKG_CONFIG_PATH to build with gimp-help tarball.
dc144907
parents:
4836
diff
changeset
|
247 |
- Set PKG_CONFIG_PATH to build with gimp-help tarball. |
2aea1a7a4fea
* gimp.spec: Set PKG_CONFIG_PATH to build with gimp-help tarball.
dc144907
parents:
4836
diff
changeset
|
248 |
|
4836 | 249 |
* Tue Jan 11 2005 - [email protected] |
250 |
- #6199103 : Add gimp-help tarball |
|
251 |
||
4536 | 252 |
* Fri Nov 12 2004 - [email protected] |
253 |
- Added --libdir and --bindir to configure opts so they can be redirected |
|
254 |
on Solaris |
|
255 |
||
3921
42430a33349a
Added gimp-03-g11n-potfiles.diff. Updated gimp.spec.
yk150259
parents:
3858
diff
changeset
|
256 |
* Tue Sep 14 2004 - [email protected] |
42430a33349a
Added gimp-03-g11n-potfiles.diff. Updated gimp.spec.
yk150259
parents:
3858
diff
changeset
|
257 |
- Added gimp-03-g11n-potfiles.diff |
42430a33349a
Added gimp-03-g11n-potfiles.diff. Updated gimp.spec.
yk150259
parents:
3858
diff
changeset
|
258 |
|
3748 | 259 |
* Wed Aug 25 2004 - [email protected] |
260 |
- changed header file permissions |
|
3666 | 261 |
* Wed Aug 18 2004 - [email protected] |
262 |
- removed --disable-gtk-doc since it doesn't make sense to include both |
|
263 |
this and --enable-gtk-doc. |
|
264 |
||
3628 | 265 |
* Fri Jul 16 2004 - [email protected] |
266 |
- Finally bumped to 2.0.x series (2.0.2) |
|
267 |
- packaging fixes for rpm4 and remove upstream patches |
|
268 |
||
3322
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
269 |
* Tue Jul 13 2004 - [email protected] |
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
270 |
- Remove '-j $CPUS' from 'make' because of failures on Solaris and intermittent |
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
271 |
failures on Linux. |
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
272 |
|
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
273 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
274 |
- Updated l10n content to gimp-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
275 |
|
3263 | 276 |
* Wed Jul 07 2004 - [email protected] |
277 |
- added "-j $CPUS" to make to speed up builds |
|
278 |
||
2841 | 279 |
* Fri May 21 2004 - [email protected] |
280 |
- Added patch 4 to support building on x86 Solaris. |
|
281 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
282 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
283 |
- Updated l10n content to gimp-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
284 |
|
2575 | 285 |
* Wed Apr 28 2004 - [email protected] |
286 |
- Remove unwanted keys from gimp.keys. |
|
287 |
||
2380 | 288 |
* Sun Apr 03 2004 - [email protected] |
289 |
- Use #ifdef to set --disable-print for Solaris. |
|
290 |
||
2364 | 291 |
* Thu Apr 01 2004 - [email protected] |
292 |
- replace tar jxf with the more solaris friendly |
|
293 |
bzcat piped through tar. Now pass ACLOCAL_FLAGS into |
|
294 |
aclocal. Added EXTRA_CONFIGURE_OPTIONS to allow Solaris |
|
295 |
to pass in --disable-print. Fixed a few defattr lines. |
|
296 |
||
2350 | 297 |
* Mon Mar 29 2004 - [email protected] |
298 |
- Adding gimp-l10n-po-1.0.tar.bz2 l10n content |
|
299 |
||
1516 | 300 |
* Fri Jan 09 2004 - <[email protected]> |
301 |
- Patch configure.in to enable deprecated widgets |
|
302 |
||
1292 | 303 |
* Mon Oct 20 2003 - <[email protected]> |
304 |
- Updated version of glib2 and gtk2 dependency to build for QS. |
|
305 |
||
1058 | 306 |
* Thu Aug 14 2003 - <[email protected]> |
307 |
- remove *.a, *.la |
|
308 |
||
1044 | 309 |
* Tue Aug 11 2003 - [email protected] |
310 |
- Move mime, .desktop and keys files into proper location |
|
311 |
instead of just sym-linking them |
|
312 |
||
1027 | 313 |
* Mon Aug 10 2003 - [email protected] |
314 |
- Bump tarball |
|
561 | 315 |
|
628 | 316 |
* Thu Jul 17 2003 - [email protected] |
317 |
- Correct menu entry |
|
318 |
||
561 | 319 |
* Mon Jul 14 2003 - [email protected] |
320 |
- initial spec file created |