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

  ViewVC Help
Powered by ViewVC 1.1.30