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