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

  ViewVC Help
Powered by ViewVC 1.1.28