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

  ViewVC Help
Powered by ViewVC 1.1.28