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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 234594 - (hide annotations) (download)
Thu May 3 04:05:02 2012 UTC (11 years, 11 months ago) by fwang
Original Path: cauldron/gimp/current/SPECS/gimp.spec
File size: 8877 byte(s)
fix linkage
1 ahmad 24820 %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 fwang 234585 %define abi_version 2.8
14 ahmad 24820 %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 ovitters 212214 Name: gimp
19 ahmad 24820 Epoch: 1
20 fwang 234585 Version: 2.8.0
21     Release: %mkrel 1
22 ahmad 24820 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 fwang 234594 Patch0: gimp-2.8.0-link.patch
30 ahmad 24820 #gw fix name in desktop file and disable startup notification
31 ahmad 78491 Patch2: gimp-2.5.1-desktopentry.patch
32 fwang 234588 BuildRequires: pkgconfig(atk) >= 2.2.0
33 fwang 234585 BuildRequires: pkgconfig(babl) >= 0.1.10
34     BuildRequires: pkgconfig(cairo) >= 1.10.2
35     BuildRequires: pkgconfig(cairo-pdf) >= 1.10.2
36     BuildRequires: pkgconfig(dbus-glib-1) >= 0.70
37     BuildRequires: pkgconfig(fontconfig) >= 2.2.0
38     BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.24.1
39     BuildRequires: pkgconfig(gegl-0.2) >= 0.2.0
40     BuildRequires: pkgconfig(gio-2.0) >= 2.30.2
41     BuildRequires: pkgconfig(glib-2.0) >= 2.30.2
42     BuildRequires: pkgconfig(gmodule-no-export-2.0)
43     BuildRequires: pkgconfig(gtk+-2.0) >= 2.24.10
44     BuildRequires: pkgconfig(gudev-1.0) >= 167
45     BuildRequires: pkgconfig(iso-codes)
46     BuildRequires: pkgconfig(lcms) >= 1.16
47     BuildRequires: pkgconfig(libcurl) >= 7.15.1
48     BuildRequires: pkgconfig(libexif) >= 0.6.15
49     BuildRequires: pkgconfig(libpng) >= 1.2.37
50     BuildRequires: pkgconfig(librsvg-2.0) >= 2.36.0
51     BuildRequires: pkgconfig(pangocairo) >= 1.29.4
52     BuildRequires: pkgconfig(pangoft2)
53 fwang 234586 BuildRequires: pkgconfig(poppler-glib) >= 0.12.4
54 fwang 234585 BuildRequires: pkgconfig(webkit-1.0) >= 1.6.1
55     BuildRequires: pkgconfig(xcursor)
56     BuildRequires: pkgconfig(xfixes)
57 gil 184114
58 ahmad 24820 BuildRequires: aalib-devel
59 ahmad 24845 BuildRequires: gtk-doc >= 1.11-3
60 ahmad 24820 BuildRequires: libalsa-devel
61 ahmad 124681 BuildRequires: pkgconfig(poppler-glib) >= 0.4.1
62 ahmad 24820 BuildRequires: libmng-devel
63     BuildRequires: libtiff-devel
64 fwang 234593 BuildRequires: jasper-devel
65 ahmad 24820 BuildRequires: perl
66     BuildRequires: libxmu-devel
67 fwang 234593 BuildRequires: libxpm-devel
68     BuildRequires: zlib-devel
69     BuildRequires: bzip2-devel
70     BuildRequires: ghostscript-devel
71 ahmad 24820 BuildRequires: intltool
72     # mail plugin
73     BuildRequires: sendmail-command
74     # python plugin
75     %if %enable_python
76 fwang 234585 BuildRequires: pkgconfig(pygtk-2.0) >= 2.10.4
77 ahmad 24820 %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 ahmad 94526 Suggests: gimp-help-2
89     Obsoletes: gimp-help-2-common < 2.6
90 ahmad 24820
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: Graphics
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 fwang 234594 %patch0 -p0 -b .link
159 ahmad 78491 %patch2 -p1 -b .desktopentry
160 ahmad 24820
161     %build
162 fwang 144995 %configure2_5x --enable-default-binary=yes --disable-static \
163 ahmad 24820 --enable-mp=yes \
164     %if %enable_python
165     --enable-python=yes \
166     %else
167     --enable-python=no \
168     %endif
169     %if %enable_lzw
170     --with-gif-compression=lzw \
171     %else
172     --with-gif-compression=rle \
173     %endif
174     --enable-gtk-doc=yes
175    
176     %make
177    
178     %install
179     %makeinstall_std
180    
181     #clean unpackaged files
182 fwang 144995 find %buildroot -name '*.la'|xargs rm
183 ahmad 24820
184     # workaround broken help system
185 ahmad 24845 HELP_DIR=%{buildroot}%_datadir/gimp/%api_version/help/C
186 ahmad 24820 [[ -d $HELP_DIR ]] || mkdir -p $HELP_DIR
187     HELP_IDX=$HELP_DIR/introduction.html
188     echo -e '<HTML><HEAD><TITLE>GIMP Base Library</HEAD>\n<BODY><UL>' > $HELP_IDX
189    
190 ahmad 24845 /bin/ls %{buildroot}%_datadir/gtk-doc/html/*/index.html | sed -e "s@%{buildroot}@@g" >> $HELP_IDX
191 ahmad 24820 perl -pi -e 's!(.*/html/)([^/]*)(/index.html)!<LI><A HREF="\1\2\3">\2</A>!g' $HELP_IDX
192    
193     echo '</UL></BODY></HTML>' >> $HELP_IDX
194    
195     %find_lang gimp20 --all-name
196    
197     %if %enable_python
198     chmod 755 %buildroot%_libdir/gimp/%{api_version}/plug-ins/*.py
199     mkdir -p %{buildroot}%{_libdir}/python%{pyver}/site-packages
200     echo %_libdir/gimp/%{api_version}/python > %{buildroot}%{_libdir}/python%{pyver}/site-packages/gimp.pth
201     echo %_libdir/gimp/%{api_version}/plug-ins >> %{buildroot}%{_libdir}/python%{pyver}/site-packages/gimp.pth
202     %endif
203    
204     desktop-file-install --vendor="" \
205     --add-category="X-MandrivaLinux-CrossDesktop" \
206 ahmad 24845 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
207 ahmad 24820
208     %files -f gimp20.lang
209     %defattr(-,root,root,0755)
210     %{_bindir}/gimp
211     %{_bindir}/gimp-%abi_version
212     %{_bindir}/gimp-console
213     %{_bindir}/gimp-console-%abi_version
214     %{_datadir}/applications/*
215     %{_datadir}/gimp
216 dmorgan 200194 %dir %{_libdir}/gimp
217 ahmad 24820 %dir %{_libdir}/gimp/%{api_version}
218     %dir %{_libdir}/gimp/%{api_version}/environ
219     %{_libdir}/gimp/%{api_version}/interpreters
220     %{_libdir}/gimp/%{api_version}/environ/default.env
221     %{_libdir}/gimp/%{api_version}/modules
222     %{_libdir}/gimp/%{api_version}/plug-ins
223     %exclude %{_libdir}/gimp/%{api_version}/plug-ins/*.py
224     %{_mandir}/man1/gimp*
225     %{_mandir}/man5/gimp*
226     %_datadir/icons/hicolor/*/apps/gimp.png
227 gil 147878 #%_datadir/icons/hicolor/scalable/apps/gimp.svg
228 ahmad 24820 %config(noreplace) %{_sysconfdir}/gimp
229    
230     %doc AUTHORS NEWS README README.i18n docs/Wilber*
231    
232     %files -n %{devlibname}
233     %defattr(-,root,root,0755)
234     %doc ChangeLog
235     %doc %{_datadir}/gtk-doc/html/*
236     %{_bindir}/gimptool-*
237     %{_datadir}/aclocal/*.m4
238     %{_includedir}/*
239     %{_libdir}/lib*.so
240     %{_libdir}/pkgconfig/*
241     %{_mandir}/man1/gimptool-*
242    
243     %files -n %libname
244     %defattr(-,root,root,755)
245     # explicitly list all libs to avoid old libtool issue
246     %{_libdir}/libgimpconfig-%{api_version}.so.%{lib_major}*
247     %{_libdir}/libgimp-%{api_version}.so.%{lib_major}*
248     %{_libdir}/libgimpthumb-%{api_version}.so.%{lib_major}*
249     %{_libdir}/libgimpbase-%{api_version}.so.%{lib_major}*
250     %{_libdir}/libgimpcolor-%{api_version}.so.%{lib_major}*
251     %{_libdir}/libgimpmath-%{api_version}.so.%{lib_major}*
252     %{_libdir}/libgimpmodule-%{api_version}.so.%{lib_major}*
253     %{_libdir}/libgimpui-%{api_version}.so.%{lib_major}*
254     %{_libdir}/libgimpwidgets-%{api_version}.so.%{lib_major}*
255    
256     %if %enable_python
257     %files python
258     %defattr(-,root,root,755)
259     %{_libdir}/gimp/%{api_version}/environ/pygimp.env
260     %{_libdir}/gimp/%{api_version}/python
261     %{_libdir}/gimp/%{api_version}/plug-ins/*.py
262     %{_libdir}/python%{pyver}/site-packages/*.pth
263     %endif

  ViewVC Help
Powered by ViewVC 1.1.30