/[pkgs]/devel/GraphicsMagick/GraphicsMagick.spec
ViewVC logotype

Contents of /devel/GraphicsMagick/GraphicsMagick.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.30 - (show annotations) (download)
Fri Sep 18 01:25:00 2009 UTC (2 months, 1 week ago) by rdieter
Branch: MAIN
CVS Tags: F-12-split, GraphicsMagick-1_3_7-1_fc12
Changes since 1.29: +21 -8 lines
* Thu Sep 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-1
- GraphicsMagick-1.3.7
1
2 Summary: An ImageMagick fork, offering faster image generation and better quality
3 Name: GraphicsMagick
4 Version: 1.3.7
5 Release: 1%{?dist}
6 License: MIT
7 Group: Applications/Multimedia
8 Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.lzma
9 Url: http://www.graphicsmagick.org/
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12 BuildRequires: automake >= 1.7 autoconf >= 2.58 libtool >= 1.5
13 BuildRequires: bzip2-devel
14 BuildRequires: freetype-devel
15 BuildRequires: jasper-devel
16 BuildRequires: lcms-devel
17 BuildRequires: libjpeg-devel
18 BuildRequires: libpng-devel
19 BuildRequires: librsvg2-devel
20 BuildRequires: libtiff-devel
21 BuildRequires: libungif-devel
22 BuildRequires: libwmf-devel
23 BuildRequires: libxml2-devel
24 BuildRequires: libX11-devel libXext-devel libXt-devel
25 BuildRequires: perl
26 %if 0%{?fedora} > 8 || 0%{?rhel} > 5
27 BuildRequires: perl-devel
28 %endif
29 BuildRequires: zlib-devel
30
31 %description
32 GraphicsMagick is a comprehensive image processing package which is initially
33 based on ImageMagick 5.5.2, but which has undergone significant re-work by
34 the GraphicsMagick Group to significantly improve the quality and performance
35 of the software.
36
37 %package devel
38 Summary: Libraries and header files for GraphicsMagick app development
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: ghostscript-devel, bzip2-devel, libtiff-devel, libjpeg-devel
42 Requires: lcms-devel, pkgconfig, libX11-devel, libXext-devel, libXt-devel
43
44 %description devel
45 GraphicsMagick-devel contains the Libraries and header files you'll
46 need to develop GraphicsMagick applications. GraphicsMagick is an image
47 manipulation program.
48
49 If you want to create applications that will use GraphicsMagick code or
50 APIs, you need to install GraphicsMagick-devel as well as GraphicsMagick.
51 You do not need to install it if you just want to use GraphicsMagick,
52 however.
53
54 %package perl
55 Summary: GraphicsMagick perl bindings
56 Group: System Environment/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
59
60 %description perl
61 Perl bindings to GraphicsMagick.
62
63 Install GraphicsMagick-perl if you want to use any perl scripts that use
64 GraphicsMagick.
65
66 %package c++
67 Summary: GraphicsMagick Magick++ library (C++ bindings)
68 Group: System Environment/Libraries
69 Requires: %{name} = %{version}-%{release}
70
71 %description c++
72 This package contains the GraphicsMagick++ library, a C++ binding to the
73 GraphicsMagick graphics manipulation library.
74
75 Install GraphicsMagick-c++ if you want to use any applications that use
76 GraphicsMagick++.
77
78 %package c++-devel
79 Summary: C++ bindings for the GraphicsMagick library
80 Group: Development/Libraries
81 Requires: %{name}-c++ = %{version}-%{release}
82 Requires: %{name}-devel = %{version}-%{release}
83
84 %description c++-devel
85 GraphicsMagick-devel contains the Libraries and header files you'll
86 need to develop GraphicsMagick applications using the Magick++ C++ bindings.
87 GraphicsMagick is an image manipulation program.
88
89 If you want to create applications that will use Magick++ code
90 or APIs, you'll need to install GraphicsMagick-c++-devel, ImageMagick-devel and
91 GraphicsMagick.
92 You don't need to install it if you just want to use GraphicsMagick, or if you
93 want to develop/compile applications using the GraphicsMagick C interface,
94 however.
95
96 %prep
97 %setup -q
98
99 iconv -f iso-8859-2 -t utf8 < ChangeLog > ChangeLog.utf8
100 mv -f ChangeLog.utf8 ChangeLog
101
102 # Avoid lib64 rpaths (FIXME: recheck this on newer releases)
103 %if "%{_libdir}" != "/usr/lib"
104 sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
105 %endif
106
107
108 %build
109 %configure --enable-shared \
110 --with-modules \
111 --with-perl \
112 --with-x \
113 --with-threads \
114 --with-magick_plus_plus \
115 --without-gslib \
116 --with-wmf \
117 --with-lcms \
118 --with-xml \
119 --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
120 --with-windows-font-dir=%{_datadir}/fonts/default/TrueType \
121 --without-dps
122
123 # Avoid bogus RPATHs on x86_64
124 sed -i.rpath -e 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
125
126 make %{?_smp_mflags}
127 make %{?_smp_mflags} perl-build
128
129
130 %install
131 rm -rf %{buildroot}
132
133 make install DESTDIR=%{buildroot}
134 make install DESTDIR=%{buildroot} -C PerlMagick
135
136 # perlmagick: fix perl path of demo files
137 %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl
138
139 find %{buildroot} -name "*.bs" |xargs rm -f
140 find %{buildroot} -name ".packlist" |xargs rm -f
141 find %{buildroot} -name "perllocal.pod" |xargs rm -f
142
143 chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so
144
145 # perlmagick: build files list
146 echo "%defattr(-,root,root)" > perl-pkg-files
147 find %{buildroot}/%{_libdir}/perl* -type f -print \
148 | sed "s@^%{buildroot}@@g" > perl-pkg-files
149 find %{buildroot}%{perl_vendorarch} -type d -print \
150 | sed "s@^%{buildroot}@%dir @g" \
151 | grep -v '^%dir %{perl_vendorarch}$' \
152 | grep -v '/auto$' >> perl-pkg-files
153 if [ -z perl-pkg-files ] ; then
154 echo "ERROR: EMPTY FILE LIST"
155 exit -1
156 fi
157
158 rm -rf %{buildroot}%{_datadir}/GraphicsMagick
159 # Keep config
160 rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]*
161 rm -rf %{buildroot}%{_libdir}/libltdl.*
162 rm -f %{buildroot}%{_libdir}/GraphicsMagick-*/modules*/*/*.a
163 rm -f %{buildroot}%{_libdir}/*.{a,la}
164
165 # fix multilib issues
166 %ifarch x86_64 s390x ia64 ppc64 sparc64
167 %define wordsize 64
168 %else
169 %define wordsize 32
170 %endif
171
172 mv %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config.h \
173 %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config-%{wordsize}.h
174
175 cat >%{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config.h <<EOF
176 #ifndef ORBIT_MULTILIB
177 #define ORBIT_MULTILIB
178
179 #include <bits/wordsize.h>
180
181 #if __WORDSIZE == 32
182 # include "magick_config-32.h"
183 #elif __WORDSIZE == 64
184 # include "magick_config-64.h"
185 #else
186 # error "unexpected value for __WORDSIZE macro"
187 #endif
188
189 #endif
190 EOF
191
192
193 %clean
194 rm -rf %{buildroot}
195
196 %post -p /sbin/ldconfig
197
198 %post c++ -p /sbin/ldconfig
199
200 %postun -p /sbin/ldconfig
201
202 %postun c++ -p /sbin/ldconfig
203
204 %files
205 %defattr(-,root,root,-)
206 %doc Copyright.txt
207 %doc README.txt
208 %doc %{_datadir}/doc/%{name}/
209 %{_libdir}/libGraphicsMagick.so.3*
210 %{_libdir}/libGraphicsMagickWand.so.2*
211 %{_bindir}/[a-z]*
212 %{_libdir}/GraphicsMagick*
213 %{_datadir}/GraphicsMagick*
214 %{_mandir}/man[145]/[a-z]*
215
216 %files devel
217 %defattr(-,root,root,-)
218 %{_bindir}/GraphicsMagick-config
219 %{_bindir}/GraphicsMagickWand-config
220 %{_libdir}/libGraphicsMagick.so
221 %{_libdir}/libGraphicsMagickWand.so
222 %{_libdir}/pkgconfig/GraphicsMagick.pc
223 %{_libdir}/pkgconfig/GraphicsMagickWand.pc
224 %dir %{_includedir}/GraphicsMagick/
225 %{_includedir}/GraphicsMagick/magick/
226 %{_includedir}/GraphicsMagick/wand/
227 %{_mandir}/man1/GraphicsMagick-config.*
228 %{_mandir}/man1/GraphicsMagickWand-config.*
229
230 %files c++
231 %defattr(-,root,root,-)
232 %{_libdir}/libGraphicsMagick++.so.3*
233
234 %files c++-devel
235 %defattr(-,root,root,-)
236 %{_bindir}/GraphicsMagick++-config
237 %{_includedir}/GraphicsMagick/Magick++/
238 %{_includedir}/GraphicsMagick/Magick++.h
239 %{_libdir}/libGraphicsMagick++.so
240 %{_libdir}/pkgconfig/GraphicsMagick++.pc
241 %{_mandir}/man1/GraphicsMagick++-config.*
242
243 %files perl -f perl-pkg-files
244 %defattr(-,root,root,-)
245 %{_mandir}/man3/*
246 %doc PerlMagick/demo/ PerlMagick/Changelog PerlMagick/README.txt
247
248
249 %changelog
250 * Thu Sep 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-1
251 - GraphicsMagick-1.3.7
252
253 * Mon Aug 3 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.3.6-2
254 - Use lzma-compressed upstream source tarball.
255
256 * Wed Jul 29 2009 Rex Dieter <rdieter@fedoraproject.org> 1.3.6-1
257 - GraphicsMagick-1.3.6
258
259 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
260 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
261
262 * Tue Jun 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.5-1
263 - GraphicsMagick-1.3.5, ABI break (#487605)
264 - --without-libgs (for now, per upstream advice)
265 - BR: jasper-devel
266
267 * Tue Jun 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.15-1
268 - GraphicsMagick-1.1.15
269 - fix BuildRoot
270 - multiarch conflicts in GraphicsMagick (#341381)
271 - broken -L in GraphicsMagick.pc (#456466)
272 - %%files: track sonames
273
274 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-4
275 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
276
277 * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.14-3
278 - own all files properly
279
280 * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.14-2
281 - turns out we do need gcc43 patch
282
283 * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.14-1
284 - update to 1.1.14
285 - fix perl issue (bz 454087)
286
287 * Sun Jun 01 2008 Dennis Gilmore <dennis@ausil.us> - 1.1.10-4
288 - sparc64 is a 64 bit arch
289
290 * Mon Feb 11 2008 Andreas Thienemann <andreas@bawue.net> - 1.1.10-3
291 - Added patch to include cstring instead of string, fixing gcc4.3 build issue
292
293 * Mon Feb 11 2008 Andreas Thienemann <andreas@bawue.net> - 1.1.10-2
294 - Rebuilt against gcc 4.3
295
296 * Mon Jan 28 2008 Andreas Thienemann <andreas@bawue.net> - 1.1.10-1
297 - Upgraded to 1.1.10
298 - Fixed linking problem with the Perl module. #365901
299
300 * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.1.8-3
301 - Rebuild for selinux ppc32 issue.
302
303 * Sun Jul 29 2007 Andreas Thienemann <andreas@bawue.net> - 1.1.8-2
304 - Building without gslib support as it results in segfaults.
305
306 * Sat Jul 28 2007 Andreas Thienemann <andreas@bawue.net> - 1.1.8-1
307 - Update to new maintainance release 1.1.8
308
309 * Wed Mar 07 2007 Andreas Thienemann <andreas@bawue.net> - 1.1.7-7
310 - Fix potential CVE-2007-0770 issue.
311 - Added perl-devel BuildReq
312
313 * Fri Dec 01 2006 Rex Dieter <rexdieter[AT]users.sf.net> - 1.1.7-6
314 - *really* fix magick_config-64.h (bug #217959)
315 - make buildable on rhel4 too.
316
317 * Fri Dec 01 2006 Rex Dieter <rexdieter[AT]users.sf.net> - 1.1.7-5
318 - fix magick-config-64.h (bug #217959)
319
320 * Sun Nov 29 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-3
321 - Fixed devel requirement.
322
323 * Sun Nov 26 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-2
324 - Fixed various stuff
325
326 * Mon Jul 24 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-1
327 - Initial Package for FE based on ImageMagick.spec

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2