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}
|
2619
|
8 |
Release: 23
|
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
|
2350
|
13 |
Source1: gimp-l10n-po-1.0.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
|
561
|
17 |
URL: http://www.gimp.org
|
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
Docdir: %{_defaultdocdir}/doc
|
|
20 |
Autoreqprov: on
|
|
21 |
|
1292
|
22 |
%define glib2_version 2.2.3
|
|
23 |
%define gtk2_version 2.2.4
|
561
|
24 |
%define libmng_version 1.0.4
|
|
25 |
%define libgimpprint_version 4.3.3
|
|
26 |
%define libpng_version 1.2.4
|
|
27 |
%define libjpeg_version 6.2.0
|
|
28 |
%define libungif_version 4.1.0
|
|
29 |
%define slang_version 1.4.5
|
|
30 |
|
|
31 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
32 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
33 |
BuildRequires: libgimpprint-devel >= %{libgimpprint_version}
|
|
34 |
BuildRequires: libmng-devel >= %{libmng_version}
|
|
35 |
BuildRequires: libpng-devel >= %{libpng_version}
|
|
36 |
BuildRequires: libjpeg-devel >= %{libjpeg_version}
|
|
37 |
BuildRequires: libungif >= %{libungif_version}
|
|
38 |
BuildRequires: slang-devel >= %{slang_version}
|
|
39 |
|
|
40 |
Requires: glib2 >= %{glib2_version}
|
|
41 |
Requires: gtk2 >= %{gtk2_version}
|
|
42 |
|
|
43 |
%description
|
|
44 |
The GIMP (GNU Image Manipulation Program) is a powerful image
|
|
45 |
composition and editing program, which can be extremely useful for
|
|
46 |
creating logos and other graphics for webpages. The GIMP has many of
|
|
47 |
the tools and filters you would expect to find in similar commercial
|
|
48 |
offerings, and some interesting extras as well. The GIMP provides a
|
|
49 |
large image manipulation toolbox, including channel operations and
|
|
50 |
layers, effects, sub-pixel imaging and anti-aliasing, and conversions,
|
|
51 |
all with multi-level undo.
|
|
52 |
|
|
53 |
The GIMP includes a scripting facility, but many of the included
|
|
54 |
scripts rely on fonts that we cannot distribute. The GIMP FTP site
|
|
55 |
has a package of fonts that you can install by yourself, which
|
|
56 |
includes all the fonts needed to run the included scripts. Some of
|
|
57 |
the fonts have unusual licensing requirements; all the licenses are
|
|
58 |
documented in the package. Get
|
|
59 |
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and
|
|
60 |
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you are so
|
|
61 |
inclined. Alternatively, choose fonts which exist on your system
|
|
62 |
before running the scripts.
|
|
63 |
|
|
64 |
%package devel
|
|
65 |
Summary: The GIMP plug-in and extension development kit.
|
|
66 |
Group: Applications/Multimedia
|
|
67 |
Requires: gtk2-devel >= %{gtk2_version}
|
1027
|
68 |
Requires: %{name} = %{version}
|
|
69 |
Autoreqprov: on
|
|
70 |
|
561
|
71 |
%description devel
|
|
72 |
The gimp-devel package contains the static libraries and header files
|
|
73 |
for writing GNU Image Manipulation Program (GIMP) plug-ins and
|
|
74 |
extensions.
|
|
75 |
|
|
76 |
|
|
77 |
%prep
|
1479
|
78 |
%setup -q
|
2364
|
79 |
/usr/bin/bzcat -dc %SOURCE1|tar xf -
|
628
|
80 |
%patch1 -p1
|
1516
|
81 |
%patch2 -p1
|
2575
|
82 |
%patch3 -p1
|
561
|
83 |
|
|
84 |
%build
|
|
85 |
CFLAGS="$RPM_OPT_FLAGS" \
|
628
|
86 |
libtoolize --force
|
2364
|
87 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros
|
628
|
88 |
automake -a -c -f
|
|
89 |
autoconf
|
2380
|
90 |
# Removing sierra driver on Solaris since it doesn't compile yet.
|
|
91 |
%ifos solaris
|
|
92 |
%define print_options "--disable-print"
|
|
93 |
%else
|
|
94 |
%define print_options ""
|
|
95 |
%endif
|
|
96 |
./configure --prefix=%{_prefix} \
|
561
|
97 |
--sysconfdir=%{_sysconfdir} \
|
|
98 |
--libexecdir=%{_libexecdir} \
|
|
99 |
--localstatedir=/var/lib \
|
|
100 |
--mandir=%{_mandir} \
|
|
101 |
--enable-mp \
|
|
102 |
--enable-gtk-doc \
|
2364
|
103 |
--enable-default-binary \
|
2380
|
104 |
--disable-gtk-doc %{print_options}
|
561
|
105 |
make
|
|
106 |
|
|
107 |
%install
|
|
108 |
make DESTDIR=$RPM_BUILD_ROOT install
|
1044
|
109 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/applications
|
|
110 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/application-registry
|
|
111 |
./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/mime-info
|
|
112 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.desktop ${RPM_BUILD_ROOT}%{_datadir}/applications/gimp-%{subver}.desktop
|
|
113 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.applications ${RPM_BUILD_ROOT}%{_datadir}/application-registry/gimp-%{subver}.applications
|
|
114 |
mv ${RPM_BUILD_ROOT}%{_datadir}/gimp/%{subver}/misc/gimp.keys ${RPM_BUILD_ROOT}%{_datadir}/mime-info/gimp-%{subver}.keys
|
561
|
115 |
|
|
116 |
%clean
|
|
117 |
rm -rf $RPM_BUILD_ROOT
|
|
118 |
|
|
119 |
%post
|
|
120 |
/sbin/ldconfig
|
|
121 |
|
|
122 |
%postun
|
|
123 |
rm -f %{_datadir}/mime-info/gimp-%{subver}.keys
|
|
124 |
/sbin/ldconfig
|
|
125 |
|
|
126 |
%files
|
|
127 |
%defattr (-, root, root)
|
|
128 |
|
|
129 |
%doc %{_datadir}/gtk-doc/html/
|
|
130 |
|
|
131 |
%{_bindir}/gimp-%{subver}
|
|
132 |
%{_bindir}/gimp-remote*
|
|
133 |
|
|
134 |
%{_libdir}/lib*-%{subver}.so.%{microver}
|
|
135 |
%{_libdir}/lib*-%{subver}.so.%{microver}.0.0
|
|
136 |
%{_libdir}/pkgconfig/gimp-%{subver}.pc
|
|
137 |
%{_libdir}/pkgconfig/gimpui-%{subver}.pc
|
|
138 |
|
|
139 |
%dir %{_datadir}/gimp/%{subver}
|
|
140 |
%dir %{_libdir}/gimp/%{subver}
|
|
141 |
%dir %{_libdir}/gimp/%{subver}/environ
|
|
142 |
%dir %{_libdir}/gimp/%{subver}/modules
|
|
143 |
%dir %{_libdir}/gimp/%{subver}/plug-ins
|
|
144 |
%{_libdir}/gimp/%{subver}/environ/*
|
|
145 |
%{_libdir}/gimp/%{subver}/modules/*.so
|
|
146 |
%{_libdir}/gimp/%{subver}/plug-ins/*
|
|
147 |
|
|
148 |
%{_datadir}/gimp/%{subver}/brushes/
|
|
149 |
%{_datadir}/gimp/%{subver}/fractalexplorer/
|
|
150 |
%{_datadir}/gimp/%{subver}/gfig/
|
|
151 |
%{_datadir}/gimp/%{subver}/gflare/
|
|
152 |
%{_datadir}/gimp/%{subver}/gimpressionist/
|
|
153 |
%{_datadir}/gimp/%{subver}/gradients/
|
|
154 |
%{_datadir}/gimp/%{subver}/images/
|
|
155 |
%{_datadir}/gimp/%{subver}/palettes/
|
|
156 |
%{_datadir}/gimp/%{subver}/patterns/
|
|
157 |
%{_datadir}/gimp/%{subver}/scripts/
|
|
158 |
%{_datadir}/gimp/%{subver}/themes/
|
|
159 |
%{_datadir}/gimp/%{subver}/tips/
|
1044
|
160 |
%{_datadir}/applications/gimp-%{subver}.desktop
|
|
161 |
%{_datadir}/application-registry/gimp-%{subver}.applications
|
|
162 |
%{_datadir}/mime-info/gimp-%{subver}.keys
|
561
|
163 |
%{_datadir}/locale
|
|
164 |
|
|
165 |
%{_sysconfdir}/gimp/%{subver}/gimprc
|
|
166 |
%{_sysconfdir}/gimp/%{subver}/gtkrc_user
|
|
167 |
%{_sysconfdir}/gimp/%{subver}/ps-menurc
|
|
168 |
%{_sysconfdir}/gimp/%{subver}/sessionrc
|
|
169 |
%{_sysconfdir}/gimp/%{subver}/templaterc
|
|
170 |
%{_sysconfdir}/gimp/%{subver}/unitrc
|
|
171 |
|
|
172 |
%defattr (0644, root, root)
|
|
173 |
%{_mandir}/man1/gimp-%{subver}.1*
|
|
174 |
%{_mandir}/man1/gimp-remote*
|
|
175 |
%{_mandir}/man1/gimptool*
|
|
176 |
%{_mandir}/man5/gimprc-%{subver}.5*
|
|
177 |
|
|
178 |
%files devel
|
|
179 |
|
2364
|
180 |
%defattr (0755, root, root)
|
561
|
181 |
%{_bindir}/gimptool-%{subver}
|
|
182 |
%{_libdir}/*.so
|
|
183 |
%dir %{_libdir}/gimp/%{subver}/modules
|
|
184 |
|
2364
|
185 |
%defattr (0644, root, root)
|
1027
|
186 |
%{_datadir}/aclocal/gimp-2.0.m4
|
561
|
187 |
%{_includedir}/gimp-%{subver}/
|
|
188 |
%{_mandir}/man1/gimptool-%{subver}.1*
|
|
189 |
|
1027
|
190 |
%changelog
|
2575
|
191 |
* Wed Apr 28 2004 - [email protected]
|
|
192 |
- Remove unwanted keys from gimp.keys.
|
|
193 |
|
2380
|
194 |
* Sun Apr 03 2004 - [email protected]
|
|
195 |
- Use #ifdef to set --disable-print for Solaris.
|
|
196 |
|
2364
|
197 |
* Thu Apr 01 2004 - [email protected]
|
|
198 |
- replace tar jxf with the more solaris friendly
|
|
199 |
bzcat piped through tar. Now pass ACLOCAL_FLAGS into
|
|
200 |
aclocal. Added EXTRA_CONFIGURE_OPTIONS to allow Solaris
|
|
201 |
to pass in --disable-print. Fixed a few defattr lines.
|
|
202 |
|
2350
|
203 |
* Mon Mar 29 2004 - [email protected]
|
|
204 |
- Adding gimp-l10n-po-1.0.tar.bz2 l10n content
|
|
205 |
|
1516
|
206 |
* Fri Jan 09 2004 - <[email protected]>
|
|
207 |
- Patch configure.in to enable deprecated widgets
|
|
208 |
|
1292
|
209 |
* Mon Oct 20 2003 - <[email protected]>
|
|
210 |
- Updated version of glib2 and gtk2 dependency to build for QS.
|
|
211 |
|
1058
|
212 |
* Thu Aug 14 2003 - <[email protected]>
|
|
213 |
- remove *.a, *.la
|
|
214 |
|
1044
|
215 |
* Tue Aug 11 2003 - [email protected]
|
|
216 |
- Move mime, .desktop and keys files into proper location
|
|
217 |
instead of just sym-linking them
|
|
218 |
|
1027
|
219 |
* Mon Aug 10 2003 - [email protected]
|
|
220 |
- Bump tarball
|
561
|
221 |
|
628
|
222 |
* Thu Jul 17 2003 - [email protected]
|
|
223 |
- Correct menu entry
|
|
224 |
|
561
|
225 |
* Mon Jul 14 2003 - [email protected]
|
|
226 |
- initial spec file created
|