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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 677178 - (show annotations) (download)
Tue Sep 16 05:56:39 2014 UTC (9 years, 6 months ago) by tv
Original Path: cauldron/graphicsmagick/current/SPECS/graphicsmagick.spec
File size: 7521 byte(s)
use %%global for req/prov exclude
1 %define build_modules 1
2 %{?_with_modules: %global build_modules 1}
3
4 %define enable_jasper 1
5 %{?_with_jasper: %global enable_jasper 1}
6
7 %define enable_graphwiz 1
8 %{?_with_graphwiz: %global enable_graphwiz 1}
9
10 %define Name GraphicsMagick
11 %define libname %mklibname %name 3
12 %define libwandname %mklibname graphicsmagickwand 2
13 %define develname %mklibname %name -d
14 %define qlev Q8
15
16 Summary: An X application for displaying and manipulating images
17 Name: graphicsmagick
18 Version: 1.3.20
19 Release: %mkrel 1
20 License: GPLv2+
21 Group: Graphics/Editors and Converters
22 URL: http://www.graphicsmagick.org/
23 Source0: http://downloads.sourceforge.net/%{name}/%{Name}-%{version}.tar.xz
24 Patch0: GraphicsMagick-1.3.15-use-so-for-modules.patch
25 Patch1: GraphicsMagick-1.3.16-perl-link.patch
26 Patch2: GraphicsMagick-1.3.20-CVE-2014-1947.patch
27 BuildRequires: x11-proto-devel
28 BuildRequires: perl-devel
29 BuildRequires: freetype2-devel
30 BuildRequires: tiff-devel
31 BuildRequires: png-devel
32 BuildRequires: jpeg-devel
33 BuildRequires: jasper-devel
34 BuildRequires: libwmf-devel
35 BuildRequires: zlib-devel
36 BuildRequires: bzip2-devel
37 BuildRequires: libxml2-devel
38 BuildRequires: lcms-devel
39 BuildRequires: lcms2-devel
40 BuildRequires: libgs-devel
41 BuildRequires: libtool-devel
42 BuildRequires: jbigkit-devel
43 BuildRequires: chrpath
44
45 %description
46 GraphicsMagick is the swiss army knife of image processing. It
47 provides a robust collection of tools and libraries which support
48 reading, writing, and manipulating an image in over 88 major formats
49 including important formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF,
50 SVG, and TIFF. GraphicsMagick supports huge images on systems that
51 support large files, and has been tested with gigapixel-size images.
52 GraphicsMagick can create new images on the fly, making it suitable
53 for building dynamic Web applications. GraphicsMagick may be used to
54 resize, rotate, sharpen, color reduce, or add special effects to an
55 image and save the result in the same or differing image format.
56 Image processing operations are available from the command line, as
57 well as through C, C++, Perl, or Windows COM programming interfaces.
58 Extensions are available from third-parties to support programming in
59 Python, Tcl, and Ruby. With some modification, language extensions for
60 ImageMagick may be used.
61
62 %files
63 %doc ChangeLog *.txt
64 %{_bindir}/gm
65 %dir %{_libdir}/GraphicsMagick-%{version}/config
66 %{_libdir}/GraphicsMagick-%{version}/config/*.mgk
67 %dir %{_datadir}/GraphicsMagick-%{version}/config
68 %{_datadir}/GraphicsMagick-%{version}/config/*.mgk
69 %if %build_modules
70 %dir %{_libdir}/%{Name}-%{version}/modules-%{qlev}
71 %{_libdir}/%{Name}-%{version}/modules-%{qlev}/filters
72 %dir %{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders
73 %{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders/*.so
74 %endif
75 %{_mandir}/man1/GraphicsMagick++-config.1.*
76 %{_mandir}/man1/GraphicsMagick-config.1.*
77 %{_mandir}/man1/GraphicsMagickWand-config.1.*
78 %{_mandir}/man1/gm.1.*
79 %{_mandir}/man4/miff.4.*
80 %{_mandir}/man5/quantize.5.*
81
82 #--------------------------------------------------------------
83
84 %package -n %{libname}
85 Summary: %Name libraries
86 Group: System/Libraries
87
88 %description -n %{libname}
89 This package contains the libraries needed to run programs dynamically
90 linked with GraphicsMagick libraries.
91
92 %files -n %{libname}
93 %{_libdir}/libGraphicsMagick++.so.3*
94 %{_libdir}/libGraphicsMagick.so.3*
95
96 #--------------------------------------------------------------
97
98 %package -n %{libwandname}
99 Summary: %Name libraries
100 Group: System/Libraries
101
102 %description -n %{libwandname}
103 This package contains the libraries needed to run programs dynamically
104 linked with GraphicsMagick libraries.
105
106 %files -n %{libwandname}
107 %{_libdir}/libGraphicsMagickWand.so.2*
108
109 #--------------------------------------------------------------
110
111 %package -n %{develname}
112 Summary: Static libraries and header files for %{Name} app development
113 Group: Development/C
114 Provides: %{name}-devel = %{version}-%{release}
115 Provides: %{Name}-devel = %{version}-%{release}
116 Obsoletes: %mklibname -d graphicsmagick 1.1.10
117 Requires: %{libname} = %{version}
118 Requires: %{libwandname} = %{version}
119 Requires: jbig-devel
120 %if %{enable_jasper}
121 Requires: jasper-devel
122 %endif
123 %if %{enable_graphwiz}
124 Requires: graphviz-devel
125 %global __requires_exclude devel\\(libcdt\\)|devel\\(libcircogen\\)|devel\\(libcommon\\)|devel\\(libdotgen\\)|devel\\(libdotneato\\)|devel\\(libfdpgen\\)|devel\\(libgraph\\)|devel\\(libgvrender\\)|devel\\(libneatogen\\)|devel\\(libpack\\)|devel\\(libpathplan\\)|devel\\(libtwopigen\\)|devel\\(libgvc\\)|devel\\(libgvgd\\)
126 %endif
127
128 %description -n %{develname}
129 If you want to create applications that will use GraphicsMagick code or
130 APIs, you'll need to install these packages as well as
131 GraphicsMagick. These additional packages aren't necessary if you simply
132 want to use GraphicsMagick, however.
133
134 graphicsmagick-devel is an addition to GraphicsMagick which includes static
135 libraries and header files necessary to develop applications.
136
137 %files -n %{develname}
138 %{_bindir}/GraphicsMagick++-config
139 %{_bindir}/GraphicsMagick-config
140 %{_bindir}/GraphicsMagickWand-config
141 %dir %{_includedir}/GraphicsMagick
142 %{_includedir}/GraphicsMagick/Magick++.h
143 %dir %{_includedir}/GraphicsMagick/magick
144 %{_includedir}/GraphicsMagick/magick/*.h
145 %dir %{_includedir}/GraphicsMagick/Magick++
146 %{_includedir}/GraphicsMagick/Magick++/*.h
147 %dir %{_includedir}/GraphicsMagick/wand
148 %{_includedir}/GraphicsMagick/wand/*.h
149 %{_libdir}/*.so
150 %{_libdir}/pkgconfig/*.pc
151
152 #--------------------------------------------------------------
153
154 %package -n perl-Graphics-Magick
155 Summary: Libraries and modules for access to %Name from perl
156 Group: Development/Perl
157 Requires: %{name} = %{version}
158 %if %{enable_graphwiz}
159 Requires: graphviz
160 %endif
161
162 %description -n perl-Graphics-Magick
163 This is the %Name perl support package. It includes perl modules
164 and support files for access to GraphicsMagick library from perl.
165
166 %files -n perl-Graphics-Magick
167 %{_mandir}/man3*/*::*.3pm*
168 %{perl_vendorarch}/Graphics
169 %{perl_vendorarch}/auto
170
171 #--------------------------------------------------------------
172
173 %package doc
174 Summary: %{name} Documentation
175 Group: Documentation
176 BuildArch: noarch
177
178 %description doc
179 This package contains HTML/PDF documentation of %{name}.
180
181 %files doc
182 %{_datadir}/doc/GraphicsMagick
183
184 #--------------------------------------------------------------
185
186 %prep
187 %setup -q -n %{Name}-%{version}
188 %patch0 -p0
189 %patch1 -p1 -b .perl-link
190 %patch2 -p1 -b .CVE-2014-1947
191
192 %build
193 %define Werror_cflags %nil
194 %configure2_5x \
195 --enable-fast-install \
196 --without-dps \
197 %if %{build_modules}
198 --with-modules \
199 %else
200 --without-modules \
201 %endif
202 --enable-shared \
203 --disable-static \
204 --with-pic \
205 %if %{enable_jasper}
206 --with-jp2 \
207 %else
208 --without-jp2 \
209 %endif
210 --with-perl-options="INSTALLDIRS=vendor" \
211 --with-perl
212
213 %make
214 %make perl-build
215
216 %install
217 %makeinstall_std
218 %makeinstall_std -C PerlMagick
219
220 # fix rights and remove rpaths
221 chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so
222 chrpath -d %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so
223
224 # remove unwanted files
225 find %{buildroot} -name '*.la' -delete
226 rm -f %{buildroot}%{_datadir}/GraphicsMagick-%{version}/{ChangeLog,NEWS.txt}

  ViewVC Help
Powered by ViewVC 1.1.30