]>
Commit | Line | Data |
---|---|---|
ae8a567b | 1 | # TODO: |
166d6b1c | 2 | # - pdfium as an alternative for poppler? |
ae8a567b | 3 | Summary: A fast image processing library with low memory needs |
aa2d5a51 | 4 | Summary(pl.UTF-8): Szybka biblioteka przetwarzania obrazów o małych wymaganiach pamięciowych |
d133a944 | 5 | Name: vips |
61725c89 | 6 | Version: 8.11.2 |
7c16bd74 | 7 | Release: 2 |
aa2d5a51 | 8 | License: LGPL v2+ |
d133a944 | 9 | Group: Libraries |
aa2d5a51 JB |
10 | #Source0Download: https://github.com/jcupitt/libvips/releases/ |
11 | Source0: https://github.com/jcupitt/libvips/archive/v%{version}/%{name}-%{version}.tar.gz | |
61725c89 | 12 | # Source0-md5: 79ceea4d685b1b9dc3cb1e253c81793c |
ae8a567b | 13 | URL: http://jcupitt.github.io/libvips/ |
c0a64306 | 14 | BuildRequires: ImageMagick-devel >= 1:6.2.4.0 |
aa2d5a51 JB |
15 | BuildRequires: OpenEXR-devel >= 1.2.2 |
16 | BuildRequires: autoconf >= 2.62 | |
17 | BuildRequires: automake >= 1.6 | |
d133a944 | 18 | BuildRequires: bzip2-devel |
aa2d5a51 JB |
19 | BuildRequires: cairo-devel >= 1.2 |
20 | BuildRequires: cfitsio-devel | |
21 | BuildRequires: expat-devel >= 1.95 | |
a820c931 | 22 | BuildRequires: fftw3-devel >= 3.0.0 |
aa2d5a51 JB |
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 | |
aa2d5a51 JB |
28 | BuildRequires: lcms2-devel >= 2 |
29 | BuildRequires: libexif-devel >= 0.6 | |
30 | BuildRequires: libgsf-devel >= 1.14.31 | |
31 | BuildRequires: libimagequant-devel | |
d133a944 | 32 | BuildRequires: libjpeg-devel |
33 | BuildRequires: libltdl-devel | |
aa2d5a51 JB |
34 | BuildRequires: libpng-devel >= 2:1.2.9 |
35 | BuildRequires: librsvg-devel >= 2.34 | |
d133a944 | 36 | BuildRequires: libstdc++-devel |
aa2d5a51 | 37 | BuildRequires: libtiff-devel >= 4 |
d133a944 | 38 | BuildRequires: libtool |
aa2d5a51 | 39 | BuildRequires: libwebp-devel >= 0.5.0 |
d133a944 | 40 | BuildRequires: libxml2-devel |
aa2d5a51 | 41 | BuildRequires: matio-devel |
166d6b1c JB |
42 | BuildRequires: nifticlib-devel |
43 | BuildRequires: openslide-devel >= 3.4.0 | |
aa2d5a51 | 44 | BuildRequires: orc-devel >= 0.4.11 |
d133a944 | 45 | BuildRequires: pango-devel |
aa2d5a51 | 46 | BuildRequires: poppler-glib-devel >= 0.16.0 |
a820c931 | 47 | BuildRequires: pkgconfig |
ae8a567b ER |
48 | BuildRequires: rpm-pythonprov |
49 | BuildRequires: rpmbuild(find_lang) >= 1.32 | |
50 | BuildRequires: rpmbuild(macros) >= 1.714 | |
aa2d5a51 | 51 | BuildRequires: zlib-devel >= 0.4 |
d133a944 | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
54 | %description | |
ae8a567b ER |
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. | |
d133a944 | 68 | |
aa2d5a51 JB |
69 | This package contains utilities based on libvips library. |
70 | ||
86727f3d | 71 | %description -l pl.UTF-8 |
aa2d5a51 JB |
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 | |
166d6b1c JB |
100 | Requires: libwebp >= 0.5.0 |
101 | Requires: openslide >= 3.4.0 | |
aa2d5a51 JB |
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 | |
166d6b1c | 155 | Requires: openslide-devel >= 3.4.0 |
aa2d5a51 JB |
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 | ||
aa2d5a51 JB |
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 | |
d133a944 | 208 | Group: Development/Libraries |
aa2d5a51 JB |
209 | Requires: libvips-cpp8 = %{version}-%{release} |
210 | Requires: libvips-devel = %{version}-%{release} | |
d133a944 | 211 | |
aa2d5a51 JB |
212 | %description -n libvips-cpp8-devel |
213 | C++ API for VIPS 8 image processing library - header files. | |
d133a944 | 214 | |
aa2d5a51 JB |
215 | %description -n libvips-cpp8-devel -l pl.UTF-8 |
216 | API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe. | |
d133a944 | 217 | |
aa2d5a51 JB |
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 | |
d133a944 | 221 | Group: Development/Libraries |
aa2d5a51 | 222 | Requires: libvips-cpp8-devel = %{version}-%{release} |
d133a944 | 223 | |
aa2d5a51 JB |
224 | %description -n libvips-cpp8-static |
225 | C++ API for VIPS 8 image processing library - static library. | |
d133a944 | 226 | |
aa2d5a51 JB |
227 | %description -n libvips-cpp8-static -l pl.UTF-8 |
228 | API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka | |
229 | statyczna. | |
230 | ||
d133a944 | 231 | %prep |
aa2d5a51 | 232 | %setup -q -n libvips-%{version} |
d133a944 | 233 | |
3e684a19 JR |
234 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ |
235 | tools/vipsprofile | |
236 | ||
d133a944 | 237 | %build |
aa2d5a51 JB |
238 | %{__gtkdocize} --docdir doc |
239 | %{__glib_gettextize} | |
d133a944 | 240 | %{__libtoolize} |
aa2d5a51 | 241 | %{__aclocal} -I m4 |
d133a944 | 242 | %{__autoconf} |
243 | %{__autoheader} | |
244 | %{__automake} | |
aa2d5a51 | 245 | %configure \ |
aa2d5a51 | 246 | --enable-gtk-doc \ |
aa2d5a51 JB |
247 | --enable-pyvips8 \ |
248 | --with-html-dir=%{_gtkdocdir} | |
d133a944 | 249 | %{__make} |
250 | ||
251 | %install | |
252 | rm -rf $RPM_BUILD_ROOT | |
d133a944 | 253 | |
254 | %{__make} install \ | |
255 | DESTDIR=$RPM_BUILD_ROOT | |
256 | ||
ae8a567b ER |
257 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips-cpp.la |
258 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips.la | |
d133a944 | 259 | |
aa2d5a51 | 260 | #rm -r $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libvips |
48242467 | 261 | |
ae8a567b ER |
262 | %py_postclean |
263 | ||
61725c89 | 264 | %find_lang vips8.11 -o %{name}.lang |
48242467 | 265 | |
d133a944 | 266 | %clean |
267 | rm -rf $RPM_BUILD_ROOT | |
268 | ||
aa2d5a51 JB |
269 | %post -n libvips -p /sbin/ldconfig |
270 | %postun -n libvips -p /sbin/ldconfig | |
271 | ||
aa2d5a51 JB |
272 | %post -n libvips-cpp8 -p /sbin/ldconfig |
273 | %postun -n libvips-cpp8 -p /sbin/ldconfig | |
d133a944 | 274 | |
ae8a567b | 275 | %files -f %{name}.lang |
d133a944 | 276 | %defattr(644,root,root,755) |
ae8a567b ER |
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 | |
61725c89 | 283 | %attr(755,root,root) %{_bindir}/vips-8.11 |
ae8a567b ER |
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 | |
ae8a567b ER |
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 | ||
aa2d5a51 JB |
298 | %files -n libvips |
299 | %defattr(644,root,root,755) | |
3e684a19 | 300 | %doc AUTHORS ChangeLog NEWS README.md THANKS |
aa2d5a51 JB |
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 | |
aa2d5a51 | 313 | %{_includedir}/vips/colour.h |
3e684a19 | 314 | %{_includedir}/vips/connection.h |
aa2d5a51 JB |
315 | %{_includedir}/vips/conversion.h |
316 | %{_includedir}/vips/convolution.h | |
317 | %{_includedir}/vips/create.h | |
318 | %{_includedir}/vips/dbuf.h | |
319 | %{_includedir}/vips/debug.h | |
320 | %{_includedir}/vips/deprecated.h | |
321 | %{_includedir}/vips/dispatch.h | |
322 | %{_includedir}/vips/draw.h | |
323 | %{_includedir}/vips/enumtypes.h | |
324 | %{_includedir}/vips/error.h | |
325 | %{_includedir}/vips/foreign.h | |
326 | %{_includedir}/vips/format.h | |
327 | %{_includedir}/vips/freqfilt.h | |
328 | %{_includedir}/vips/gate.h | |
329 | %{_includedir}/vips/generate.h | |
330 | %{_includedir}/vips/header.h | |
331 | %{_includedir}/vips/histogram.h | |
332 | %{_includedir}/vips/image.h | |
333 | %{_includedir}/vips/interpolate.h | |
334 | %{_includedir}/vips/intl.h | |
335 | %{_includedir}/vips/mask.h | |
336 | %{_includedir}/vips/memory.h | |
337 | %{_includedir}/vips/morphology.h | |
338 | %{_includedir}/vips/mosaicing.h | |
339 | %{_includedir}/vips/object.h | |
340 | %{_includedir}/vips/operation.h | |
341 | %{_includedir}/vips/private.h | |
342 | %{_includedir}/vips/rect.h | |
343 | %{_includedir}/vips/region.h | |
344 | %{_includedir}/vips/resample.h | |
3e684a19 | 345 | %{_includedir}/vips/sbuf.h |
aa2d5a51 JB |
346 | %{_includedir}/vips/semaphore.h |
347 | %{_includedir}/vips/soname.h | |
348 | %{_includedir}/vips/thread.h | |
349 | %{_includedir}/vips/threadpool.h | |
350 | %{_includedir}/vips/transform.h | |
351 | %{_includedir}/vips/type.h | |
352 | %{_includedir}/vips/util.h | |
3e684a19 | 353 | %{_includedir}/vips/VConnection8.h |
aa2d5a51 JB |
354 | %{_includedir}/vips/vector.h |
355 | %{_includedir}/vips/version.h | |
356 | %{_includedir}/vips/video.h | |
aa2d5a51 | 357 | %{_includedir}/vips/vips7compat.h |
3e684a19 | 358 | %{_includedir}/vips/vips.h |
aa2d5a51 JB |
359 | %{_datadir}/gir-1.0/Vips-8.0.gir |
360 | %{_pkgconfigdir}/vips.pc | |
361 | ||
362 | %files -n libvips-static | |
363 | %defattr(644,root,root,755) | |
364 | %{_libdir}/libvips.a | |
365 | ||
366 | %files -n libvips-apidocs | |
367 | %defattr(644,root,root,755) | |
368 | %{_gtkdocdir}/libvips | |
369 | ||
aa2d5a51 JB |
370 | %files -n libvips-cpp8 |
371 | %defattr(644,root,root,755) | |
372 | %attr(755,root,root) %{_libdir}/libvips-cpp.so.*.*.* | |
373 | %attr(755,root,root) %ghost %{_libdir}/libvips-cpp.so.42 | |
374 | ||
375 | %files -n libvips-cpp8-devel | |
376 | %defattr(644,root,root,755) | |
377 | %attr(755,root,root) %{_libdir}/libvips-cpp.so | |
378 | %{_includedir}/vips/VError8.h | |
379 | %{_includedir}/vips/VImage8.h | |
380 | %{_includedir}/vips/VInterpolate8.h | |
aa2d5a51 JB |
381 | %{_includedir}/vips/vips8 |
382 | %{_pkgconfigdir}/vips-cpp.pc | |
383 | ||
384 | %files -n libvips-cpp8-static | |
385 | %defattr(644,root,root,755) | |
386 | %{_libdir}/libvips-cpp.a |