]> git.pld-linux.org Git - packages/vips.git/blob - vips.spec
282b1b338ade580b0ae6f18a86ce00ec4bf8374d
[packages/vips.git] / vips.spec
1 # TODO:
2 # - pdfium as an alternative for poppler?
3 # - python3-vips
4 Summary:        A fast image processing library with low memory needs
5 Summary(pl.UTF-8):      Szybka biblioteka przetwarzania obrazów o małych wymaganiach pamięciowych
6 Name:           vips
7 Version:        8.7.0
8 Release:        1
9 License:        LGPL v2+
10 Group:          Libraries
11 #Source0Download: https://github.com/jcupitt/libvips/releases/
12 Source0:        https://github.com/jcupitt/libvips/archive/v%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  091fa9adbd38f880c585de1265f71a4c
14 URL:            http://jcupitt.github.io/libvips/
15 BuildRequires:  ImageMagick-devel >= 1:6.2.4.0
16 BuildRequires:  OpenEXR-devel >= 1.2.2
17 BuildRequires:  autoconf >= 2.62
18 BuildRequires:  automake >= 1.6
19 BuildRequires:  bzip2-devel
20 BuildRequires:  cairo-devel >= 1.2
21 BuildRequires:  cfitsio-devel
22 BuildRequires:  expat-devel >= 1.95
23 BuildRequires:  fftw3-devel >= 3.0.0
24 BuildRequires:  gettext-tools
25 BuildRequires:  giflib-devel
26 BuildRequires:  glib2-devel >= 1:2.48
27 BuildRequires:  gobject-introspection-devel >= 1.30.0
28 BuildRequires:  gtk-doc >= 1.14
29 BuildRequires:  lcms2-devel >= 2
30 BuildRequires:  libexif-devel >= 0.6
31 BuildRequires:  libgsf-devel >= 1.14.31
32 BuildRequires:  libimagequant-devel
33 BuildRequires:  libjpeg-devel
34 BuildRequires:  libltdl-devel
35 BuildRequires:  libpng-devel >= 2:1.2.9
36 BuildRequires:  librsvg-devel >= 2.34
37 BuildRequires:  libstdc++-devel
38 BuildRequires:  libtiff-devel >= 4
39 BuildRequires:  libtool
40 BuildRequires:  libwebp-devel >= 0.5.0
41 BuildRequires:  libxml2-devel
42 BuildRequires:  matio-devel
43 BuildRequires:  nifticlib-devel
44 BuildRequires:  openslide-devel >= 3.4.0
45 BuildRequires:  orc-devel >= 0.4.11
46 BuildRequires:  pango-devel
47 BuildRequires:  poppler-glib-devel >= 0.16.0
48 BuildRequires:  pkgconfig
49 BuildRequires:  python-devel >= 1:2.7
50 BuildRequires:  python-pygobject3-devel >= 3.13.0
51 BuildRequires:  rpm-pythonprov
52 BuildRequires:  rpmbuild(find_lang) >= 1.32
53 BuildRequires:  rpmbuild(macros) >= 1.714
54 BuildRequires:  zlib-devel >= 0.4
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 libvips is a demand-driven, horizontally threaded image processing
59 library. Compared to similar libraries, libvips runs quickly and uses
60 little memory.
61
62 It has around 300 operations covering arithmetic, histograms,
63 convolution, morphological operations, frequency filtering, colour,
64 resampling, statistics and others. It supports a large range of
65 numeric formats, from 8-bit int to 128-bit complex. Images can have
66 any number of bands. It supports a good range of image formats,
67 including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF,
68 SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also
69 load images via ImageMagick or GraphicsMagick, letting it load formats
70 like DICOM.
71
72 This package contains utilities based on libvips library.
73
74 %description -l pl.UTF-8
75 VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu
76 do innych, działa szybko i zużywa niewiele pamięci.
77
78 Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty,
79 operacje morfologiczne, filtry częstotliwościowe, kolory, resampling,
80 statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych
81 do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów.
82 Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF,
83 PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF,
84 Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać
85 obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje
86 formaty takie jak DICOM.
87
88 Ten pakiet zawiera narzędzia oparte na bibliotece libvips.
89
90 %package -n libvips
91 Summary:        VIPS image processing library
92 Summary(pl.UTF-8):      Biblioteka przetwarzania obrazów VIPS
93 Group:          Libraries
94 Requires:       ImageMagick-libs >= 1:6.2.4.0
95 Requires:       OpenEXR >= 1.2.2
96 Requires:       cairo >= 1.2
97 Requires:       glib2 >= 1:2.48
98 Requires:       libexif >= 0.6
99 Requires:       libgsf >= 1.14.31
100 Requires:       libpng >= 2:1.2.9
101 Requires:       librsvg >= 2.34
102 Requires:       libtiff >= 4
103 Requires:       libwebp >= 0.5.0
104 Requires:       openslide >= 3.4.0
105 Requires:       orc >= 0.4.11
106 Requires:       poppler-glib >= 0.16.0
107 Requires:       zlib >= 0.4
108
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
112 little memory.
113
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
122 like DICOM.
123
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.
127
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.
137
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:       openslide-devel >= 3.4.0
159 Requires:       orc-devel >= 0.4.11
160 Requires:       pango-devel
161 Requires:       poppler-glib-devel >= 0.16.0
162 Requires:       zlib-devel >= 0.4
163 Obsoletes:      vips-devel < 8.7
164
165 %description -n libvips-devel
166 Header files for VIPS library.
167
168 %description -n libvips-devel -l pl.UTF-8
169 Pliki nagłówkowe biblioteki VIPS.
170
171 %package -n libvips-static
172 Summary:        Static VIPS library
173 Summary(pl.UTF-8):      Statyczna biblioteka VIPS
174 Group:          Development/Libraries
175 Obsoletes:      vips-static < 8.7
176
177 %description -n libvips-static
178 Static VIPS library.
179
180 %description -n libvips-static -l pl.UTF-8
181 Statyczna biblioteka VIPS.
182
183 %package -n libvips-apidocs
184 Summary:        API documentation for VIPS library
185 Summary(pl.UTF-8):      Dokumentacja API biblioteki VIPS
186 Group:          Documentation
187
188 %description -n libvips-apidocs
189 API documentation for VIPS library, together with some general VIPS
190 documentation.
191
192 %description -n libvips-apidocs -l pl.UTF-8
193 Dokumentacja API biblioteki VIPS. Zawiera także trochę ogólnej
194 dokumentacji projektu VIPS.
195
196 %package -n libvips-cpp7
197 Summary:        Deprecated C++ API for VIPS image processing library
198 Summary(pl.UTF-8):      Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS
199 Group:          Libraries
200 Requires:       libvips = %{version}-%{release}
201
202 %description -n libvips-cpp7
203 Deprecated C++ API for VIPS image processing library (for VIPS 7
204 compatibility).
205
206 %description -n libvips-cpp7 -l pl.UTF-8
207 Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS (dla
208 zachowania zgodności z VIPS 7).
209
210 %package -n libvips-cpp7-devel
211 Summary:        Deprecated C++ API for VIPS image processing library - header files
212 Summary(pl.UTF-8):      Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - pliki nagłówkowe
213 Group:          Development/Libraries
214 Requires:       libvips-cpp7 = %{version}-%{release}
215 Requires:       libvips-devel = %{version}-%{release}
216
217 %description -n libvips-cpp7-devel
218 Deprecated C++ API for VIPS image processing library - header files.
219
220 %description -n libvips-cpp7-devel -l pl.UTF-8
221 Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - pliki
222 nagłówkowe.
223
224 %package -n libvips-cpp7-static
225 Summary:        Deprecated C++ API for VIPS image processing library - static library
226 Summary(pl.UTF-8):      Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - biblioteka statyczna
227 Group:          Development/Libraries
228 Requires:       libvips-cpp7-devel = %{version}-%{release}
229
230 %description -n libvips-cpp7-static
231 Deprecated C++ API for VIPS image processing library - static library.
232
233 %description -n libvips-cpp7-static -l pl.UTF-8
234 Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS -
235 biblioteka statyczna.
236
237 %package -n libvips-cpp8
238 Summary:        C++ API for VIPS 8 image processing library
239 Summary(pl.UTF-8):      API C++ do biblioteki przetwarzania obrazów VIPS 8
240 Group:          Libraries
241 Requires:       libvips = %{version}-%{release}
242
243 %description -n libvips-cpp8
244 C++ API for VIPS 8 image processing library.
245
246 %description -n libvips-cpp8 -l pl.UTF-8
247 API C++ do biblioteki przetwarzania obrazów VIPS 8.
248
249 %package -n libvips-cpp8-devel
250 Summary:        C++ API for VIPS 8 image processing library - header files
251 Summary(pl.UTF-8):      API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe
252 Group:          Development/Libraries
253 Requires:       libvips-cpp8 = %{version}-%{release}
254 Requires:       libvips-devel = %{version}-%{release}
255
256 %description -n libvips-cpp8-devel
257 C++ API for VIPS 8 image processing library - header files.
258
259 %description -n libvips-cpp8-devel -l pl.UTF-8
260 API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe.
261
262 %package -n libvips-cpp8-static
263 Summary:        C++ API for VIPS 8 image processing library - static library
264 Summary(pl.UTF-8):      API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka statyczna
265 Group:          Development/Libraries
266 Requires:       libvips-cpp8-devel = %{version}-%{release}
267
268 %description -n libvips-cpp8-static
269 C++ API for VIPS 8 image processing library - static library.
270
271 %description -n libvips-cpp8-static -l pl.UTF-8
272 API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka
273 statyczna.
274
275 %package -n python-vipsCC
276 Summary:        Deprecated Python interface for VIPS image processing library
277 Summary(pl.UTF-8):      Przestarzały interfejs Pythona do biblioteki przetwarzania obrazów VIPS
278 Group:          Libraries/Python
279 Requires:       libvips-cpp7 = %{version}-%{release}
280
281 %description -n python-vipsCC
282 Deprecated Python interface for VIPS image processing library (for
283 VIPS 7 compatibility).
284
285 %description -n python-vipsCC -l pl.UTF-8
286 Przestarzały interfejs Pythona do biblioteki przetwarzania obrazów
287 VIPS (dla zachowania zgodności z VIPS 7).
288
289 %package -n python-vips
290 Summary:        Python interface for VIPS image processing library
291 Summary(pl.UTF-8):      Interfejs Pythona do biblioteki przetwarzania obrazów VIPS
292 Group:          Libraries/Python
293 Requires:       gobject-introspection >= 1.30.0
294 Requires:       libvips = %{version}-%{release}
295 Requires:       python-pygobject3 >= 3.13.0
296
297 %description -n python-vips
298 Python interface for VIPS image processing library.
299
300 %description -n python-vips -l pl.UTF-8
301 Interfejs Pythona do biblioteki przetwarzania obrazów VIPS.
302
303 %prep
304 %setup -q -n libvips-%{version}
305
306 %build
307 %{__gtkdocize} --docdir doc
308 %{__glib_gettextize}
309 %{__libtoolize}
310 %{__aclocal} -I m4
311 %{__autoconf}
312 %{__autoheader}
313 %{__automake}
314 %configure \
315         --enable-cpp7 \
316         --enable-gtk-doc \
317         --enable-pyvips7 \
318         --enable-pyvips8 \
319         --with-html-dir=%{_gtkdocdir}
320 %{__make}
321
322 %install
323 rm -rf $RPM_BUILD_ROOT
324
325 %{__make} install \
326         DESTDIR=$RPM_BUILD_ROOT
327
328 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips-cpp.la
329 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips.la
330 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvipsCC.la
331 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/vipsCC/*.la
332 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/vipsCC/*.a
333
334 #rm -r $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libvips
335
336 %py_postclean
337
338 %find_lang vips8.7 -o %{name}.lang
339
340 %clean
341 rm -rf $RPM_BUILD_ROOT
342
343 %post   -n libvips -p /sbin/ldconfig
344 %postun -n libvips -p /sbin/ldconfig
345
346 %post   -n libvips-cpp7 -p /sbin/ldconfig
347 %postun -n libvips-cpp7 -p /sbin/ldconfig
348
349 %post   -n libvips-cpp8 -p /sbin/ldconfig
350 %postun -n libvips-cpp8 -p /sbin/ldconfig
351
352 %files -f %{name}.lang
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_bindir}/batch_crop
355 %attr(755,root,root) %{_bindir}/batch_image_convert
356 %attr(755,root,root) %{_bindir}/batch_rubber_sheet
357 %attr(755,root,root) %{_bindir}/light_correct
358 %attr(755,root,root) %{_bindir}/shrink_width
359 %attr(755,root,root) %{_bindir}/vips
360 %attr(755,root,root) %{_bindir}/vips-8.7
361 %attr(755,root,root) %{_bindir}/vipsedit
362 %attr(755,root,root) %{_bindir}/vipsheader
363 %attr(755,root,root) %{_bindir}/vipsprofile
364 %attr(755,root,root) %{_bindir}/vipsthumbnail
365 %{_mandir}/man1/batch_crop.1*
366 %{_mandir}/man1/batch_image_convert.1*
367 %{_mandir}/man1/batch_rubber_sheet.1*
368 %{_mandir}/man1/light_correct.1*
369 %{_mandir}/man1/vips.1*
370 %{_mandir}/man1/vipsedit.1*
371 %{_mandir}/man1/vipsheader.1*
372 %{_mandir}/man1/vipsprofile.1*
373 %{_mandir}/man1/vipsthumbnail.1*
374
375 %files -n libvips
376 %defattr(644,root,root,755)
377 %doc AUTHORS ChangeLog NEWS README.md THANKS TODO
378 %attr(755,root,root) %{_libdir}/libvips.so.*.*.*
379 %attr(755,root,root) %ghost %{_libdir}/libvips.so.42
380 %{_libdir}/girepository-1.0/Vips-8.0.typelib
381
382 %files -n libvips-devel
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/libvips.so
385 %dir %{_includedir}/vips
386 %{_includedir}/vips/almostdeprecated.h
387 %{_includedir}/vips/arithmetic.h
388 %{_includedir}/vips/basic.h
389 %{_includedir}/vips/buf.h
390 %{_includedir}/vips/cimg_funcs.h
391 %{_includedir}/vips/colour.h
392 %{_includedir}/vips/conversion.h
393 %{_includedir}/vips/convolution.h
394 %{_includedir}/vips/create.h
395 %{_includedir}/vips/dbuf.h
396 %{_includedir}/vips/debug.h
397 %{_includedir}/vips/deprecated.h
398 %{_includedir}/vips/dispatch.h
399 %{_includedir}/vips/draw.h
400 %{_includedir}/vips/enumtypes.h
401 %{_includedir}/vips/error.h
402 %{_includedir}/vips/foreign.h
403 %{_includedir}/vips/format.h
404 %{_includedir}/vips/freqfilt.h
405 %{_includedir}/vips/gate.h
406 %{_includedir}/vips/generate.h
407 %{_includedir}/vips/header.h
408 %{_includedir}/vips/histogram.h
409 %{_includedir}/vips/image.h
410 %{_includedir}/vips/interpolate.h
411 %{_includedir}/vips/intl.h
412 %{_includedir}/vips/mask.h
413 %{_includedir}/vips/memory.h
414 %{_includedir}/vips/morphology.h
415 %{_includedir}/vips/mosaicing.h
416 %{_includedir}/vips/object.h
417 %{_includedir}/vips/operation.h
418 %{_includedir}/vips/private.h
419 %{_includedir}/vips/rect.h
420 %{_includedir}/vips/region.h
421 %{_includedir}/vips/resample.h
422 %{_includedir}/vips/semaphore.h
423 %{_includedir}/vips/soname.h
424 %{_includedir}/vips/thread.h
425 %{_includedir}/vips/threadpool.h
426 %{_includedir}/vips/transform.h
427 %{_includedir}/vips/type.h
428 %{_includedir}/vips/util.h
429 %{_includedir}/vips/vector.h
430 %{_includedir}/vips/version.h
431 %{_includedir}/vips/video.h
432 %{_includedir}/vips/vips.h
433 %{_includedir}/vips/vips7compat.h
434 %{_datadir}/gir-1.0/Vips-8.0.gir
435 %{_pkgconfigdir}/vips.pc
436
437 %files -n libvips-static
438 %defattr(644,root,root,755)
439 %{_libdir}/libvips.a
440
441 %files -n libvips-apidocs
442 %defattr(644,root,root,755)
443 %{_gtkdocdir}/libvips
444
445 %files -n libvips-cpp7
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/libvipsCC.so.*.*.*
448 %attr(755,root,root) %ghost %{_libdir}/libvipsCC.so.42
449
450 %files -n libvips-cpp7-devel
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_libdir}/libvipsCC.so
453 %{_includedir}/vips/VDisplay.h
454 %{_includedir}/vips/VError.h
455 %{_includedir}/vips/VImage.h
456 %{_includedir}/vips/VMask.h
457 %{_includedir}/vips/vipsc++.h
458 %{_includedir}/vips/vipscpp.h
459 %{_includedir}/vips/vips
460 %{_pkgconfigdir}/vipsCC.pc
461
462 %files -n libvips-cpp7-static
463 %defattr(644,root,root,755)
464 %{_libdir}/libvipsCC.a
465
466 %files -n libvips-cpp8
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_libdir}/libvips-cpp.so.*.*.*
469 %attr(755,root,root) %ghost %{_libdir}/libvips-cpp.so.42
470
471 %files -n libvips-cpp8-devel
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_libdir}/libvips-cpp.so
474 %{_includedir}/vips/VError8.h
475 %{_includedir}/vips/VImage8.h
476 %{_includedir}/vips/VInterpolate8.h
477 %{_includedir}/vips/vips-operators.h
478 %{_includedir}/vips/vips8
479 %{_pkgconfigdir}/vips-cpp.pc
480
481 %files -n libvips-cpp8-static
482 %defattr(644,root,root,755)
483 %{_libdir}/libvips-cpp.a
484
485 %files -n python-vipsCC
486 %defattr(644,root,root,755)
487 %dir %{py_sitedir}/vipsCC
488 %{py_sitedir}/vipsCC/*.py[co]
489 %attr(755,root,root) %{py_sitedir}/vipsCC/vdisplaymodule.so
490 %attr(755,root,root) %{py_sitedir}/vipsCC/verrormodule.so
491 %attr(755,root,root) %{py_sitedir}/vipsCC/vimagemodule.so
492 %attr(755,root,root) %{py_sitedir}/vipsCC/vmaskmodule.so
493
494 %files -n python-vips
495 %defattr(644,root,root,755)
496 %{py_sitedir}/gi/overrides/Vips.py[co]
This page took 0.109886 seconds and 2 git commands to generate.