4 # - pdfium as an alternative for poppler
6 Summary: A fast image processing library with low memory needs
7 Summary(pl.UTF-8): Szybka biblioteka przetwarzania obrazów o małych wymaganiach pamięciowych
13 #Source0Download: https://github.com/jcupitt/libvips/releases/
14 Source0: https://github.com/jcupitt/libvips/archive/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: 091fa9adbd38f880c585de1265f71a4c
16 URL: http://jcupitt.github.io/libvips/
17 BuildRequires: ImageMagick-devel >= 1:6.2.4.0
18 BuildRequires: OpenEXR-devel >= 1.2.2
19 BuildRequires: autoconf >= 2.62
20 BuildRequires: automake >= 1.6
21 BuildRequires: bzip2-devel
22 BuildRequires: cairo-devel >= 1.2
23 BuildRequires: cfitsio-devel
24 BuildRequires: expat-devel >= 1.95
25 BuildRequires: fftw3-devel >= 3.0.0
26 BuildRequires: gettext-tools
27 BuildRequires: giflib-devel
28 BuildRequires: glib2-devel >= 1:2.48
29 BuildRequires: gobject-introspection-devel >= 1.30.0
30 BuildRequires: gtk-doc >= 1.14
31 BuildRequires: intltool
32 BuildRequires: lcms2-devel >= 2
33 BuildRequires: libexif-devel >= 0.6
34 BuildRequires: libgsf-devel >= 1.14.31
35 BuildRequires: libimagequant-devel
36 BuildRequires: libjpeg-devel
37 BuildRequires: libltdl-devel
38 BuildRequires: libpng-devel >= 2:1.2.9
39 BuildRequires: librsvg-devel >= 2.34
40 BuildRequires: libstdc++-devel
41 BuildRequires: libtiff-devel >= 4
42 BuildRequires: libtool
43 BuildRequires: libwebp-devel >= 0.5.0
44 BuildRequires: libxml2-devel
45 BuildRequires: matio-devel
46 BuildRequires: orc-devel >= 0.4.11
47 BuildRequires: pango-devel
48 BuildRequires: poppler-glib-devel >= 0.16.0
49 BuildRequires: pkgconfig
50 BuildRequires: python-devel >= 1:2.7
51 BuildRequires: python-pygobject3-devel >= 3.13.0
52 BuildRequires: rpm-pythonprov
53 BuildRequires: rpmbuild(find_lang) >= 1.32
54 BuildRequires: rpmbuild(macros) >= 1.714
55 BuildRequires: zlib-devel >= 0.4
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 libvips is a demand-driven, horizontally threaded image processing
60 library. Compared to similar libraries, libvips runs quickly and uses
63 It has around 300 operations covering arithmetic, histograms,
64 convolution, morphological operations, frequency filtering, colour,
65 resampling, statistics and others. It supports a large range of
66 numeric formats, from 8-bit int to 128-bit complex. Images can have
67 any number of bands. It supports a good range of image formats,
68 including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF,
69 SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also
70 load images via ImageMagick or GraphicsMagick, letting it load formats
73 This package contains utilities based on libvips library.
75 %description -l pl.UTF-8
76 VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu
77 do innych, działa szybko i zużywa niewiele pamięci.
79 Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty,
80 operacje morfologiczne, filtry częstotliwościowe, kolory, resampling,
81 statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych
82 do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów.
83 Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF,
84 PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF,
85 Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać
86 obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje
87 formaty takie jak DICOM.
89 Ten pakiet zawiera narzędzia oparte na bibliotece libvips.
92 Summary: VIPS image processing library
93 Summary(pl.UTF-8): Biblioteka przetwarzania obrazów VIPS
95 Requires: ImageMagick-libs >= 1:6.2.4.0
96 Requires: OpenEXR >= 1.2.2
97 Requires: cairo >= 1.2
98 Requires: glib2 >= 1:2.48
99 Requires: libexif >= 0.6
100 Requires: libgsf >= 1.14.31
101 Requires: libpng >= 2:1.2.9
102 Requires: librsvg >= 2.34
103 Requires: libtiff >= 4
104 Requires: libwebp-devel >= 0.5.0
105 Requires: orc >= 0.4.11
106 Requires: poppler-glib >= 0.16.0
107 Requires: zlib >= 0.4
109 %description -n libvips
110 libvips is a demand-driven, horizontally threaded image processing
111 library. Compared to similar libraries, libvips runs quickly and uses
114 It has around 300 operations covering arithmetic, histograms,
115 convolution, morphological operations, frequency filtering, colour,
116 resampling, statistics and others. It supports a large range of
117 numeric formats, from 8-bit int to 128-bit complex. Images can have
118 any number of bands. It supports a good range of image formats,
119 including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF,
120 SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also
121 load images via ImageMagick or GraphicsMagick, letting it load formats
124 %description -n libvips
125 VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu
126 do innych, działa szybko i zużywa niewiele pamięci.
128 Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty,
129 operacje morfologiczne, filtry częstotliwościowe, kolory, resampling,
130 statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych
131 do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów.
132 Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF,
133 PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF,
134 Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać
135 obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje
136 formaty takie jak DICOM.
138 %package -n libvips-devel
139 Summary: Header files for VIPS library
140 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki VIPS
141 Group: Development/Libraries
142 Requires: ImageMagick-devel >= 1:6.2.4.0
143 Requires: OpenEXR-devel >= 1.2.2
144 Requires: cairo-devel >= 1.2
145 Requires: cfitsio-devel
146 Requires: fftw3-devel >= 3.0.0
147 Requires: glib2-devel >= 1:2.48
148 Requires: lcms2-devel >= 2
149 Requires: libexif-devel >= 0.6
150 Requires: libgsf-devel >= 1.14.31
151 Requires: libimagequant-devel
152 Requires: libjpeg-devel
153 Requires: libpng-devel >= 2:1.2.9
154 Requires: librsvg-devel >= 2.34
155 Requires: libtiff-devel >= 4
156 Requires: libwebp-devel >= 0.5.0
157 Requires: matio-devel
158 Requires: orc-devel >= 0.4.11
159 Requires: pango-devel
160 Requires: poppler-glib-devel >= 0.16.0
161 Requires: zlib-devel >= 0.4
162 Obsoletes: vips-devel < 8.7
164 %description -n libvips-devel
165 Header files for VIPS library.
167 %description -n libvips-devel -l pl.UTF-8
168 Pliki nagłówkowe biblioteki VIPS.
170 %package -n libvips-static
171 Summary: Static VIPS library
172 Summary(pl.UTF-8): Statyczna biblioteka VIPS
173 Group: Development/Libraries
174 Obsoletes: vips-static < 8.7
176 %description -n libvips-static
179 %description -n libvips-static -l pl.UTF-8
180 Statyczna biblioteka VIPS.
182 %package -n libvips-apidocs
183 Summary: API documentation for VIPS library
184 Summary(pl.UTF-8): Dokumentacja API biblioteki VIPS
187 %description -n libvips-apidocs
188 API documentation for VIPS library, together with some general VIPS
191 %description -n libvips-apidocs -l pl.UTF-8
192 Dokumentacja API biblioteki VIPS. Zawiera także trochę ogólnej
193 dokumentacji projektu VIPS.
195 %package -n libvips-cpp7
196 Summary: Deprecated C++ API for VIPS image processing library
197 Summary(pl.UTF-8): Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS
199 Requires: libvips = %{version}-%{release}
201 %description -n libvips-cpp7
202 Deprecated C++ API for VIPS image processing library (for VIPS 7
205 %description -n libvips-cpp7 -l pl.UTF-8
206 Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS (dla
207 zachowania zgodności z VIPS 7).
209 %package -n libvips-cpp7-devel
210 Summary: Deprecated C++ API for VIPS image processing library - header files
211 Summary(pl.UTF-8): Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - pliki nagłówkowe
212 Group: Development/Libraries
213 Requires: libvips-cpp7 = %{version}-%{release}
214 Requires: libvips-devel = %{version}-%{release}
216 %description -n libvips-cpp7-devel
217 Deprecated C++ API for VIPS image processing library - header files.
219 %description -n libvips-cpp7-devel -l pl.UTF-8
220 Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - pliki
223 %package -n libvips-cpp7-static
224 Summary: Deprecated C++ API for VIPS image processing library - static library
225 Summary(pl.UTF-8): Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - biblioteka statyczna
226 Group: Development/Libraries
227 Requires: libvips-cpp7-devel = %{version}-%{release}
229 %description -n libvips-cpp7-static
230 Deprecated C++ API for VIPS image processing library - static library.
232 %description -n libvips-cpp7-static -l pl.UTF-8
233 Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS -
234 biblioteka statyczna.
236 %package -n libvips-cpp8
237 Summary: C++ API for VIPS 8 image processing library
238 Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8
240 Requires: libvips = %{version}-%{release}
242 %description -n libvips-cpp8
243 C++ API for VIPS 8 image processing library.
245 %description -n libvips-cpp8 -l pl.UTF-8
246 API C++ do biblioteki przetwarzania obrazów VIPS 8.
248 %package -n libvips-cpp8-devel
249 Summary: C++ API for VIPS 8 image processing library - header files
250 Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe
251 Group: Development/Libraries
252 Requires: libvips-cpp8 = %{version}-%{release}
253 Requires: libvips-devel = %{version}-%{release}
255 %description -n libvips-cpp8-devel
256 C++ API for VIPS 8 image processing library - header files.
258 %description -n libvips-cpp8-devel -l pl.UTF-8
259 API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe.
261 %package -n libvips-cpp8-static
262 Summary: C++ API for VIPS 8 image processing library - static library
263 Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka statyczna
264 Group: Development/Libraries
265 Requires: libvips-cpp8-devel = %{version}-%{release}
267 %description -n libvips-cpp8-static
268 C++ API for VIPS 8 image processing library - static library.
270 %description -n libvips-cpp8-static -l pl.UTF-8
271 API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka
274 %package -n python-vipsCC
275 Summary: Deprecated Python interface for VIPS image processing library
276 Summary(pl.UTF-8): Przestarzały interfejs Pythona do biblioteki przetwarzania obrazów VIPS
277 Group: Libraries/Python
278 Requires: libvips-cpp7 = %{version}-%{release}
280 %description -n python-vipsCC
281 Deprecated Python interface for VIPS image processing library (for
282 VIPS 7 compatibility).
284 %description -n python-vipsCC -l pl.UTF-8
285 Przestarzały interfejs Pythona do biblioteki przetwarzania obrazów
286 VIPS (dla zachowania zgodności z VIPS 7).
288 %package -n python-vips
289 Summary: Python interface for VIPS image processing library
290 Summary(pl.UTF-8): Interfejs Pythona do biblioteki przetwarzania obrazów VIPS
291 Group: Libraries/Python
292 Requires: gobject-introspection >= 1.30.0
293 Requires: libvips = %{version}-%{release}
294 Requires: python-pygobject3 >= 3.13.0
296 %description -n python-vips
297 Python interface for VIPS image processing library.
299 %description -n python-vips -l pl.UTF-8
300 Interfejs Pythona do biblioteki przetwarzania obrazów VIPS.
303 %setup -q -n libvips-%{version}
306 %{__gtkdocize} --docdir doc
318 --with-html-dir=%{_gtkdocdir}
322 rm -rf $RPM_BUILD_ROOT
325 DESTDIR=$RPM_BUILD_ROOT
327 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips-cpp.la
328 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips.la
329 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvipsCC.la
330 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/vipsCC/*.la
331 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/vipsCC/*.a
333 #rm -r $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libvips
337 %find_lang vips8.7 -o %{name}.lang
340 rm -rf $RPM_BUILD_ROOT
342 %post -n libvips -p /sbin/ldconfig
343 %postun -n libvips -p /sbin/ldconfig
345 %post -n libvips-cpp7 -p /sbin/ldconfig
346 %postun -n libvips-cpp7 -p /sbin/ldconfig
348 %post -n libvips-cpp8 -p /sbin/ldconfig
349 %postun -n libvips-cpp8 -p /sbin/ldconfig
351 %files -f %{name}.lang
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/batch_crop
354 %attr(755,root,root) %{_bindir}/batch_image_convert
355 %attr(755,root,root) %{_bindir}/batch_rubber_sheet
356 %attr(755,root,root) %{_bindir}/light_correct
357 %attr(755,root,root) %{_bindir}/shrink_width
358 %attr(755,root,root) %{_bindir}/vips
359 %attr(755,root,root) %{_bindir}/vips-8.7
360 %attr(755,root,root) %{_bindir}/vipsedit
361 %attr(755,root,root) %{_bindir}/vipsheader
362 %attr(755,root,root) %{_bindir}/vipsprofile
363 %attr(755,root,root) %{_bindir}/vipsthumbnail
364 %{_mandir}/man1/batch_crop.1*
365 %{_mandir}/man1/batch_image_convert.1*
366 %{_mandir}/man1/batch_rubber_sheet.1*
367 %{_mandir}/man1/light_correct.1*
368 %{_mandir}/man1/vips.1*
369 %{_mandir}/man1/vipsedit.1*
370 %{_mandir}/man1/vipsheader.1*
371 %{_mandir}/man1/vipsprofile.1*
372 %{_mandir}/man1/vipsthumbnail.1*
375 %defattr(644,root,root,755)
376 %doc AUTHORS ChangeLog NEWS README.md THANKS TODO
377 %attr(755,root,root) %{_libdir}/libvips.so.*.*.*
378 %attr(755,root,root) %ghost %{_libdir}/libvips.so.42
379 %{_libdir}/girepository-1.0/Vips-8.0.typelib
381 %files -n libvips-devel
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libvips.so
384 %dir %{_includedir}/vips
385 %{_includedir}/vips/almostdeprecated.h
386 %{_includedir}/vips/arithmetic.h
387 %{_includedir}/vips/basic.h
388 %{_includedir}/vips/buf.h
389 %{_includedir}/vips/cimg_funcs.h
390 %{_includedir}/vips/colour.h
391 %{_includedir}/vips/conversion.h
392 %{_includedir}/vips/convolution.h
393 %{_includedir}/vips/create.h
394 %{_includedir}/vips/dbuf.h
395 %{_includedir}/vips/debug.h
396 %{_includedir}/vips/deprecated.h
397 %{_includedir}/vips/dispatch.h
398 %{_includedir}/vips/draw.h
399 %{_includedir}/vips/enumtypes.h
400 %{_includedir}/vips/error.h
401 %{_includedir}/vips/foreign.h
402 %{_includedir}/vips/format.h
403 %{_includedir}/vips/freqfilt.h
404 %{_includedir}/vips/gate.h
405 %{_includedir}/vips/generate.h
406 %{_includedir}/vips/header.h
407 %{_includedir}/vips/histogram.h
408 %{_includedir}/vips/image.h
409 %{_includedir}/vips/interpolate.h
410 %{_includedir}/vips/intl.h
411 %{_includedir}/vips/mask.h
412 %{_includedir}/vips/memory.h
413 %{_includedir}/vips/morphology.h
414 %{_includedir}/vips/mosaicing.h
415 %{_includedir}/vips/object.h
416 %{_includedir}/vips/operation.h
417 %{_includedir}/vips/private.h
418 %{_includedir}/vips/rect.h
419 %{_includedir}/vips/region.h
420 %{_includedir}/vips/resample.h
421 %{_includedir}/vips/semaphore.h
422 %{_includedir}/vips/soname.h
423 %{_includedir}/vips/thread.h
424 %{_includedir}/vips/threadpool.h
425 %{_includedir}/vips/transform.h
426 %{_includedir}/vips/type.h
427 %{_includedir}/vips/util.h
428 %{_includedir}/vips/vector.h
429 %{_includedir}/vips/version.h
430 %{_includedir}/vips/video.h
431 %{_includedir}/vips/vips.h
432 %{_includedir}/vips/vips7compat.h
433 %{_datadir}/gir-1.0/Vips-8.0.gir
434 %{_pkgconfigdir}/vips.pc
436 %files -n libvips-static
437 %defattr(644,root,root,755)
440 %files -n libvips-apidocs
441 %defattr(644,root,root,755)
442 %{_gtkdocdir}/libvips
444 %files -n libvips-cpp7
445 %defattr(644,root,root,755)
446 %attr(755,root,root) %{_libdir}/libvipsCC.so.*.*.*
447 %attr(755,root,root) %ghost %{_libdir}/libvipsCC.so.42
449 %files -n libvips-cpp7-devel
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/libvipsCC.so
452 %{_includedir}/vips/VDisplay.h
453 %{_includedir}/vips/VError.h
454 %{_includedir}/vips/VImage.h
455 %{_includedir}/vips/VMask.h
456 %{_includedir}/vips/vipsc++.h
457 %{_includedir}/vips/vipscpp.h
458 %{_includedir}/vips/vips
459 %{_pkgconfigdir}/vipsCC.pc
461 %files -n libvips-cpp7-static
462 %defattr(644,root,root,755)
463 %{_libdir}/libvipsCC.a
465 %files -n libvips-cpp8
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_libdir}/libvips-cpp.so.*.*.*
468 %attr(755,root,root) %ghost %{_libdir}/libvips-cpp.so.42
470 %files -n libvips-cpp8-devel
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_libdir}/libvips-cpp.so
473 %{_includedir}/vips/VError8.h
474 %{_includedir}/vips/VImage8.h
475 %{_includedir}/vips/VInterpolate8.h
476 %{_includedir}/vips/vips-operators.h
477 %{_includedir}/vips/vips8
478 %{_pkgconfigdir}/vips-cpp.pc
480 %files -n libvips-cpp8-static
481 %defattr(644,root,root,755)
482 %{_libdir}/libvips-cpp.a
484 %files -n python-vipsCC
485 %defattr(644,root,root,755)
486 %dir %{py_sitedir}/vipsCC
487 %{py_sitedir}/vipsCC/*.py[co]
488 %attr(755,root,root) %{py_sitedir}/vipsCC/vdisplaymodule.so
489 %attr(755,root,root) %{py_sitedir}/vipsCC/verrormodule.so
490 %attr(755,root,root) %{py_sitedir}/vipsCC/vimagemodule.so
491 %attr(755,root,root) %{py_sitedir}/vipsCC/vmaskmodule.so
493 %files -n python-vips
494 %defattr(644,root,root,755)
495 %{py_sitedir}/gi/overrides/Vips.py[co]