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

  ViewVC Help
Powered by ViewVC 1.1.30