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