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