/[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 664839 - (hide annotations) (download)
Sun Aug 17 13:15:08 2014 UTC (5 years, 7 months ago) by wally
File size: 7412 byte(s)
- rediff perl module linking patch to fix build
- drop rpath from perl module
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 spuhler 650946 Version: 1.3.19
19     Release: %mkrel 1
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 wally 664839 BuildRequires: chrpath
43 spuhler 47947
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 akien 475677 linked with GraphicsMagick libraries.
90 spuhler 47947
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 akien 475677 linked with GraphicsMagick libraries.
104 spuhler 47947
105     %files -n %{libwandname}
106     %{_libdir}/libGraphicsMagickWand.so.2*
107    
108     #--------------------------------------------------------------
109    
110     %package -n %{develname}
111 akien 475675 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 spuhler 47947 %if %{enable_jasper}
120 akien 475675 Requires: jasper-devel
121 spuhler 47947 %endif
122     %if %{enable_graphwiz}
123 akien 475675 Requires: graphviz-devel
124 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)
125     %endif
126    
127     %description -n %{develname}
128 akien 475677 If you want to create applications that will use GraphicsMagick code or
129 spuhler 47947 APIs, you'll need to install these packages as well as
130 akien 475677 GraphicsMagick. These additional packages aren't necessary if you simply
131     want to use GraphicsMagick, however.
132 spuhler 47947
133 akien 475677 graphicsmagick-devel is an addition to GraphicsMagick which includes static
134 spuhler 47947 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 akien 475677 and support files for access to GraphicsMagick library from perl.
164 spuhler 47947
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 fwang 307083 Group: Documentation
175 akien 475675 BuildArch: noarch
176 spuhler 47947
177     %description doc
178     This package contains HTML/PDF documentation of %{name}.
179    
180     %files doc
181 luigiwalser 274582 %{_datadir}/doc/GraphicsMagick
182 spuhler 47947
183     #--------------------------------------------------------------
184    
185     %prep
186     %setup -q -n %{Name}-%{version}
187 fwang 260526 %patch0 -p0
188 blino 276909 %patch1 -p1 -b .perl-link
189 spuhler 47947
190     %build
191     %define Werror_cflags %nil
192     %configure2_5x \
193     --enable-fast-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 wally 664839 # 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 luigiwalser 274581 rm -f %{buildroot}%{_datadir}/GraphicsMagick-%{version}/{ChangeLog,NEWS.txt}

  ViewVC Help
Powered by ViewVC 1.1.26