/[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 47947 - (show annotations) (download)
Sun Feb 6 20:40:48 2011 UTC (10 years, 2 months ago) by spuhler
File size: 7505 byte(s)
imported package graphicsmagick
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 version 1.3.12
15 %define qlev Q8
16
17 Summary: An X application for displaying and manipulating images
18 Name: graphicsmagick
19 Version: %{version}
20 Release: %mkrel 3
21 License: GPLv2+
22 Group: Graphics
23 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
24 URL: http://www.graphicsmagick.org/
25 Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{Name}-%{version}.tar.lzma
26 Patch0: graphicsmagick-linkage_fix.diff
27 BuildRequires: x11-proto-devel
28 BuildRequires: perl-devel
29 BuildRequires: freetype2-devel
30 Buildrequires: tiff-devel
31 BuildRequires: png-devel
32 BuildRequires: jpeg-devel
33 BuildRequires: jasper-devel
34 BuildRequires: libwmf-devel
35 BuildRequires: zlib-devel
36 BuildRequires: bzip2-devel
37 BuildRequires: libxml2-devel
38 BuildRequires: lcms-devel
39 BuildRequires: libgs-devel
40 BuildRequires: jbigkit-devel
41
42 %description
43 GraphicsMagick is the swiss army knife of image processing. It
44 provides a robust collection of tools and libraries which support
45 reading, writing, and manipulating an image in over 88 major formats
46 including important formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF,
47 SVG, and TIFF. GraphicsMagick supports huge images on systems that
48 support large files, and has been tested with gigapixel-size images.
49 GraphicsMagick can create new images on the fly, making it suitable
50 for building dynamic Web applications. GraphicsMagick may be used to
51 resize, rotate, sharpen, color reduce, or add special effects to an
52 image and save the result in the same or differing image format.
53 Image processing operations are available from the command line, as
54 well as through C, C++, Perl, or Windows COM programming interfaces.
55 Extensions are available from third-parties to support programming in
56 Python, Tcl, and Ruby. With some modification, language extensions for
57 ImageMagick may be used.
58
59 %files
60 %defattr(-,root,root)
61 %doc ChangeLog *.txt
62 %{_bindir}/gm
63 %dir %{_libdir}/GraphicsMagick-%{version}/config
64 %{_libdir}/GraphicsMagick-%{version}/config/*.mgk
65 %dir %{_datadir}/GraphicsMagick-%{version}/config
66 %{_datadir}/GraphicsMagick-%{version}/config/*.mgk
67 %if %build_modules
68 %dir %{_libdir}/%{Name}-%{version}/modules-%{qlev}
69 %{_libdir}/%{Name}-%{version}/modules-%{qlev}/filters
70 %dir %{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders
71 %{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders/*.so
72 %{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders/*.la
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 ImageMagick libraries.
90
91 %if %mdkversion < 200900
92 %post -n %{libname} -p /sbin/ldconfig
93 %endif
94 %if %mdkversion < 200900
95 %postun -n %{libname} -p /sbin/ldconfig
96 %endif
97
98 %files -n %{libname}
99 %defattr(-,root,root,755)
100 %{_libdir}/libGraphicsMagick++.so.3*
101 %{_libdir}/libGraphicsMagick.so.3*
102
103 #--------------------------------------------------------------
104
105 %package -n %{libwandname}
106 Summary: %Name libraries
107 Group: System/Libraries
108
109 %description -n %{libwandname}
110 This package contains the libraries needed to run programs dynamically
111 linked with ImageMagick libraries.
112
113 %if %mdkversion < 200900
114 %post -n %{libwandname} -p /sbin/ldconfig
115 %endif
116 %if %mdkversion < 200900
117 %postun -n %{libwandname} -p /sbin/ldconfig
118 %endif
119
120 %files -n %{libwandname}
121 %defattr(-,root,root,755)
122 %{_libdir}/libGraphicsMagickWand.so.2*
123
124 #--------------------------------------------------------------
125
126 %package -n %{develname}
127 Summary: Static libraries and header files for %{Name} app development
128 Group: Development/C
129 Provides: %{name}-devel = %{version}-%{release}
130 Provides: %{Name}-devel = %{version}-%{release}
131 Obsoletes: %mklibname -d graphicsmagick 1.1.10
132 Requires: %{libname} = %{version}
133 Requires: %{libwandname} = %{version}
134 Requires: jbig-devel
135 %if %{enable_jasper}
136 Requires: jasper-devel
137 %endif
138 %if %{enable_graphwiz}
139 Requires: graphviz-devel
140 %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)
141 %endif
142
143 %description -n %{develname}
144 If you want to create applications that will use ImageMagick code or
145 APIs, you'll need to install these packages as well as
146 ImageMagick. These additional packages aren't necessary if you simply
147 want to use ImageMagick, however.
148
149 imagemagick-devel is an addition to ImageMagick which includes static
150 libraries and header files necessary to develop applications.
151
152 %files -n %{develname}
153 %defattr(-,root,root)
154 %{_bindir}/GraphicsMagick++-config
155 %{_bindir}/GraphicsMagick-config
156 %{_bindir}/GraphicsMagickWand-config
157 %dir %{_includedir}/GraphicsMagick
158 %{_includedir}/GraphicsMagick/Magick++.h
159 %dir %{_includedir}/GraphicsMagick/magick
160 %{_includedir}/GraphicsMagick/magick/*.h
161 %dir %{_includedir}/GraphicsMagick/Magick++
162 %{_includedir}/GraphicsMagick/Magick++/*.h
163 %dir %{_includedir}/GraphicsMagick/wand
164 %{_includedir}/GraphicsMagick/wand/*.h
165 %attr(644,root,root) %{_libdir}/*.la
166 %{_libdir}/*.so
167 %{_libdir}/pkgconfig/*.pc
168
169 #--------------------------------------------------------------
170
171 %package -n perl-Graphics-Magick
172 Summary: Libraries and modules for access to %Name from perl
173 Group: Development/Perl
174 Requires: %{name} = %{version}
175 %if %{enable_graphwiz}
176 Requires: graphviz
177 %endif
178
179 %description -n perl-Graphics-Magick
180 This is the %Name perl support package. It includes perl modules
181 and support files for access to ImageMagick library from perl.
182
183 %files -n perl-Graphics-Magick
184 %defattr(-,root,root)
185 %{_mandir}/man3*/*::*.3pm*
186 %{perl_vendorarch}/Graphics
187 %{perl_vendorarch}/auto
188
189 #--------------------------------------------------------------
190
191 %package doc
192 Summary: %{name} Documentation
193 Group: Books/Other
194
195 %description doc
196 This package contains HTML/PDF documentation of %{name}.
197
198
199 %files doc
200 %defattr(-,root,root)
201 %_datadir/doc/GraphicsMagick
202
203 #--------------------------------------------------------------
204
205 %prep
206 %setup -q -n %{Name}-%{version}
207 %patch0 -p0 -b .linkage_fix
208
209 %build
210 %define Werror_cflags %nil
211 %configure2_5x \
212 --enable-fast-install \
213 --disable-ltdl-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
232 %make perl-build
233
234 %install
235 rm -rf %{buildroot}
236
237 %makeinstall_std
238 %makeinstall_std -C PerlMagick
239 rm -f %buildroot%{_datadir}/GraphicsMagick-%{version}/{ChangeLog,NEWS.txt}
240
241 %clean
242 rm -rf %{buildroot}
243
244

  ViewVC Help
Powered by ViewVC 1.1.28