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

Contents of /devel/GraphicsMagick/GraphicsMagick.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.31 - (show annotations) (download)
Fri Nov 6 14:33:47 2009 UTC (2 weeks, 4 days ago) by rdieter
Branch: MAIN
CVS Tags: HEAD
Changes since 1.30: +17 -19 lines
* Fri Nov 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-2
- cleanup/uncruftify .spec
1
2 Summary: An ImageMagick fork, offering faster image generation and better quality
3 Name: GraphicsMagick
4 Version: 1.3.7
5 Release: 2%{?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.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
105 %endif
106
107
108 %build
109 %configure --enable-shared --disable-static \
110 --with-lcms \
111 --with-magick_plus_plus \
112 --with-modules \
113 --with-perl \
114 --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix}" \
115 --with-threads \
116 --with-windows-font-dir=%{_datadir}/fonts/default/TrueType \
117 --with-wmf \
118 --with-x \
119 --with-xml \
120 --without-dps \
121 --without-gslib
122
123 make %{?_smp_mflags}
124 make %{?_smp_mflags} perl-build
125
126
127 %install
128 rm -rf %{buildroot}
129
130 make install DESTDIR=%{buildroot}
131 make install DESTDIR=%{buildroot} -C PerlMagick
132
133 # perlmagick: fix perl path of demo files
134 %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl
135
136 find %{buildroot} -name "*.bs" |xargs rm -fv
137 find %{buildroot} -name ".packlist" |xargs rm -fv
138 find %{buildroot} -name "perllocal.pod" |xargs rm -fv
139
140 chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so
141
142 # perlmagick: build files list
143 echo "%defattr(-,root,root)" > perl-pkg-files
144 find %{buildroot}/%{_libdir}/perl* -type f -print \
145 | sed "s@^%{buildroot}@@g" > perl-pkg-files
146 find %{buildroot}%{perl_vendorarch} -type d -print \
147 | sed "s@^%{buildroot}@%dir @g" \
148 | grep -v '^%dir %{perl_vendorarch}$' \
149 | grep -v '/auto$' >> perl-pkg-files
150 if [ -z perl-pkg-files ] ; then
151 echo "ERROR: EMPTY FILE LIST"
152 exit -1
153 fi
154
155 rm -rf %{buildroot}%{_datadir}/GraphicsMagick
156 # Keep config
157 rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]*
158 rm -vf %{buildroot}%{_libdir}/lib*.la
159
160 # fix multilib issues
161 %ifarch x86_64 s390x ia64 ppc64 sparc64
162 %define wordsize 64
163 %else
164 %define wordsize 32
165 %endif
166
167 mv %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config.h \
168 %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config-%{wordsize}.h
169
170 cat >%{buildroot}%{_includedir}/GraphicsMagick/magick/magick_config.h <<EOF
171 #ifndef ORBIT_MULTILIB
172 #define ORBIT_MULTILIB
173
174 #include <bits/wordsize.h>
175
176 #if __WORDSIZE == 32
177 # include "magick_config-32.h"
178 #elif __WORDSIZE == 64
179 # include "magick_config-64.h"
180 #else
181 # error "unexpected value for __WORDSIZE macro"
182 #endif
183
184 #endif
185 EOF
186
187
188 %clean
189 rm -rf %{buildroot}
190
191 %post -p /sbin/ldconfig
192
193 %post c++ -p /sbin/ldconfig
194
195 %postun -p /sbin/ldconfig
196
197 %postun c++ -p /sbin/ldconfig
198
199 %files
200 %defattr(-,root,root,-)
201 %doc Copyright.txt
202 %doc README.txt
203 %doc %{_datadir}/doc/%{name}/
204 %{_libdir}/libGraphicsMagick.so.3*
205 %{_libdir}/libGraphicsMagickWand.so.2*
206 %{_bindir}/[a-z]*
207 %{_libdir}/GraphicsMagick*
208 %{_datadir}/GraphicsMagick*
209 %{_mandir}/man[145]/[a-z]*
210
211 %files devel
212 %defattr(-,root,root,-)
213 %{_bindir}/GraphicsMagick-config
214 %{_bindir}/GraphicsMagickWand-config
215 %{_libdir}/libGraphicsMagick.so
216 %{_libdir}/libGraphicsMagickWand.so
217 %{_libdir}/pkgconfig/GraphicsMagick.pc
218 %{_libdir}/pkgconfig/GraphicsMagickWand.pc
219 %dir %{_includedir}/GraphicsMagick/
220 %{_includedir}/GraphicsMagick/magick/
221 %{_includedir}/GraphicsMagick/wand/
222 %{_mandir}/man1/GraphicsMagick-config.*
223 %{_mandir}/man1/GraphicsMagickWand-config.*
224
225 %files c++
226 %defattr(-,root,root,-)
227 %{_libdir}/libGraphicsMagick++.so.3*
228
229 %files c++-devel
230 %defattr(-,root,root,-)
231 %{_bindir}/GraphicsMagick++-config
232 %{_includedir}/GraphicsMagick/Magick++/
233 %{_includedir}/GraphicsMagick/Magick++.h
234 %{_libdir}/libGraphicsMagick++.so
235 %{_libdir}/pkgconfig/GraphicsMagick++.pc
236 %{_mandir}/man1/GraphicsMagick++-config.*
237
238 %files perl -f perl-pkg-files
239 %defattr(-,root,root,-)
240 %{_mandir}/man3/*
241 %doc PerlMagick/demo/ PerlMagick/Changelog PerlMagick/README.txt
242
243
244 %changelog
245 * Fri Nov 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-2
246 - cleanup/uncruftify .spec
247
248 * Thu Sep 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-1
249 - GraphicsMagick-1.3.7
250
251 * Mon Aug 3 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.3.6-2
252 - Use lzma-compressed upstream source tarball.
253
254 * Wed Jul 29 2009 Rex Dieter <rdieter@fedoraproject.org> 1.3.6-1
255 - GraphicsMagick-1.3.6
256
257 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
258 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
259
260 * Tue Jun 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.5-1
261 - GraphicsMagick-1.3.5, ABI break (#487605)
262 - --without-libgs (for now, per upstream advice)
263 - BR: jasper-devel
264
265 * Tue Jun 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.15-1
266 - GraphicsMagick-1.1.15
267 - fix BuildRoot
268 - multiarch conflicts in GraphicsMagick (#341381)
269 - broken -L in GraphicsMagick.pc (#456466)
270 - %%files: track sonames
271
272 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-4
273 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
274
275 * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.14-3
276 - own all files properly
277
278 * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.14-2
279 - turns out we do need gcc43 patch
280
281 * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.14-1
282 - update to 1.1.14
283 - fix perl issue (bz 454087)
284
285 * Sun Jun 01 2008 Dennis Gilmore <dennis@ausil.us> - 1.1.10-4
286 - sparc64 is a 64 bit arch
287
288 * Mon Feb 11 2008 Andreas Thienemann <andreas@bawue.net> - 1.1.10-3
289 - Added patch to include cstring instead of string, fixing gcc4.3 build issue
290
291 * Mon Feb 11 2008 Andreas Thienemann <andreas@bawue.net> - 1.1.10-2
292 - Rebuilt against gcc 4.3
293
294 * Mon Jan 28 2008 Andreas Thienemann <andreas@bawue.net> - 1.1.10-1
295 - Upgraded to 1.1.10
296 - Fixed linking problem with the Perl module. #365901
297
298 * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.1.8-3
299 - Rebuild for selinux ppc32 issue.
300
301 * Sun Jul 29 2007 Andreas Thienemann <andreas@bawue.net> - 1.1.8-2
302 - Building without gslib support as it results in segfaults.
303
304 * Sat Jul 28 2007 Andreas Thienemann <andreas@bawue.net> - 1.1.8-1
305 - Update to new maintainance release 1.1.8
306
307 * Wed Mar 07 2007 Andreas Thienemann <andreas@bawue.net> - 1.1.7-7
308 - Fix potential CVE-2007-0770 issue.
309 - Added perl-devel BuildReq
310
311 * Fri Dec 01 2006 Rex Dieter <rexdieter[AT]users.sf.net> - 1.1.7-6
312 - *really* fix magick_config-64.h (bug #217959)
313 - make buildable on rhel4 too.
314
315 * Fri Dec 01 2006 Rex Dieter <rexdieter[AT]users.sf.net> - 1.1.7-5
316 - fix magick-config-64.h (bug #217959)
317
318 * Sun Nov 29 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-3
319 - Fixed devel requirement.
320
321 * Sun Nov 26 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-2
322 - Fixed various stuff
323
324 * Mon Jul 24 2006 Andreas Thienemann <andreas@bawue.net> - 1.1.7-1
325 - Initial Package for FE based on ImageMagick.spec

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2