/[packages]/cauldron/graphicsmagick/current/SPECS/graphicsmagick.spec
ViewVC logotype

Contents of /cauldron/graphicsmagick/current/SPECS/graphicsmagick.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28