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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1671616 - (hide annotations) (download)
Wed Jan 13 20:28:32 2021 UTC (3 months, 1 week ago) by neoclust
File size: 8303 byte(s)
New version 1.3.36, fixes security bugs (mga#28088)
1 akien 475675 %define build_modules 1
2 spuhler 47947 %{?_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 ovitters 876466 %define upstream_name GraphicsMagick
11 luigiwalser 915384 %define major 3
12     %define libname %mklibname %{name} %{major}
13     %define ppmajor 12
14     %define libppname %mklibname %{name}++ %{ppmajor}
15 akien 475675 %define libwandname %mklibname graphicsmagickwand 2
16 luigiwalser 915384 %define develname %mklibname %{name} -d
17 spuhler 47947 %define qlev Q8
18    
19 kekepower 1330527 %define dlver 1.3
20    
21 akien 475675 Summary: An X application for displaying and manipulating images
22 ovitters 876471 Name: graphicsmagick
23 neoclust 1671616 Version: 1.3.36
24     Release: %mkrel 1
25 akien 475675 License: GPLv2+
26     Group: Graphics/Editors and Converters
27     URL: http://www.graphicsmagick.org/
28 kekepower 1330527 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 akien 475675 Patch0: GraphicsMagick-1.3.15-use-so-for-modules.patch
31     Patch1: GraphicsMagick-1.3.16-perl-link.patch
32 akien 1123933
33 akien 1129820 # Upstream patches
34 spuhler 47947 BuildRequires: x11-proto-devel
35     BuildRequires: perl-devel
36 daviddavid 1219285 BuildRequires: pkgconfig(freetype2)
37 ovitters 1144495 BuildRequires: pkgconfig(libtiff-4)
38     BuildRequires: pkgconfig(libpng)
39     BuildRequires: pkgconfig(libjpeg)
40     BuildRequires: pkgconfig(jasper)
41 akien 475675 BuildRequires: libwmf-devel
42 ovitters 1144495 BuildRequires: pkgconfig(zlib)
43 kekepower 1194507 BuildRequires: pkgconfig(bzip2)
44 ovitters 1144495 BuildRequires: pkgconfig(libxml-2.0)
45     BuildRequires: pkgconfig(lcms2)
46 akien 475675 BuildRequires: libgs-devel
47     BuildRequires: libtool-devel
48     BuildRequires: jbigkit-devel
49 wally 664839 BuildRequires: chrpath
50 spuhler 47947
51 luigiwalser 1618996 Provides: %{upstream_name} = %{version}-%{release}
52    
53 spuhler 47947 %description
54 akien 1124155 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 spuhler 47947 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 ovitters 876466 %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 spuhler 47947 %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 ovitters 876466 Summary: %upstream_name libraries
94 spuhler 47947 Group: System/Libraries
95    
96     %description -n %{libname}
97     This package contains the libraries needed to run programs dynamically
98 akien 475677 linked with GraphicsMagick libraries.
99 spuhler 47947
100     %files -n %{libname}
101 ovitters 1143856 %{_libdir}/libGraphicsMagick.so.%{major}{,.*}
102 spuhler 47947
103     #--------------------------------------------------------------
104    
105 luigiwalser 915384 %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 ovitters 1143856 %{_libdir}/libGraphicsMagick++.so.%{ppmajor}{,.*}
115 luigiwalser 915384
116     #--------------------------------------------------------------
117    
118 spuhler 47947 %package -n %{libwandname}
119 ovitters 876466 Summary: %upstream_name libraries
120 spuhler 47947 Group: System/Libraries
121    
122     %description -n %{libwandname}
123     This package contains the libraries needed to run programs dynamically
124 akien 475677 linked with GraphicsMagick libraries.
125 spuhler 47947
126     %files -n %{libwandname}
127     %{_libdir}/libGraphicsMagickWand.so.2*
128    
129     #--------------------------------------------------------------
130    
131     %package -n %{develname}
132 ovitters 876466 Summary: Static libraries and header files for %{upstream_name} app development
133 akien 475675 Group: Development/C
134     Provides: %{name}-devel = %{version}-%{release}
135 ovitters 876466 Provides: %{upstream_name}-devel = %{version}-%{release}
136 akien 475675 Obsoletes: %mklibname -d graphicsmagick 1.1.10
137     Requires: %{libname} = %{version}
138 luigiwalser 916630 Requires: %{libppname} = %{version}
139 akien 475675 Requires: %{libwandname} = %{version}
140     Requires: jbig-devel
141 spuhler 47947 %if %{enable_jasper}
142 akien 475675 Requires: jasper-devel
143 spuhler 47947 %endif
144     %if %{enable_graphwiz}
145 akien 475675 Requires: graphviz-devel
146 tv 677178 %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 spuhler 47947 %endif
148    
149     %description -n %{develname}
150 akien 475677 If you want to create applications that will use GraphicsMagick code or
151 spuhler 47947 APIs, you'll need to install these packages as well as
152 akien 475677 GraphicsMagick. These additional packages aren't necessary if you simply
153     want to use GraphicsMagick, however.
154 spuhler 47947
155 akien 475677 graphicsmagick-devel is an addition to GraphicsMagick which includes static
156 spuhler 47947 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 ovitters 876466 Summary: Libraries and modules for access to %upstream_name from perl
177 spuhler 47947 Group: Development/Perl
178     Requires: %{name} = %{version}
179     %if %{enable_graphwiz}
180     Requires: graphviz
181     %endif
182    
183     %description -n perl-Graphics-Magick
184 ovitters 876466 This is the %upstream_name perl support package. It includes perl modules
185 akien 475677 and support files for access to GraphicsMagick library from perl.
186 spuhler 47947
187     %files -n perl-Graphics-Magick
188     %{_mandir}/man3*/*::*.3pm*
189     %{perl_vendorarch}/Graphics
190 guillomovitch 1248780 %{perl_vendorarch}/auto/Graphics
191 spuhler 47947
192     #--------------------------------------------------------------
193    
194     %package doc
195     Summary: %{name} Documentation
196 fwang 307083 Group: Documentation
197 akien 475675 BuildArch: noarch
198 spuhler 47947
199     %description doc
200     This package contains HTML/PDF documentation of %{name}.
201    
202     %files doc
203 luigiwalser 274582 %{_datadir}/doc/GraphicsMagick
204 spuhler 47947
205     #--------------------------------------------------------------
206    
207     %prep
208 akien 1129820 %autosetup -p1 -n %{upstream_name}-%{version}
209 akien 1123933
210 spuhler 47947 %build
211     %define Werror_cflags %nil
212 wally 1479054 %configure \
213 spuhler 47947 --enable-fast-install \
214     --without-dps \
215 luigiwalser 274581 %if %{build_modules}
216 spuhler 47947 --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 akien 1124155 %make_build
232     %make_build perl-build
233 spuhler 47947
234     %install
235 akien 1124155 %make_install
236     %make_install -C PerlMagick
237 fwang 143438
238 wally 664839 # 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 luigiwalser 274581 rm -f %{buildroot}%{_datadir}/GraphicsMagick-%{version}/{ChangeLog,NEWS.txt}

  ViewVC Help
Powered by ViewVC 1.1.28