/[packages]/updates/5/gimp/current/SPECS/gimp.spec
ViewVC logotype

Contents of /updates/5/gimp/current/SPECS/gimp.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 234593 - (show annotations) (download)
Thu May 3 04:02:06 2012 UTC (11 years, 11 months ago) by fwang
Original Path: cauldron/gimp/current/SPECS/gimp.spec
File size: 8825 byte(s)
more br
1 %define lib_major 0
2
3 # optional compile flags
4 %define enable_python 1
5 %{?_without_python: %global enable_python 0}
6
7 %define enable_lzw 0
8 %{?_with_lzw: %global enable_lzw 1}
9
10 %define req_gtk_version 2.12.1
11
12 %define api_version 2.0
13 %define abi_version 2.8
14 %define libname %mklibname %{name} %{api_version}_%{lib_major}
15 %define devlibname %mklibname -d %{name}%{api_version}
16
17 Summary: The GNU Image Manipulation Program
18 Name: gimp
19 Epoch: 1
20 Version: 2.8.0
21 Release: %mkrel 1
22 License: GPLv2+
23 Group: Graphics
24 URL: http://www.gimp.org/
25
26 Source0: ftp://ftp.gimp.org/pub/gimp/v%{abi_version}/gimp-%version.tar.bz2
27 Source1: ftp://ftp.gimp.org/pub/gimp/v%{abi_version}/gimp-%version.tar.bz2.md5
28 Source13: gimp-scripting-sample.pl
29 #gw fix name in desktop file and disable startup notification
30 Patch2: gimp-2.5.1-desktopentry.patch
31 BuildRequires: pkgconfig(atk) >= 2.2.0
32 BuildRequires: pkgconfig(babl) >= 0.1.10
33 BuildRequires: pkgconfig(cairo) >= 1.10.2
34 BuildRequires: pkgconfig(cairo-pdf) >= 1.10.2
35 BuildRequires: pkgconfig(dbus-glib-1) >= 0.70
36 BuildRequires: pkgconfig(fontconfig) >= 2.2.0
37 BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.24.1
38 BuildRequires: pkgconfig(gegl-0.2) >= 0.2.0
39 BuildRequires: pkgconfig(gio-2.0) >= 2.30.2
40 BuildRequires: pkgconfig(glib-2.0) >= 2.30.2
41 BuildRequires: pkgconfig(gmodule-no-export-2.0)
42 BuildRequires: pkgconfig(gtk+-2.0) >= 2.24.10
43 BuildRequires: pkgconfig(gudev-1.0) >= 167
44 BuildRequires: pkgconfig(iso-codes)
45 BuildRequires: pkgconfig(lcms) >= 1.16
46 BuildRequires: pkgconfig(libcurl) >= 7.15.1
47 BuildRequires: pkgconfig(libexif) >= 0.6.15
48 BuildRequires: pkgconfig(libpng) >= 1.2.37
49 BuildRequires: pkgconfig(librsvg-2.0) >= 2.36.0
50 BuildRequires: pkgconfig(pangocairo) >= 1.29.4
51 BuildRequires: pkgconfig(pangoft2)
52 BuildRequires: pkgconfig(poppler-glib) >= 0.12.4
53 BuildRequires: pkgconfig(webkit-1.0) >= 1.6.1
54 BuildRequires: pkgconfig(xcursor)
55 BuildRequires: pkgconfig(xfixes)
56
57 BuildRequires: aalib-devel
58 BuildRequires: gtk-doc >= 1.11-3
59 BuildRequires: libalsa-devel
60 BuildRequires: pkgconfig(poppler-glib) >= 0.4.1
61 BuildRequires: libmng-devel
62 BuildRequires: libtiff-devel
63 BuildRequires: jasper-devel
64 BuildRequires: perl
65 BuildRequires: libxmu-devel
66 BuildRequires: libxpm-devel
67 BuildRequires: zlib-devel
68 BuildRequires: bzip2-devel
69 BuildRequires: ghostscript-devel
70 BuildRequires: intltool
71 # mail plugin
72 BuildRequires: sendmail-command
73 # python plugin
74 %if %enable_python
75 BuildRequires: pkgconfig(pygtk-2.0) >= 2.10.4
76 %endif
77 BuildRequires: automake
78 BuildRequires: libwmf-devel >= 0.2.8
79 BuildRequires: libxext-devel
80 BuildRequires: desktop-file-utils
81 Provides: gimp1_3 gimp2_0 gimp2_2 gimp2.6
82 Obsoletes: gimp1_3 gimp2_0 gimp2_2 gimp2.6
83 # workaround libgimp not bumping its major on API/ABI changes:
84 Requires: %{libname} = %epoch:%{version}
85 Conflicts: perl-Gimp < 2.2
86 Conflicts: gutenprint-gimp2 < 5.0.1
87 Suggests: gimp-help-2
88 Obsoletes: gimp-help-2-common < 2.6
89
90 %description
91 The GIMP is an image manipulation program suitable for photo retouching,
92 image composition and image authoring. Many people find it extremely useful
93 in creating logos and other graphics for web pages. The GIMP has many of the
94 tools and filters you would expect to find in similar commercial offerings,
95 and some interesting extras as well.
96
97 The GIMP provides a large image manipulation toolbox, including channel
98 operations and layers, effects, sub-pixel imaging and anti-aliasing,
99 and conversions, all with multi-level undo.
100
101 This version of The GIMP includes a scripting facility, but many of the
102 included scripts rely on fonts that we cannot distribute. The GIMP ftp
103 site has a package of fonts that you can install by yourself, which
104 includes all the fonts needed to run the included scripts. Some of the
105 fonts have unusual licensing requirements; all the licenses are documented
106 in the package. Get them in ftp://ftp.gimp.org/pub/gimp/fonts/ if you are so
107 inclined. Alternatively, choose fonts which exist on your system before
108 running the scripts.
109
110 Build Options:
111 --without python Disable pygimp (default enabled)
112 --with lzw Enable LZW compression in GIF (default disabled)
113
114 %package -n %{devlibname}
115 Summary: GIMP plugin and extension development kit
116 Group: Development/GNOME and GTK+
117 Requires: libgtk+2.0-devel >= %{req_gtk_version}
118 Epoch: 1
119 License: LGPLv2+
120 Requires: %{libname} = %epoch:%{version}
121 Provides: gimp-devel = %{version}-%{release}
122 Provides: gimp2.6-devel = %{version}-%{release}
123 Provides: libgimp-devel = %{version}-%{release}
124
125 %description -n %{devlibname}
126 Static libraries and header files for writing GIMP plugins and extensions.
127
128 %package -n %libname
129 Summary: GIMP libraries
130 Group: System/Libraries
131 Epoch: 1
132 License: LGPLv2+
133 Provides: libgimp%{api_version} = %{version}-%{release}
134 Obsoletes: %mklibname gimp 2.6_2.0_0
135
136 %description -n %libname
137 This is the library that provides core GIMP functionality.
138 It enable other programs to use GIMP's features but is mainly intended
139 to be used by the GIMP and its "external" plugins.
140
141 %package python
142 Summary: GIMP python extension
143 Group: Graphics
144 Epoch: 1
145 Requires: pygtk2.0
146 Obsoletes: gimp1_3-python, gimp2_0-python, gimp2_2-python
147
148 %description python
149 This package contains the python modules for GIMP, which act as a
150 wrapper to libgimp allowing the writing of plug-ins for Gimp.
151 This is similar to script-fu, except that you can use the full set
152 of Python extension modules from the plug-in, and you write plug-in
153 in python instead of in scheme.
154
155 %prep
156 %setup -q -n gimp-%version
157 %patch2 -p1 -b .desktopentry
158
159 %build
160 %configure2_5x --enable-default-binary=yes --disable-static \
161 --enable-mp=yes \
162 %if %enable_python
163 --enable-python=yes \
164 %else
165 --enable-python=no \
166 %endif
167 %if %enable_lzw
168 --with-gif-compression=lzw \
169 %else
170 --with-gif-compression=rle \
171 %endif
172 --enable-gtk-doc=yes
173
174 %make
175
176 %install
177 %makeinstall_std
178
179 #clean unpackaged files
180 find %buildroot -name '*.la'|xargs rm
181
182 # workaround broken help system
183 HELP_DIR=%{buildroot}%_datadir/gimp/%api_version/help/C
184 [[ -d $HELP_DIR ]] || mkdir -p $HELP_DIR
185 HELP_IDX=$HELP_DIR/introduction.html
186 echo -e '<HTML><HEAD><TITLE>GIMP Base Library</HEAD>\n<BODY><UL>' > $HELP_IDX
187
188 /bin/ls %{buildroot}%_datadir/gtk-doc/html/*/index.html | sed -e "s@%{buildroot}@@g" >> $HELP_IDX
189 perl -pi -e 's!(.*/html/)([^/]*)(/index.html)!<LI><A HREF="\1\2\3">\2</A>!g' $HELP_IDX
190
191 echo '</UL></BODY></HTML>' >> $HELP_IDX
192
193 %find_lang gimp20 --all-name
194
195 %if %enable_python
196 chmod 755 %buildroot%_libdir/gimp/%{api_version}/plug-ins/*.py
197 mkdir -p %{buildroot}%{_libdir}/python%{pyver}/site-packages
198 echo %_libdir/gimp/%{api_version}/python > %{buildroot}%{_libdir}/python%{pyver}/site-packages/gimp.pth
199 echo %_libdir/gimp/%{api_version}/plug-ins >> %{buildroot}%{_libdir}/python%{pyver}/site-packages/gimp.pth
200 %endif
201
202 desktop-file-install --vendor="" \
203 --add-category="X-MandrivaLinux-CrossDesktop" \
204 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
205
206 %files -f gimp20.lang
207 %defattr(-,root,root,0755)
208 %{_bindir}/gimp
209 %{_bindir}/gimp-%abi_version
210 %{_bindir}/gimp-console
211 %{_bindir}/gimp-console-%abi_version
212 %{_datadir}/applications/*
213 %{_datadir}/gimp
214 %dir %{_libdir}/gimp
215 %dir %{_libdir}/gimp/%{api_version}
216 %dir %{_libdir}/gimp/%{api_version}/environ
217 %{_libdir}/gimp/%{api_version}/interpreters
218 %{_libdir}/gimp/%{api_version}/environ/default.env
219 %{_libdir}/gimp/%{api_version}/modules
220 %{_libdir}/gimp/%{api_version}/plug-ins
221 %exclude %{_libdir}/gimp/%{api_version}/plug-ins/*.py
222 %{_mandir}/man1/gimp*
223 %{_mandir}/man5/gimp*
224 %_datadir/icons/hicolor/*/apps/gimp.png
225 #%_datadir/icons/hicolor/scalable/apps/gimp.svg
226 %config(noreplace) %{_sysconfdir}/gimp
227
228 %doc AUTHORS NEWS README README.i18n docs/Wilber*
229
230 %files -n %{devlibname}
231 %defattr(-,root,root,0755)
232 %doc ChangeLog
233 %doc %{_datadir}/gtk-doc/html/*
234 %{_bindir}/gimptool-*
235 %{_datadir}/aclocal/*.m4
236 %{_includedir}/*
237 %{_libdir}/lib*.so
238 %{_libdir}/pkgconfig/*
239 %{_mandir}/man1/gimptool-*
240
241 %files -n %libname
242 %defattr(-,root,root,755)
243 # explicitly list all libs to avoid old libtool issue
244 %{_libdir}/libgimpconfig-%{api_version}.so.%{lib_major}*
245 %{_libdir}/libgimp-%{api_version}.so.%{lib_major}*
246 %{_libdir}/libgimpthumb-%{api_version}.so.%{lib_major}*
247 %{_libdir}/libgimpbase-%{api_version}.so.%{lib_major}*
248 %{_libdir}/libgimpcolor-%{api_version}.so.%{lib_major}*
249 %{_libdir}/libgimpmath-%{api_version}.so.%{lib_major}*
250 %{_libdir}/libgimpmodule-%{api_version}.so.%{lib_major}*
251 %{_libdir}/libgimpui-%{api_version}.so.%{lib_major}*
252 %{_libdir}/libgimpwidgets-%{api_version}.so.%{lib_major}*
253
254 %if %enable_python
255 %files python
256 %defattr(-,root,root,755)
257 %{_libdir}/gimp/%{api_version}/environ/pygimp.env
258 %{_libdir}/gimp/%{api_version}/python
259 %{_libdir}/gimp/%{api_version}/plug-ins/*.py
260 %{_libdir}/python%{pyver}/site-packages/*.pth
261 %endif

  ViewVC Help
Powered by ViewVC 1.1.30