/[packages]/updates/5/graphicsmagick/current/SPECS/graphicsmagick.spec
ViewVC logotype

Annotation of /updates/5/graphicsmagick/current/SPECS/graphicsmagick.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 645061 - (hide annotations) (download)
Sun Jul 6 12:32:16 2014 UTC (9 years, 9 months ago) by ovitters
Original Path: cauldron/graphicsmagick/current/SPECS/graphicsmagick.spec
File size: 7220 byte(s)
SILENT remove variable definition(s) version
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 akien 475675 %define Name GraphicsMagick
11 spuhler 47947 %define libname %mklibname %name 3
12 akien 475675 %define libwandname %mklibname graphicsmagickwand 2
13     %define develname %mklibname %name -d
14 spuhler 47947 %define qlev Q8
15    
16 akien 475675 Summary: An X application for displaying and manipulating images
17     Name: graphicsmagick
18 ovitters 645061 Version: 1.3.18
19 pterjan 630779 Release: %mkrel 4
20 akien 475675 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 spuhler 47947 BuildRequires: x11-proto-devel
27     BuildRequires: perl-devel
28 akien 475675 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 spuhler 47947
43     %description
44     GraphicsMagick is the swiss army knife of image processing. It
45     provides a robust collection of tools and libraries which support
46     reading, writing, and manipulating an image in over 88 major formats
47     including important formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF,
48     SVG, and TIFF. GraphicsMagick supports huge images on systems that
49     support large files, and has been tested with gigapixel-size images.
50     GraphicsMagick can create new images on the fly, making it suitable
51     for building dynamic Web applications. GraphicsMagick may be used to
52     resize, rotate, sharpen, color reduce, or add special effects to an
53     image and save the result in the same or differing image format.
54     Image processing operations are available from the command line, as
55     well as through C, C++, Perl, or Windows COM programming interfaces.
56     Extensions are available from third-parties to support programming in
57     Python, Tcl, and Ruby. With some modification, language extensions for
58     ImageMagick may be used.
59    
60     %files
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     %endif
73     %{_mandir}/man1/GraphicsMagick++-config.1.*
74     %{_mandir}/man1/GraphicsMagick-config.1.*
75     %{_mandir}/man1/GraphicsMagickWand-config.1.*
76     %{_mandir}/man1/gm.1.*
77     %{_mandir}/man4/miff.4.*
78     %{_mandir}/man5/quantize.5.*
79    
80     #--------------------------------------------------------------
81    
82     %package -n %{libname}
83     Summary: %Name libraries
84     Group: System/Libraries
85    
86     %description -n %{libname}
87     This package contains the libraries needed to run programs dynamically
88 akien 475677 linked with GraphicsMagick libraries.
89 spuhler 47947
90     %files -n %{libname}
91     %{_libdir}/libGraphicsMagick++.so.3*
92     %{_libdir}/libGraphicsMagick.so.3*
93    
94     #--------------------------------------------------------------
95    
96     %package -n %{libwandname}
97     Summary: %Name libraries
98     Group: System/Libraries
99    
100     %description -n %{libwandname}
101     This package contains the libraries needed to run programs dynamically
102 akien 475677 linked with GraphicsMagick libraries.
103 spuhler 47947
104     %files -n %{libwandname}
105     %{_libdir}/libGraphicsMagickWand.so.2*
106    
107     #--------------------------------------------------------------
108    
109     %package -n %{develname}
110 akien 475675 Summary: Static libraries and header files for %{Name} app development
111     Group: Development/C
112     Provides: %{name}-devel = %{version}-%{release}
113     Provides: %{Name}-devel = %{version}-%{release}
114     Obsoletes: %mklibname -d graphicsmagick 1.1.10
115     Requires: %{libname} = %{version}
116     Requires: %{libwandname} = %{version}
117     Requires: jbig-devel
118 spuhler 47947 %if %{enable_jasper}
119 akien 475675 Requires: jasper-devel
120 spuhler 47947 %endif
121     %if %{enable_graphwiz}
122 akien 475675 Requires: graphviz-devel
123 spuhler 47947 %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)
124     %endif
125    
126     %description -n %{develname}
127 akien 475677 If you want to create applications that will use GraphicsMagick code or
128 spuhler 47947 APIs, you'll need to install these packages as well as
129 akien 475677 GraphicsMagick. These additional packages aren't necessary if you simply
130     want to use GraphicsMagick, however.
131 spuhler 47947
132 akien 475677 graphicsmagick-devel is an addition to GraphicsMagick which includes static
133 spuhler 47947 libraries and header files necessary to develop applications.
134    
135     %files -n %{develname}
136     %{_bindir}/GraphicsMagick++-config
137     %{_bindir}/GraphicsMagick-config
138     %{_bindir}/GraphicsMagickWand-config
139     %dir %{_includedir}/GraphicsMagick
140     %{_includedir}/GraphicsMagick/Magick++.h
141     %dir %{_includedir}/GraphicsMagick/magick
142     %{_includedir}/GraphicsMagick/magick/*.h
143     %dir %{_includedir}/GraphicsMagick/Magick++
144     %{_includedir}/GraphicsMagick/Magick++/*.h
145     %dir %{_includedir}/GraphicsMagick/wand
146     %{_includedir}/GraphicsMagick/wand/*.h
147     %{_libdir}/*.so
148     %{_libdir}/pkgconfig/*.pc
149    
150     #--------------------------------------------------------------
151    
152     %package -n perl-Graphics-Magick
153     Summary: Libraries and modules for access to %Name from perl
154     Group: Development/Perl
155     Requires: %{name} = %{version}
156     %if %{enable_graphwiz}
157     Requires: graphviz
158     %endif
159    
160     %description -n perl-Graphics-Magick
161     This is the %Name perl support package. It includes perl modules
162 akien 475677 and support files for access to GraphicsMagick library from perl.
163 spuhler 47947
164     %files -n perl-Graphics-Magick
165     %{_mandir}/man3*/*::*.3pm*
166     %{perl_vendorarch}/Graphics
167     %{perl_vendorarch}/auto
168    
169     #--------------------------------------------------------------
170    
171     %package doc
172     Summary: %{name} Documentation
173 fwang 307083 Group: Documentation
174 akien 475675 BuildArch: noarch
175 spuhler 47947
176     %description doc
177     This package contains HTML/PDF documentation of %{name}.
178    
179     %files doc
180 luigiwalser 274582 %{_datadir}/doc/GraphicsMagick
181 spuhler 47947
182     #--------------------------------------------------------------
183    
184     %prep
185     %setup -q -n %{Name}-%{version}
186 fwang 260526 %patch0 -p0
187 blino 276909 %patch1 -p1 -b .perl-link
188 spuhler 47947
189     %build
190     %define Werror_cflags %nil
191     %configure2_5x \
192     --enable-fast-install \
193     --disable-ltdl-install \
194     --without-dps \
195 luigiwalser 274581 %if %{build_modules}
196 spuhler 47947 --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 fwang 143438
218     find %{buildroot} -name '*.la' | xargs rm
219 luigiwalser 274581 rm -f %{buildroot}%{_datadir}/GraphicsMagick-%{version}/{ChangeLog,NEWS.txt}

  ViewVC Help
Powered by ViewVC 1.1.30