]> git.pld-linux.org Git - packages/vips.git/blob - vips.spec
c542562fb0b4f7c8ea0a76f1a38f963efe26141f
[packages/vips.git] / vips.spec
1 # TODO:
2 # - pdfium as an alternative for poppler?
3 Summary:        A fast image processing library with low memory needs
4 Summary(pl.UTF-8):      Szybka biblioteka przetwarzania obrazów o małych wymaganiach pamięciowych
5 Name:           vips
6 Version:        8.10.2
7 Release:        3
8 License:        LGPL v2+
9 Group:          Libraries
10 #Source0Download: https://github.com/jcupitt/libvips/releases/
11 Source0:        https://github.com/jcupitt/libvips/archive/v%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5:  f03d95305d639d0bedeff198b2b21123
13 URL:            http://jcupitt.github.io/libvips/
14 BuildRequires:  ImageMagick-devel >= 1:6.2.4.0
15 BuildRequires:  OpenEXR-devel >= 1.2.2
16 BuildRequires:  autoconf >= 2.62
17 BuildRequires:  automake >= 1.6
18 BuildRequires:  bzip2-devel
19 BuildRequires:  cairo-devel >= 1.2
20 BuildRequires:  cfitsio-devel
21 BuildRequires:  expat-devel >= 1.95
22 BuildRequires:  fftw3-devel >= 3.0.0
23 BuildRequires:  gettext-tools
24 BuildRequires:  giflib-devel
25 BuildRequires:  glib2-devel >= 1:2.48
26 BuildRequires:  gobject-introspection-devel >= 1.30.0
27 BuildRequires:  gtk-doc >= 1.14
28 BuildRequires:  lcms2-devel >= 2
29 BuildRequires:  libexif-devel >= 0.6
30 BuildRequires:  libgsf-devel >= 1.14.31
31 BuildRequires:  libimagequant-devel
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  libltdl-devel
34 BuildRequires:  libpng-devel >= 2:1.2.9
35 BuildRequires:  librsvg-devel >= 2.34
36 BuildRequires:  libstdc++-devel
37 BuildRequires:  libtiff-devel >= 4
38 BuildRequires:  libtool
39 BuildRequires:  libwebp-devel >= 0.5.0
40 BuildRequires:  libxml2-devel
41 BuildRequires:  matio-devel
42 BuildRequires:  nifticlib-devel
43 BuildRequires:  openslide-devel >= 3.4.0
44 BuildRequires:  orc-devel >= 0.4.11
45 BuildRequires:  pango-devel
46 BuildRequires:  poppler-glib-devel >= 0.16.0
47 BuildRequires:  pkgconfig
48 BuildRequires:  rpm-pythonprov
49 BuildRequires:  rpmbuild(find_lang) >= 1.32
50 BuildRequires:  rpmbuild(macros) >= 1.714
51 BuildRequires:  zlib-devel >= 0.4
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 libvips is a demand-driven, horizontally threaded image processing
56 library. Compared to similar libraries, libvips runs quickly and uses
57 little memory.
58
59 It has around 300 operations covering arithmetic, histograms,
60 convolution, morphological operations, frequency filtering, colour,
61 resampling, statistics and others. It supports a large range of
62 numeric formats, from 8-bit int to 128-bit complex. Images can have
63 any number of bands. It supports a good range of image formats,
64 including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF,
65 SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also
66 load images via ImageMagick or GraphicsMagick, letting it load formats
67 like DICOM.
68
69 This package contains utilities based on libvips library.
70
71 %description -l pl.UTF-8
72 VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu
73 do innych, działa szybko i zużywa niewiele pamięci.
74
75 Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty,
76 operacje morfologiczne, filtry częstotliwościowe, kolory, resampling,
77 statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych
78 do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów.
79 Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF,
80 PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF,
81 Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać
82 obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje
83 formaty takie jak DICOM.
84
85 Ten pakiet zawiera narzędzia oparte na bibliotece libvips.
86
87 %package -n libvips
88 Summary:        VIPS image processing library
89 Summary(pl.UTF-8):      Biblioteka przetwarzania obrazów VIPS
90 Group:          Libraries
91 Requires:       ImageMagick-libs >= 1:6.2.4.0
92 Requires:       OpenEXR >= 1.2.2
93 Requires:       cairo >= 1.2
94 Requires:       glib2 >= 1:2.48
95 Requires:       libexif >= 0.6
96 Requires:       libgsf >= 1.14.31
97 Requires:       libpng >= 2:1.2.9
98 Requires:       librsvg >= 2.34
99 Requires:       libtiff >= 4
100 Requires:       libwebp >= 0.5.0
101 Requires:       openslide >= 3.4.0
102 Requires:       orc >= 0.4.11
103 Requires:       poppler-glib >= 0.16.0
104 Requires:       zlib >= 0.4
105
106 %description -n libvips
107 libvips is a demand-driven, horizontally threaded image processing
108 library. Compared to similar libraries, libvips runs quickly and uses
109 little memory.
110
111 It has around 300 operations covering arithmetic, histograms,
112 convolution, morphological operations, frequency filtering, colour,
113 resampling, statistics and others. It supports a large range of
114 numeric formats, from 8-bit int to 128-bit complex. Images can have
115 any number of bands. It supports a good range of image formats,
116 including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF,
117 SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also
118 load images via ImageMagick or GraphicsMagick, letting it load formats
119 like DICOM.
120
121 %description -n libvips
122 VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu
123 do innych, działa szybko i zużywa niewiele pamięci.
124
125 Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty,
126 operacje morfologiczne, filtry częstotliwościowe, kolory, resampling,
127 statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych
128 do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów.
129 Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF,
130 PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF,
131 Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać
132 obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje
133 formaty takie jak DICOM.
134
135 %package -n libvips-devel
136 Summary:        Header files for VIPS library
137 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki VIPS
138 Group:          Development/Libraries
139 Requires:       ImageMagick-devel >= 1:6.2.4.0
140 Requires:       OpenEXR-devel >= 1.2.2
141 Requires:       cairo-devel >= 1.2
142 Requires:       cfitsio-devel
143 Requires:       fftw3-devel >= 3.0.0
144 Requires:       glib2-devel >= 1:2.48
145 Requires:       lcms2-devel >= 2
146 Requires:       libexif-devel >= 0.6
147 Requires:       libgsf-devel >= 1.14.31
148 Requires:       libimagequant-devel
149 Requires:       libjpeg-devel
150 Requires:       libpng-devel >= 2:1.2.9
151 Requires:       librsvg-devel >= 2.34
152 Requires:       libtiff-devel >= 4
153 Requires:       libwebp-devel >= 0.5.0
154 Requires:       matio-devel
155 Requires:       openslide-devel >= 3.4.0
156 Requires:       orc-devel >= 0.4.11
157 Requires:       pango-devel
158 Requires:       poppler-glib-devel >= 0.16.0
159 Requires:       zlib-devel >= 0.4
160 Obsoletes:      vips-devel < 8.7
161
162 %description -n libvips-devel
163 Header files for VIPS library.
164
165 %description -n libvips-devel -l pl.UTF-8
166 Pliki nagłówkowe biblioteki VIPS.
167
168 %package -n libvips-static
169 Summary:        Static VIPS library
170 Summary(pl.UTF-8):      Statyczna biblioteka VIPS
171 Group:          Development/Libraries
172 Obsoletes:      vips-static < 8.7
173
174 %description -n libvips-static
175 Static VIPS library.
176
177 %description -n libvips-static -l pl.UTF-8
178 Statyczna biblioteka VIPS.
179
180 %package -n libvips-apidocs
181 Summary:        API documentation for VIPS library
182 Summary(pl.UTF-8):      Dokumentacja API biblioteki VIPS
183 Group:          Documentation
184
185 %description -n libvips-apidocs
186 API documentation for VIPS library, together with some general VIPS
187 documentation.
188
189 %description -n libvips-apidocs -l pl.UTF-8
190 Dokumentacja API biblioteki VIPS. Zawiera także trochę ogólnej
191 dokumentacji projektu VIPS.
192
193 %package -n libvips-cpp8
194 Summary:        C++ API for VIPS 8 image processing library
195 Summary(pl.UTF-8):      API C++ do biblioteki przetwarzania obrazów VIPS 8
196 Group:          Libraries
197 Requires:       libvips = %{version}-%{release}
198
199 %description -n libvips-cpp8
200 C++ API for VIPS 8 image processing library.
201
202 %description -n libvips-cpp8 -l pl.UTF-8
203 API C++ do biblioteki przetwarzania obrazów VIPS 8.
204
205 %package -n libvips-cpp8-devel
206 Summary:        C++ API for VIPS 8 image processing library - header files
207 Summary(pl.UTF-8):      API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe
208 Group:          Development/Libraries
209 Requires:       libvips-cpp8 = %{version}-%{release}
210 Requires:       libvips-devel = %{version}-%{release}
211
212 %description -n libvips-cpp8-devel
213 C++ API for VIPS 8 image processing library - header files.
214
215 %description -n libvips-cpp8-devel -l pl.UTF-8
216 API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe.
217
218 %package -n libvips-cpp8-static
219 Summary:        C++ API for VIPS 8 image processing library - static library
220 Summary(pl.UTF-8):      API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka statyczna
221 Group:          Development/Libraries
222 Requires:       libvips-cpp8-devel = %{version}-%{release}
223
224 %description -n libvips-cpp8-static
225 C++ API for VIPS 8 image processing library - static library.
226
227 %description -n libvips-cpp8-static -l pl.UTF-8
228 API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka
229 statyczna.
230
231 %prep
232 %setup -q -n libvips-%{version}
233
234 %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
235       tools/vipsprofile
236
237 %build
238 %{__gtkdocize} --docdir doc
239 %{__glib_gettextize}
240 %{__libtoolize}
241 %{__aclocal} -I m4
242 %{__autoconf}
243 %{__autoheader}
244 %{__automake}
245 %configure \
246         --enable-gtk-doc \
247         --enable-pyvips8 \
248         --with-html-dir=%{_gtkdocdir}
249 %{__make}
250
251 %install
252 rm -rf $RPM_BUILD_ROOT
253
254 %{__make} install \
255         DESTDIR=$RPM_BUILD_ROOT
256
257 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips-cpp.la
258 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips.la
259
260 #rm -r $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libvips
261
262 %py_postclean
263
264 %find_lang vips8.10 -o %{name}.lang
265
266 %clean
267 rm -rf $RPM_BUILD_ROOT
268
269 %post   -n libvips -p /sbin/ldconfig
270 %postun -n libvips -p /sbin/ldconfig
271
272 %post   -n libvips-cpp8 -p /sbin/ldconfig
273 %postun -n libvips-cpp8 -p /sbin/ldconfig
274
275 %files -f %{name}.lang
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_bindir}/batch_crop
278 %attr(755,root,root) %{_bindir}/batch_image_convert
279 %attr(755,root,root) %{_bindir}/batch_rubber_sheet
280 %attr(755,root,root) %{_bindir}/light_correct
281 %attr(755,root,root) %{_bindir}/shrink_width
282 %attr(755,root,root) %{_bindir}/vips
283 %attr(755,root,root) %{_bindir}/vips-8.10
284 %attr(755,root,root) %{_bindir}/vipsedit
285 %attr(755,root,root) %{_bindir}/vipsheader
286 %attr(755,root,root) %{_bindir}/vipsprofile
287 %attr(755,root,root) %{_bindir}/vipsthumbnail
288 %{_mandir}/man1/batch_crop.1*
289 %{_mandir}/man1/batch_image_convert.1*
290 %{_mandir}/man1/batch_rubber_sheet.1*
291 %{_mandir}/man1/light_correct.1*
292 %{_mandir}/man1/vips.1*
293 %{_mandir}/man1/vipsedit.1*
294 %{_mandir}/man1/vipsheader.1*
295 %{_mandir}/man1/vipsprofile.1*
296 %{_mandir}/man1/vipsthumbnail.1*
297
298 %files -n libvips
299 %defattr(644,root,root,755)
300 %doc AUTHORS ChangeLog NEWS README.md THANKS
301 %attr(755,root,root) %{_libdir}/libvips.so.*.*.*
302 %attr(755,root,root) %ghost %{_libdir}/libvips.so.42
303 %{_libdir}/girepository-1.0/Vips-8.0.typelib
304
305 %files -n libvips-devel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libvips.so
308 %dir %{_includedir}/vips
309 %{_includedir}/vips/almostdeprecated.h
310 %{_includedir}/vips/arithmetic.h
311 %{_includedir}/vips/basic.h
312 %{_includedir}/vips/buf.h
313 %{_includedir}/vips/cimg_funcs.h
314 %{_includedir}/vips/colour.h
315 %{_includedir}/vips/connection.h
316 %{_includedir}/vips/conversion.h
317 %{_includedir}/vips/convolution.h
318 %{_includedir}/vips/create.h
319 %{_includedir}/vips/dbuf.h
320 %{_includedir}/vips/debug.h
321 %{_includedir}/vips/deprecated.h
322 %{_includedir}/vips/dispatch.h
323 %{_includedir}/vips/draw.h
324 %{_includedir}/vips/enumtypes.h
325 %{_includedir}/vips/error.h
326 %{_includedir}/vips/foreign.h
327 %{_includedir}/vips/format.h
328 %{_includedir}/vips/freqfilt.h
329 %{_includedir}/vips/gate.h
330 %{_includedir}/vips/generate.h
331 %{_includedir}/vips/header.h
332 %{_includedir}/vips/histogram.h
333 %{_includedir}/vips/image.h
334 %{_includedir}/vips/interpolate.h
335 %{_includedir}/vips/intl.h
336 %{_includedir}/vips/mask.h
337 %{_includedir}/vips/memory.h
338 %{_includedir}/vips/morphology.h
339 %{_includedir}/vips/mosaicing.h
340 %{_includedir}/vips/object.h
341 %{_includedir}/vips/operation.h
342 %{_includedir}/vips/private.h
343 %{_includedir}/vips/rect.h
344 %{_includedir}/vips/region.h
345 %{_includedir}/vips/resample.h
346 %{_includedir}/vips/sbuf.h
347 %{_includedir}/vips/semaphore.h
348 %{_includedir}/vips/soname.h
349 %{_includedir}/vips/thread.h
350 %{_includedir}/vips/threadpool.h
351 %{_includedir}/vips/transform.h
352 %{_includedir}/vips/type.h
353 %{_includedir}/vips/util.h
354 %{_includedir}/vips/VConnection8.h
355 %{_includedir}/vips/vector.h
356 %{_includedir}/vips/version.h
357 %{_includedir}/vips/video.h
358 %{_includedir}/vips/vips7compat.h
359 %{_includedir}/vips/vips.h
360 %{_datadir}/gir-1.0/Vips-8.0.gir
361 %{_pkgconfigdir}/vips.pc
362
363 %files -n libvips-static
364 %defattr(644,root,root,755)
365 %{_libdir}/libvips.a
366
367 %files -n libvips-apidocs
368 %defattr(644,root,root,755)
369 %{_gtkdocdir}/libvips
370
371 %files -n libvips-cpp8
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/libvips-cpp.so.*.*.*
374 %attr(755,root,root) %ghost %{_libdir}/libvips-cpp.so.42
375
376 %files -n libvips-cpp8-devel
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/libvips-cpp.so
379 %{_includedir}/vips/VError8.h
380 %{_includedir}/vips/VImage8.h
381 %{_includedir}/vips/VInterpolate8.h
382 %{_includedir}/vips/vips-operators.h
383 %{_includedir}/vips/vips8
384 %{_pkgconfigdir}/vips-cpp.pc
385
386 %files -n libvips-cpp8-static
387 %defattr(644,root,root,755)
388 %{_libdir}/libvips-cpp.a
This page took 0.198335 seconds and 2 git commands to generate.