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