author | gman |
Mon, 20 Dec 2004 02:28:18 +0000 | |
changeset 4771 | b42ce751575e |
parent 4744 | 1f23d3b6ca07 |
child 4775 | e38dfd6697a6 |
permissions | -rw-r--r-- |
4771 | 1 |
%define subver 2.2 |
3628 | 2 |
%define microver 2 |
561 | 3 |
|
4 |
Name: gimp |
|
5 |
License: GPL, LGPL |
|
6 |
Group: System/GUI/GNOME |
|
7 |
Version: %{subver}.%{microver} |
|
4771 | 8 |
Release: 1 |
9 |
Distribution: Cinnabar |
|
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} \ |
4536 | 112 |
--bindir=%{_bindir} \ |
113 |
--libdir=%{_libdir} \ |
|
114 |
--includedir=%{_includedir} \ |
|
561 | 115 |
--libexecdir=%{_libexecdir} \ |
116 |
--localstatedir=/var/lib \ |
|
117 |
--mandir=%{_mandir} \ |
|
118 |
--enable-mp \ |
|
119 |
--enable-gtk-doc \ |
|
3666 | 120 |
--enable-default-binary \ |
121 |
%{print_options} |
|
3322
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
122 |
make |
561 | 123 |
|
124 |
%install |
|
125 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
1044 | 126 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/applications |
127 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/application-registry |
|
128 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/mime-info |
|
129 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.desktop ${RPM_BUILD_ROOT}%{_datadir}/applications/gimp-%{subver}.desktop |
|
130 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.applications ${RPM_BUILD_ROOT}%{_datadir}/application-registry/gimp-%{subver}.applications |
|
131 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.keys ${RPM_BUILD_ROOT}%{_datadir}/mime-info/gimp-%{subver}.keys |
|
3628 | 132 |
#clean up unpackaged files |
133 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver}/modules/*.la |
|
134 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
|
561 | 135 |
|
136 |
%clean |
|
137 |
rm -rf $RPM_BUILD_ROOT |
|
138 |
||
139 |
%post |
|
140 |
/sbin/ldconfig |
|
141 |
||
142 |
%postun |
|
143 |
rm -f %{_datadir}/mime-info/gimp-%{subver}.keys |
|
144 |
/sbin/ldconfig |
|
145 |
||
146 |
%files |
|
147 |
%defattr (-, root, root) |
|
148 |
||
149 |
%doc %{_datadir}/gtk-doc/html/ |
|
150 |
||
151 |
%{_bindir}/gimp-%{subver} |
|
152 |
%{_bindir}/gimp-remote* |
|
153 |
||
3628 | 154 |
%{_libdir}/lib*-%{subver}.so.* |
561 | 155 |
%{_libdir}/pkgconfig/gimp-%{subver}.pc |
156 |
%{_libdir}/pkgconfig/gimpui-%{subver}.pc |
|
157 |
||
158 |
%dir %{_datadir}/gimp/%{subver} |
|
159 |
%dir %{_libdir}/gimp/%{subver} |
|
160 |
%dir %{_libdir}/gimp/%{subver}/environ |
|
161 |
%dir %{_libdir}/gimp/%{subver}/modules |
|
162 |
%dir %{_libdir}/gimp/%{subver}/plug-ins |
|
163 |
%{_libdir}/gimp/%{subver}/environ/* |
|
164 |
%{_libdir}/gimp/%{subver}/modules/*.so |
|
165 |
%{_libdir}/gimp/%{subver}/plug-ins/* |
|
166 |
||
167 |
%{_datadir}/gimp/%{subver}/brushes/ |
|
168 |
%{_datadir}/gimp/%{subver}/fractalexplorer/ |
|
169 |
%{_datadir}/gimp/%{subver}/gfig/ |
|
170 |
%{_datadir}/gimp/%{subver}/gflare/ |
|
171 |
%{_datadir}/gimp/%{subver}/gimpressionist/ |
|
172 |
%{_datadir}/gimp/%{subver}/gradients/ |
|
173 |
%{_datadir}/gimp/%{subver}/images/ |
|
174 |
%{_datadir}/gimp/%{subver}/palettes/ |
|
175 |
%{_datadir}/gimp/%{subver}/patterns/ |
|
176 |
%{_datadir}/gimp/%{subver}/scripts/ |
|
177 |
%{_datadir}/gimp/%{subver}/themes/ |
|
178 |
%{_datadir}/gimp/%{subver}/tips/ |
|
1044 | 179 |
%{_datadir}/applications/gimp-%{subver}.desktop |
180 |
%{_datadir}/application-registry/gimp-%{subver}.applications |
|
181 |
%{_datadir}/mime-info/gimp-%{subver}.keys |
|
561 | 182 |
%{_datadir}/locale |
183 |
||
184 |
%{_sysconfdir}/gimp/%{subver}/gimprc |
|
3628 | 185 |
%{_sysconfdir}/gimp/%{subver}/gtkrc |
561 | 186 |
%{_sysconfdir}/gimp/%{subver}/ps-menurc |
187 |
%{_sysconfdir}/gimp/%{subver}/sessionrc |
|
188 |
%{_sysconfdir}/gimp/%{subver}/templaterc |
|
189 |
%{_sysconfdir}/gimp/%{subver}/unitrc |
|
190 |
||
191 |
%defattr (0644, root, root) |
|
192 |
%{_mandir}/man1/gimp-%{subver}.1* |
|
193 |
%{_mandir}/man1/gimp-remote* |
|
194 |
%{_mandir}/man1/gimptool* |
|
195 |
%{_mandir}/man5/gimprc-%{subver}.5* |
|
196 |
||
197 |
%files devel |
|
198 |
||
3748 | 199 |
%{_includedir}/gimp-%{subver}/ |
200 |
||
2364 | 201 |
%defattr (0755, root, root) |
561 | 202 |
%{_bindir}/gimptool-%{subver} |
203 |
%{_libdir}/*.so |
|
3628 | 204 |
%{_libdir}/pkgconfig/*.pc |
561 | 205 |
%dir %{_libdir}/gimp/%{subver}/modules |
206 |
||
2364 | 207 |
%defattr (0644, root, root) |
1027 | 208 |
%{_datadir}/aclocal/gimp-2.0.m4 |
561 | 209 |
%{_mandir}/man1/gimptool-%{subver}.1* |
210 |
||
1027 | 211 |
%changelog |
4771 | 212 |
* Mon Dec 20 2004 - [email protected] |
213 |
- Bump to 2.2 |
|
214 |
||
4536 | 215 |
* Fri Nov 12 2004 - [email protected] |
216 |
- Added --libdir and --bindir to configure opts so they can be redirected |
|
217 |
on Solaris |
|
218 |
||
3921
42430a33349a
Added gimp-03-g11n-potfiles.diff. Updated gimp.spec.
yk150259
parents:
3858
diff
changeset
|
219 |
* Tue Sep 14 2004 - [email protected] |
42430a33349a
Added gimp-03-g11n-potfiles.diff. Updated gimp.spec.
yk150259
parents:
3858
diff
changeset
|
220 |
- Added gimp-03-g11n-potfiles.diff |
42430a33349a
Added gimp-03-g11n-potfiles.diff. Updated gimp.spec.
yk150259
parents:
3858
diff
changeset
|
221 |
|
3748 | 222 |
* Wed Aug 25 2004 - [email protected] |
223 |
- changed header file permissions |
|
3666 | 224 |
* Wed Aug 18 2004 - [email protected] |
225 |
- removed --disable-gtk-doc since it doesn't make sense to include both |
|
226 |
this and --enable-gtk-doc. |
|
227 |
||
3628 | 228 |
* Fri Jul 16 2004 - [email protected] |
229 |
- Finally bumped to 2.0.x series (2.0.2) |
|
230 |
- packaging fixes for rpm4 and remove upstream patches |
|
231 |
||
3322
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
232 |
* 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
|
233 |
- 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
|
234 |
failures on Linux. |
ab0868b07ff8
gimp.spec: Remove '-j $CPUS' from 'make' because of failures on Solaris and
dc144907
parents:
3320
diff
changeset
|
235 |
|
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
236 |
* 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
|
237 |
- 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
|
238 |
|
3263 | 239 |
* Wed Jul 07 2004 - [email protected] |
240 |
- added "-j $CPUS" to make to speed up builds |
|
241 |
||
2841 | 242 |
* Fri May 21 2004 - [email protected] |
243 |
- Added patch 4 to support building on x86 Solaris. |
|
244 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
245 |
* 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
|
246 |
- 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
|
247 |
|
2575 | 248 |
* Wed Apr 28 2004 - [email protected] |
249 |
- Remove unwanted keys from gimp.keys. |
|
250 |
||
2380 | 251 |
* Sun Apr 03 2004 - [email protected] |
252 |
- Use #ifdef to set --disable-print for Solaris. |
|
253 |
||
2364 | 254 |
* Thu Apr 01 2004 - [email protected] |
255 |
- replace tar jxf with the more solaris friendly |
|
256 |
bzcat piped through tar. Now pass ACLOCAL_FLAGS into |
|
257 |
aclocal. Added EXTRA_CONFIGURE_OPTIONS to allow Solaris |
|
258 |
to pass in --disable-print. Fixed a few defattr lines. |
|
259 |
||
2350 | 260 |
* Mon Mar 29 2004 - [email protected] |
261 |
- Adding gimp-l10n-po-1.0.tar.bz2 l10n content |
|
262 |
||
1516 | 263 |
* Fri Jan 09 2004 - <[email protected]> |
264 |
- Patch configure.in to enable deprecated widgets |
|
265 |
||
1292 | 266 |
* Mon Oct 20 2003 - <[email protected]> |
267 |
- Updated version of glib2 and gtk2 dependency to build for QS. |
|
268 |
||
1058 | 269 |
* Thu Aug 14 2003 - <[email protected]> |
270 |
- remove *.a, *.la |
|
271 |
||
1044 | 272 |
* Tue Aug 11 2003 - [email protected] |
273 |
- Move mime, .desktop and keys files into proper location |
|
274 |
instead of just sym-linking them |
|
275 |
||
1027 | 276 |
* Mon Aug 10 2003 - [email protected] |
277 |
- Bump tarball |
|
561 | 278 |
|
628 | 279 |
* Thu Jul 17 2003 - [email protected] |
280 |
- Correct menu entry |
|
281 |
||
561 | 282 |
* Mon Jul 14 2003 - [email protected] |
283 |
- initial spec file created |