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