2 # - pdfium>=4200 as an alternative for poppler?
5 %bcond_with libspng # libspng for PNG read/write support nstead of libpng
7 Summary: A fast image processing library with low memory needs
8 Summary(pl.UTF-8): Szybka, mająca małe wymagania pamięciowe biblioteka przetwarzania obrazów
14 #Source0Download: https://github.com/libvips/libvips/tags
15 Source0: https://github.com/libvips/libvips/archive/v%{version}/libvips-%{version}.tar.gz
16 # Source0-md5: a1d62eb12b50d5e2ed94c95d6322f247
17 URL: https://www.libvips.org/
18 BuildRequires: ImageMagick-devel >= 1:7.0
19 BuildRequires: OpenEXR-devel >= 1.2.2
20 BuildRequires: bzip2-devel
21 BuildRequires: cairo-devel >= 1.2
22 BuildRequires: cfitsio-devel
23 BuildRequires: cgif-devel >= 0.2.0
24 BuildRequires: doxygen
25 BuildRequires: expat-devel >= 1.95
26 BuildRequires: fftw3-devel >= 3.0.0
27 BuildRequires: fontconfig-devel
28 BuildRequires: gettext-tools
29 BuildRequires: giflib-devel
30 BuildRequires: glib2-devel >= 1:2.62
31 BuildRequires: gobject-introspection-devel >= 1.30.0
32 BuildRequires: gtk-doc >= 1.14
33 BuildRequires: lcms2-devel >= 2
34 BuildRequires: libexif-devel >= 0.6.23
35 BuildRequires: libgsf-devel >= 1.14.31
36 BuildRequires: libheif-devel >= 1.7.0
38 BuildRequires: libimagequant-devel
39 BuildRequires: libjpeg-devel
40 BuildRequires: libjxl-devel >= 0.7
41 BuildRequires: libltdl-devel
42 %{!?with_libspng:BuildRequires: libpng-devel >= 2:1.2.9}
43 BuildRequires: librsvg-devel >= 2.46
44 %{?with_libspng:BuildRequires: libspng >= 0.7}
45 BuildRequires: libstdc++-devel
46 BuildRequires: libtiff-devel >= 4.0.10
47 BuildRequires: libwebp-devel >= 0.6
48 BuildRequires: libxml2-devel
49 BuildRequires: matio-devel
50 BuildRequires: meson >= 0.55
51 BuildRequires: nifticlib-devel
52 BuildRequires: ninja >= 1.5
53 BuildRequires: openjpeg2-devel >= 2.4
54 BuildRequires: openslide-devel >= 3.4.0
55 BuildRequires: orc-devel >= 0.4.31
56 BuildRequires: pango-devel >= 1:1.32.6
57 BuildRequires: poppler-glib-devel >= 0.16.0
58 BuildRequires: pkgconfig
59 BuildRequires: rpm-build >= 4.6
60 BuildRequires: rpmbuild(find_lang) >= 1.32
61 BuildRequires: rpmbuild(macros) >= 1.736
62 BuildRequires: zlib-devel >= 0.4
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 libvips is a demand-driven, horizontally threaded image processing
67 library. Compared to similar libraries, libvips runs quickly and uses
70 It has around 300 operations covering arithmetic, histograms,
71 convolution, morphological operations, frequency filtering, colour,
72 resampling, statistics and others. It supports a large range of
73 numeric formats, from 8-bit int to 128-bit complex. Images can have
74 any number of bands. It supports a good range of image formats,
75 including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF,
76 SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also
77 load images via ImageMagick or GraphicsMagick, letting it load formats
80 This package contains utilities based on libvips library.
82 %description -l pl.UTF-8
83 VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu
84 do innych, działa szybko i zużywa niewiele pamięci.
86 Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty,
87 operacje morfologiczne, filtry częstotliwościowe, kolory, resampling,
88 statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych
89 do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów.
90 Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF,
91 PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF,
92 Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać
93 obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje
94 formaty takie jak DICOM.
96 Ten pakiet zawiera narzędzia oparte na bibliotece libvips.
99 Summary: VIPS image processing library
100 Summary(pl.UTF-8): Biblioteka przetwarzania obrazów VIPS
102 Requires: ImageMagick-libs >= 1:7.0
103 Requires: OpenEXR >= 1.2.2
104 Requires: cairo >= 1.2
105 Requires: cgif >= 0.2.0
106 Requires: glib2 >= 1:2.62
107 Requires: libexif >= 0.6.23
108 Requires: libgsf >= 1.14.31
109 Requires: libheif >= 1.7.0
110 Requires: libjxl >= 0.7
111 %{!?with_libspng:Requires: libpng >= 2:1.2.9}
112 Requires: librsvg >= 2.46
113 %{?with_libspng:Requires: libspng >= 0.7}
114 Requires: libtiff >= 4.0.10
115 Requires: libwebp >= 0.6
116 Requires: openjpeg2 >= 2.4
117 Requires: openslide >= 3.4.0
118 Requires: orc >= 0.4.31
119 Requires: pango >= 1:1.32.6
120 Requires: poppler-glib >= 0.16.0
121 Requires: zlib >= 0.4
123 %description -n libvips
124 libvips is a demand-driven, horizontally threaded image processing
125 library. Compared to similar libraries, libvips runs quickly and uses
128 It has around 300 operations covering arithmetic, histograms,
129 convolution, morphological operations, frequency filtering, colour,
130 resampling, statistics and others. It supports a large range of
131 numeric formats, from 8-bit int to 128-bit complex. Images can have
132 any number of bands. It supports a good range of image formats,
133 including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF,
134 SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also
135 load images via ImageMagick or GraphicsMagick, letting it load formats
138 %description -n libvips -l pl.UTF-8
139 VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu
140 do innych, działa szybko i zużywa niewiele pamięci.
142 Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty,
143 operacje morfologiczne, filtry częstotliwościowe, kolory, resampling,
144 statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych
145 do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów.
146 Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF,
147 PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF,
148 Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać
149 obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje
150 formaty takie jak DICOM.
152 %package -n libvips-devel
153 Summary: Header files for VIPS library
154 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki VIPS
155 Group: Development/Libraries
156 Requires: ImageMagick-devel >= 1:7.0
157 Requires: OpenEXR-devel >= 1.2.2
158 Requires: cairo-devel >= 1.2
159 Requires: cfitsio-devel
160 Requires: cgif-devel >= 0.2.0
161 Requires: expat-devel >= 1.95
162 Requires: fftw3-devel >= 3.0.0
163 Requires: fontconfig-devel
164 Requires: glib2-devel >= 1:2.62
165 Requires: lcms2-devel >= 2
166 Requires: libexif-devel >= 0.6.23
167 Requires: libgsf-devel >= 1.14.31
168 Requires: libheif-devel >= 1.7.0
169 Requires: libimagequant-devel
170 Requires: libjpeg-devel
171 Requires: libjxl-devel >= 0.7
172 %{!?with_libspng:Requires: libpng-devel >= 2:1.2.9}
173 Requires: librsvg-devel >= 2.46
174 %{?with_libspng:Requires: libspng-devel >= 0.7}
175 Requires: libtiff-devel >= 4.0.10
176 Requires: libwebp-devel >= 0.6
177 Requires: matio-devel
178 Requires: openjpeg2-devel >= 2.4
179 Requires: openslide-devel >= 3.4.0
180 Requires: orc-devel >= 0.4.31
181 Requires: pango-devel >= 1:1.32.6
182 Requires: poppler-glib-devel >= 0.16.0
183 Requires: zlib-devel >= 0.4
184 Obsoletes: vips-devel < 8.7
186 %description -n libvips-devel
187 Header files for VIPS library.
189 %description -n libvips-devel -l pl.UTF-8
190 Pliki nagłówkowe biblioteki VIPS.
192 %package -n libvips-static
193 Summary: Static VIPS library
194 Summary(pl.UTF-8): Statyczna biblioteka VIPS
195 Group: Development/Libraries
196 Obsoletes: vips-static < 8.7
198 %description -n libvips-static
201 %description -n libvips-static -l pl.UTF-8
202 Statyczna biblioteka VIPS.
204 %package -n vala-libvips
205 Summary: Vala API for VIPS library
206 Summary(pl.UTF-8): API języka Vala do biblioteki VIPS
207 Group: Development/Libraries
208 Requires: libvips-devel = %{version}-%{release}
211 %description -n vala-libvips
212 Vala API for VIPS library.
214 %description -n vala-libvips -l pl.UTF-8
215 API języka Vala do biblioteki VIPS.
217 %package -n libvips-apidocs
218 Summary: API documentation for VIPS library
219 Summary(pl.UTF-8): Dokumentacja API biblioteki VIPS
223 %description -n libvips-apidocs
224 API documentation for VIPS library, together with some general VIPS
227 %description -n libvips-apidocs -l pl.UTF-8
228 Dokumentacja API biblioteki VIPS. Zawiera także trochę ogólnej
229 dokumentacji projektu VIPS.
231 %package -n libvips-cpp8
232 Summary: C++ API for VIPS 8 image processing library
233 Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8
235 Requires: libvips = %{version}-%{release}
237 %description -n libvips-cpp8
238 C++ API for VIPS 8 image processing library.
240 %description -n libvips-cpp8 -l pl.UTF-8
241 API C++ do biblioteki przetwarzania obrazów VIPS 8.
243 %package -n libvips-cpp8-devel
244 Summary: C++ API for VIPS 8 image processing library - header files
245 Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe
246 Group: Development/Libraries
247 Requires: libvips-cpp8 = %{version}-%{release}
248 Requires: libvips-devel = %{version}-%{release}
250 %description -n libvips-cpp8-devel
251 C++ API for VIPS 8 image processing library - header files.
253 %description -n libvips-cpp8-devel -l pl.UTF-8
254 API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe.
256 %package -n libvips-cpp8-static
257 Summary: C++ API for VIPS 8 image processing library - static library
258 Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka statyczna
259 Group: Development/Libraries
260 Requires: libvips-cpp8-devel = %{version}-%{release}
262 %description -n libvips-cpp8-static
263 C++ API for VIPS 8 image processing library - static library.
265 %description -n libvips-cpp8-static -l pl.UTF-8
266 API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka
269 %package -n libvips-cpp8-apidocs
270 Summary: C++ API documentation for VIPS 8 library
271 Summary(pl.UTF-8): Dokumentacja API C++ biblioteki VIPS 8
275 %description -n libvips-cpp8-apidocs
276 C++ API documentation for VIPS 8 library.
278 %description -n libvips-cpp8-apidocs -l pl.UTF-8
279 Dokumentacja API C++ biblioteki VIPS 8.
282 %setup -q -n libvips-%{version}
284 # it seems to support both python2/python3, prefer the latter
285 %{__sed} -i -e '1s,/usr/bin/python$,%{__python3},' \
292 %{!?with_libspng:-Dspng=disabled} \
295 %ninja_build -C build
298 rm -rf $RPM_BUILD_ROOT
300 %ninja_install -C build
302 # packaged as %doc in libvips-cpp8-apidocs
303 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/vips-doc/html
305 %find_lang vips8.14 -o %{name}.lang
308 rm -rf $RPM_BUILD_ROOT
310 %post -n libvips -p /sbin/ldconfig
311 %postun -n libvips -p /sbin/ldconfig
313 %post -n libvips-cpp8 -p /sbin/ldconfig
314 %postun -n libvips-cpp8 -p /sbin/ldconfig
316 %files -f %{name}.lang
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_bindir}/vips
319 %attr(755,root,root) %{_bindir}/vipsedit
320 %attr(755,root,root) %{_bindir}/vipsheader
321 %attr(755,root,root) %{_bindir}/vipsprofile
322 %attr(755,root,root) %{_bindir}/vipsthumbnail
323 %{_mandir}/man1/vips.1*
324 %{_mandir}/man1/vipsedit.1*
325 %{_mandir}/man1/vipsheader.1*
326 %{_mandir}/man1/vipsprofile.1*
327 %{_mandir}/man1/vipsthumbnail.1*
330 %defattr(644,root,root,755)
331 %doc ChangeLog README.md
332 %attr(755,root,root) %{_libdir}/libvips.so.*.*.*
333 %attr(755,root,root) %ghost %{_libdir}/libvips.so.42
334 %{_libdir}/girepository-1.0/Vips-8.0.typelib
336 %files -n libvips-devel
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libvips.so
339 %dir %{_includedir}/vips
340 %{_includedir}/vips/almostdeprecated.h
341 %{_includedir}/vips/arithmetic.h
342 %{_includedir}/vips/basic.h
343 %{_includedir}/vips/buf.h
344 %{_includedir}/vips/colour.h
345 %{_includedir}/vips/connection.h
346 %{_includedir}/vips/conversion.h
347 %{_includedir}/vips/convolution.h
348 %{_includedir}/vips/create.h
349 %{_includedir}/vips/dbuf.h
350 %{_includedir}/vips/debug.h
351 %{_includedir}/vips/deprecated.h
352 %{_includedir}/vips/dispatch.h
353 %{_includedir}/vips/draw.h
354 %{_includedir}/vips/enumtypes.h
355 %{_includedir}/vips/error.h
356 %{_includedir}/vips/foreign.h
357 %{_includedir}/vips/format.h
358 %{_includedir}/vips/freqfilt.h
359 %{_includedir}/vips/gate.h
360 %{_includedir}/vips/generate.h
361 %{_includedir}/vips/header.h
362 %{_includedir}/vips/histogram.h
363 %{_includedir}/vips/image.h
364 %{_includedir}/vips/interpolate.h
365 %{_includedir}/vips/intl.h
366 %{_includedir}/vips/mask.h
367 %{_includedir}/vips/memory.h
368 %{_includedir}/vips/morphology.h
369 %{_includedir}/vips/mosaicing.h
370 %{_includedir}/vips/object.h
371 %{_includedir}/vips/operation.h
372 %{_includedir}/vips/private.h
373 %{_includedir}/vips/rect.h
374 %{_includedir}/vips/region.h
375 %{_includedir}/vips/resample.h
376 %{_includedir}/vips/sbuf.h
377 %{_includedir}/vips/semaphore.h
378 %{_includedir}/vips/thread.h
379 %{_includedir}/vips/threadpool.h
380 %{_includedir}/vips/transform.h
381 %{_includedir}/vips/type.h
382 %{_includedir}/vips/util.h
383 %{_includedir}/vips/vector.h
384 %{_includedir}/vips/version.h
385 %{_includedir}/vips/video.h
386 %{_includedir}/vips/vips7compat.h
387 %{_includedir}/vips/vips.h
388 %{_datadir}/gir-1.0/Vips-8.0.gir
389 %{_pkgconfigdir}/vips.pc
391 %files -n libvips-static
392 %defattr(644,root,root,755)
395 %files -n vala-libvips
396 %defattr(644,root,root,755)
397 %{_datadir}/vala/vapi/vips.deps
398 %{_datadir}/vala/vapi/vips.vapi
400 %files -n libvips-apidocs
401 %defattr(644,root,root,755)
402 %{_gtkdocdir}/libvips
404 %files -n libvips-cpp8
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/libvips-cpp.so.*.*.*
407 %attr(755,root,root) %ghost %{_libdir}/libvips-cpp.so.42
409 %files -n libvips-cpp8-devel
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_libdir}/libvips-cpp.so
412 %{_includedir}/vips/VConnection8.h
413 %{_includedir}/vips/VError8.h
414 %{_includedir}/vips/VImage8.h
415 %{_includedir}/vips/VInterpolate8.h
416 %{_includedir}/vips/VRegion8.h
417 %{_includedir}/vips/vips8
418 %{_pkgconfigdir}/vips-cpp.pc
420 %files -n libvips-cpp8-static
421 %defattr(644,root,root,755)
422 %{_libdir}/libvips-cpp.a
424 %files -n libvips-cpp8-apidocs
425 %defattr(644,root,root,755)
426 %doc build/cplusplus/html/{search,*.css,*.html,*.js,*.png}