author | dermotm |
Wed, 07 Jul 2004 09:21:36 +0000 | |
changeset 3263 | 3c14210c0b99 |
parent 3224 | 8ca3f4526524 |
child 3279 | 5d64ee516a02 |
permissions | -rw-r--r-- |
561 | 1 |
%define subver 1.3 |
1027 | 2 |
%define microver 18 |
561 | 3 |
|
4 |
Name: gimp |
|
5 |
License: GPL, LGPL |
|
6 |
Group: System/GUI/GNOME |
|
7 |
Version: %{subver}.%{microver} |
|
3224 | 8 |
Release: 28 |
561 | 9 |
Distribution: Mercury |
575 | 10 |
Vendor: Sun Microsystems, Inc. |
561 | 11 |
Summary: The GIMP (GNU Image Manipulation Program) |
1027 | 12 |
Source: ftp://ftp.gimp.org/pub/gimp/v1.3/v1.3.18/gimp-%{version}.tar.bz2 |
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
13 |
Source1: gimp-l10n-po-1.1.tar.bz2 |
628 | 14 |
Patch1: gimp-01-menu-entry.diff |
1516 | 15 |
Patch2: gimp-02-enable-deprecated-stuff.diff |
2575 | 16 |
Patch3: gimp-03-remove-keys.diff |
2841 | 17 |
Patch4: gimp-04-solx86.diff |
561 | 18 |
URL: http://www.gimp.org |
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
20 |
Docdir: %{_defaultdocdir}/doc |
|
21 |
Autoreqprov: on |
|
22 |
||
1292 | 23 |
%define glib2_version 2.2.3 |
24 |
%define gtk2_version 2.2.4 |
|
561 | 25 |
%define libmng_version 1.0.4 |
26 |
%define libgimpprint_version 4.3.3 |
|
27 |
%define libpng_version 1.2.4 |
|
28 |
%define libjpeg_version 6.2.0 |
|
29 |
%define libungif_version 4.1.0 |
|
30 |
%define slang_version 1.4.5 |
|
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 |
2575 | 83 |
%patch3 -p1 |
2841 | 84 |
%patch4 -p1 |
561 | 85 |
|
86 |
%build |
|
3263 | 87 |
%ifos linux |
88 |
if [ -x /usr/bin/getconf ]; then |
|
89 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
90 |
fi |
|
91 |
%else |
|
92 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l` |
|
93 |
%endif |
|
94 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
95 |
CPUS=1 |
|
96 |
fi |
|
97 |
||
561 | 98 |
CFLAGS="$RPM_OPT_FLAGS" \ |
628 | 99 |
libtoolize --force |
2364 | 100 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros |
628 | 101 |
automake -a -c -f |
102 |
autoconf |
|
2380 | 103 |
# Removing sierra driver on Solaris since it doesn't compile yet. |
104 |
%ifos solaris |
|
105 |
%define print_options "--disable-print" |
|
106 |
%else |
|
107 |
%define print_options "" |
|
108 |
%endif |
|
109 |
./configure --prefix=%{_prefix} \ |
|
561 | 110 |
--sysconfdir=%{_sysconfdir} \ |
111 |
--libexecdir=%{_libexecdir} \ |
|
112 |
--localstatedir=/var/lib \ |
|
113 |
--mandir=%{_mandir} \ |
|
114 |
--enable-mp \ |
|
115 |
--enable-gtk-doc \ |
|
2364 | 116 |
--enable-default-binary \ |
2380 | 117 |
--disable-gtk-doc %{print_options} |
3263 | 118 |
make -j $CPUS |
561 | 119 |
|
120 |
%install |
|
121 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
1044 | 122 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/applications |
123 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/application-registry |
|
124 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/mime-info |
|
125 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.desktop ${RPM_BUILD_ROOT}%{_datadir}/applications/gimp-%{subver}.desktop |
|
126 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.applications ${RPM_BUILD_ROOT}%{_datadir}/application-registry/gimp-%{subver}.applications |
|
127 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.keys ${RPM_BUILD_ROOT}%{_datadir}/mime-info/gimp-%{subver}.keys |
|
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 |
||
147 |
%{_libdir}/lib*-%{subver}.so.%{microver} |
|
148 |
%{_libdir}/lib*-%{subver}.so.%{microver}.0.0 |
|
149 |
%{_libdir}/pkgconfig/gimp-%{subver}.pc |
|
150 |
%{_libdir}/pkgconfig/gimpui-%{subver}.pc |
|
151 |
||
152 |
%dir %{_datadir}/gimp/%{subver} |
|
153 |
%dir %{_libdir}/gimp/%{subver} |
|
154 |
%dir %{_libdir}/gimp/%{subver}/environ |
|
155 |
%dir %{_libdir}/gimp/%{subver}/modules |
|
156 |
%dir %{_libdir}/gimp/%{subver}/plug-ins |
|
157 |
%{_libdir}/gimp/%{subver}/environ/* |
|
158 |
%{_libdir}/gimp/%{subver}/modules/*.so |
|
159 |
%{_libdir}/gimp/%{subver}/plug-ins/* |
|
160 |
||
161 |
%{_datadir}/gimp/%{subver}/brushes/ |
|
162 |
%{_datadir}/gimp/%{subver}/fractalexplorer/ |
|
163 |
%{_datadir}/gimp/%{subver}/gfig/ |
|
164 |
%{_datadir}/gimp/%{subver}/gflare/ |
|
165 |
%{_datadir}/gimp/%{subver}/gimpressionist/ |
|
166 |
%{_datadir}/gimp/%{subver}/gradients/ |
|
167 |
%{_datadir}/gimp/%{subver}/images/ |
|
168 |
%{_datadir}/gimp/%{subver}/palettes/ |
|
169 |
%{_datadir}/gimp/%{subver}/patterns/ |
|
170 |
%{_datadir}/gimp/%{subver}/scripts/ |
|
171 |
%{_datadir}/gimp/%{subver}/themes/ |
|
172 |
%{_datadir}/gimp/%{subver}/tips/ |
|
1044 | 173 |
%{_datadir}/applications/gimp-%{subver}.desktop |
174 |
%{_datadir}/application-registry/gimp-%{subver}.applications |
|
175 |
%{_datadir}/mime-info/gimp-%{subver}.keys |
|
561 | 176 |
%{_datadir}/locale |
177 |
||
178 |
%{_sysconfdir}/gimp/%{subver}/gimprc |
|
179 |
%{_sysconfdir}/gimp/%{subver}/gtkrc_user |
|
180 |
%{_sysconfdir}/gimp/%{subver}/ps-menurc |
|
181 |
%{_sysconfdir}/gimp/%{subver}/sessionrc |
|
182 |
%{_sysconfdir}/gimp/%{subver}/templaterc |
|
183 |
%{_sysconfdir}/gimp/%{subver}/unitrc |
|
184 |
||
185 |
%defattr (0644, root, root) |
|
186 |
%{_mandir}/man1/gimp-%{subver}.1* |
|
187 |
%{_mandir}/man1/gimp-remote* |
|
188 |
%{_mandir}/man1/gimptool* |
|
189 |
%{_mandir}/man5/gimprc-%{subver}.5* |
|
190 |
||
191 |
%files devel |
|
192 |
||
2364 | 193 |
%defattr (0755, root, root) |
561 | 194 |
%{_bindir}/gimptool-%{subver} |
195 |
%{_libdir}/*.so |
|
196 |
%dir %{_libdir}/gimp/%{subver}/modules |
|
197 |
||
2364 | 198 |
%defattr (0644, root, root) |
1027 | 199 |
%{_datadir}/aclocal/gimp-2.0.m4 |
561 | 200 |
%{_includedir}/gimp-%{subver}/ |
201 |
%{_mandir}/man1/gimptool-%{subver}.1* |
|
202 |
||
1027 | 203 |
%changelog |
3263 | 204 |
* Wed Jul 07 2004 - [email protected] |
205 |
- added "-j $CPUS" to make to speed up builds |
|
206 |
||
2841 | 207 |
* Fri May 21 2004 - [email protected] |
208 |
- Added patch 4 to support building on x86 Solaris. |
|
209 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
210 |
* 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
|
211 |
- 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
|
212 |
|
2575 | 213 |
* Wed Apr 28 2004 - [email protected] |
214 |
- Remove unwanted keys from gimp.keys. |
|
215 |
||
2380 | 216 |
* Sun Apr 03 2004 - [email protected] |
217 |
- Use #ifdef to set --disable-print for Solaris. |
|
218 |
||
2364 | 219 |
* Thu Apr 01 2004 - [email protected] |
220 |
- replace tar jxf with the more solaris friendly |
|
221 |
bzcat piped through tar. Now pass ACLOCAL_FLAGS into |
|
222 |
aclocal. Added EXTRA_CONFIGURE_OPTIONS to allow Solaris |
|
223 |
to pass in --disable-print. Fixed a few defattr lines. |
|
224 |
||
2350 | 225 |
* Mon Mar 29 2004 - [email protected] |
226 |
- Adding gimp-l10n-po-1.0.tar.bz2 l10n content |
|
227 |
||
1516 | 228 |
* Fri Jan 09 2004 - <[email protected]> |
229 |
- Patch configure.in to enable deprecated widgets |
|
230 |
||
1292 | 231 |
* Mon Oct 20 2003 - <[email protected]> |
232 |
- Updated version of glib2 and gtk2 dependency to build for QS. |
|
233 |
||
1058 | 234 |
* Thu Aug 14 2003 - <[email protected]> |
235 |
- remove *.a, *.la |
|
236 |
||
1044 | 237 |
* Tue Aug 11 2003 - [email protected] |
238 |
- Move mime, .desktop and keys files into proper location |
|
239 |
instead of just sym-linking them |
|
240 |
||
1027 | 241 |
* Mon Aug 10 2003 - [email protected] |
242 |
- Bump tarball |
|
561 | 243 |
|
628 | 244 |
* Thu Jul 17 2003 - [email protected] |
245 |
- Correct menu entry |
|
246 |
||
561 | 247 |
* Mon Jul 14 2003 - [email protected] |
248 |
- initial spec file created |