X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=vips.spec;h=0807abd46b98417ae2aa7fe9602443e88ed6bd28;hb=54d06aa758ae08ce4ae6264256dc9296dc1b1bf6;hp=6ec99eeb4f3c15f721399f768a08d204c498731a;hpb=c0a64306dcefbd5644bf7965a8b5000070b08558;p=packages%2Fvips.git diff --git a/vips.spec b/vips.spec index 6ec99ee..0807abd 100644 --- a/vips.spec +++ b/vips.spec @@ -1,83 +1,322 @@ -Summary: An image processing library -Summary(pl): Biblioteka przetwarzania obrazów +# TODO: +# - pdfium as an alternative for poppler? +# - python3-vips +Summary: A fast image processing library with low memory needs +Summary(pl.UTF-8): Szybka biblioteka przetwarzania obrazów o małych wymaganiach pamięciowych Name: vips -Version: 7.10.10 -Release: 2 -License: LGPL +Version: 8.7.0 +Release: 3 +License: LGPL v2+ Group: Libraries -Source0: http://www.vips.ecs.soton.ac.uk/%{name}-7.10/%{name}-%{version}.tar.gz -# Source0-md5: 5fa724406ff4e9ca9839d5f51bd391ad -URL: http://www.vips.ecs.soton.ac.uk/ +#Source0Download: https://github.com/jcupitt/libvips/releases/ +Source0: https://github.com/jcupitt/libvips/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 091fa9adbd38f880c585de1265f71a4c +URL: http://jcupitt.github.io/libvips/ BuildRequires: ImageMagick-devel >= 1:6.2.4.0 -BuildRequires: autoconf -BuildRequires: automake +BuildRequires: OpenEXR-devel >= 1.2.2 +BuildRequires: autoconf >= 2.62 +BuildRequires: automake >= 1.6 BuildRequires: bzip2-devel +BuildRequires: cairo-devel >= 1.2 +BuildRequires: cfitsio-devel +BuildRequires: expat-devel >= 1.95 BuildRequires: fftw3-devel >= 3.0.0 -BuildRequires: glib2-devel >= 2.4.0 -BuildRequires: imlib-devel -BuildRequires: intltool -BuildRequires: lcms-devel +BuildRequires: gettext-tools +BuildRequires: giflib-devel +BuildRequires: glib2-devel >= 1:2.48 +BuildRequires: gobject-introspection-devel >= 1.30.0 +BuildRequires: gtk-doc >= 1.14 +BuildRequires: lcms2-devel >= 2 +BuildRequires: libexif-devel >= 0.6 +BuildRequires: libgsf-devel >= 1.14.31 +BuildRequires: libimagequant-devel BuildRequires: libjpeg-devel BuildRequires: libltdl-devel -BuildRequires: libpng-devel +BuildRequires: libpng-devel >= 2:1.2.9 +BuildRequires: librsvg-devel >= 2.34 BuildRequires: libstdc++-devel -BuildRequires: libtiff-devel +BuildRequires: libtiff-devel >= 4 BuildRequires: libtool +BuildRequires: libwebp-devel >= 0.5.0 BuildRequires: libxml2-devel +BuildRequires: matio-devel +BuildRequires: nifticlib-devel +BuildRequires: openslide-devel >= 3.4.0 +BuildRequires: orc-devel >= 0.4.11 BuildRequires: pango-devel +BuildRequires: poppler-glib-devel >= 0.16.0 BuildRequires: pkgconfig -BuildRequires: zlib-devel +BuildRequires: python-devel >= 1:2.7 +BuildRequires: python-pygobject3-devel >= 3.13.0 +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(find_lang) >= 1.32 +BuildRequires: rpmbuild(macros) >= 1.714 +BuildRequires: zlib-devel >= 0.4 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -VIPS is an image processing library. It is good for very large images -(ie. larger than the amount of RAM in your machine), and for working -with colour. It includes a C++ API, complete man pages, a command-line -interface, automatic threading and an operation database. There are -several user interfaces built on top of VIPS: for example "nip". - -%description -l pl -VIPS jest bibliotek± przetwarzania obrazów. Jest dobra dla bardzo -du¿ych obrazów (to znaczy wiêkszych ni¿ ilo¶æ RAM w komputerze), oraz -do pracy z kolorami. Zawiera API w C++, kompletne strony pomocy man, -interfejs linii poleceñ, automatyczne w±tkowanie i bazê danych -operacji. Jest kilka interfejsów u¿ytkownika zbudowanych na podstawie -VIPS, na przyk³ad "nip". - -%package devel -Summary: Header files for vips library -Summary(pl): Pliki nag³ówkowe biblioteki vips +libvips is a demand-driven, horizontally threaded image processing +library. Compared to similar libraries, libvips runs quickly and uses +little memory. + +It has around 300 operations covering arithmetic, histograms, +convolution, morphological operations, frequency filtering, colour, +resampling, statistics and others. It supports a large range of +numeric formats, from 8-bit int to 128-bit complex. Images can have +any number of bands. It supports a good range of image formats, +including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF, +SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also +load images via ImageMagick or GraphicsMagick, letting it load formats +like DICOM. + +This package contains utilities based on libvips library. + +%description -l pl.UTF-8 +VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu +do innych, działa szybko i zużywa niewiele pamięci. + +Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty, +operacje morfologiczne, filtry częstotliwościowe, kolory, resampling, +statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych +do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów. +Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF, +PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF, +Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać +obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje +formaty takie jak DICOM. + +Ten pakiet zawiera narzędzia oparte na bibliotece libvips. + +%package -n libvips +Summary: VIPS image processing library +Summary(pl.UTF-8): Biblioteka przetwarzania obrazów VIPS +Group: Libraries +Requires: ImageMagick-libs >= 1:6.2.4.0 +Requires: OpenEXR >= 1.2.2 +Requires: cairo >= 1.2 +Requires: glib2 >= 1:2.48 +Requires: libexif >= 0.6 +Requires: libgsf >= 1.14.31 +Requires: libpng >= 2:1.2.9 +Requires: librsvg >= 2.34 +Requires: libtiff >= 4 +Requires: libwebp >= 0.5.0 +Requires: openslide >= 3.4.0 +Requires: orc >= 0.4.11 +Requires: poppler-glib >= 0.16.0 +Requires: zlib >= 0.4 + +%description -n libvips +libvips is a demand-driven, horizontally threaded image processing +library. Compared to similar libraries, libvips runs quickly and uses +little memory. + +It has around 300 operations covering arithmetic, histograms, +convolution, morphological operations, frequency filtering, colour, +resampling, statistics and others. It supports a large range of +numeric formats, from 8-bit int to 128-bit complex. Images can have +any number of bands. It supports a good range of image formats, +including JPEG, TIFF, OME-TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF, +SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also +load images via ImageMagick or GraphicsMagick, letting it load formats +like DICOM. + +%description -n libvips +VIPS jest wielowątkową biblioteką przetwarzania obrazów. W porównaniu +do innych, działa szybko i zużywa niewiele pamięci. + +Ma około 300 operacji obejmujących arytmetykę, histogramy, sploty, +operacje morfologiczne, filtry częstotliwościowe, kolory, resampling, +statystyki i inne. Obsługuje wiele formatów liczbowych, od 8-bitowych +do zespolonych 128-bitowych. Obrazy mogą mieć dowolną liczbę zakresów. +Obsługiwane jest szeroki zakres formatów, w tym JPEG, TIFF, OME-TIFF, +PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF, +Analyze, DeepZoom i OpenSlide. Biblioteka potrafi także wczytywać +obrazy poprzez ImageMagick lub GraphicsMagick, dzięki czemu obsługuje +formaty takie jak DICOM. + +%package -n libvips-devel +Summary: Header files for VIPS library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki VIPS +Group: Development/Libraries +Requires: ImageMagick-devel >= 1:6.2.4.0 +Requires: OpenEXR-devel >= 1.2.2 +Requires: cairo-devel >= 1.2 +Requires: cfitsio-devel +Requires: fftw3-devel >= 3.0.0 +Requires: glib2-devel >= 1:2.48 +Requires: lcms2-devel >= 2 +Requires: libexif-devel >= 0.6 +Requires: libgsf-devel >= 1.14.31 +Requires: libimagequant-devel +Requires: libjpeg-devel +Requires: libpng-devel >= 2:1.2.9 +Requires: librsvg-devel >= 2.34 +Requires: libtiff-devel >= 4 +Requires: libwebp-devel >= 0.5.0 +Requires: matio-devel +Requires: openslide-devel >= 3.4.0 +Requires: orc-devel >= 0.4.11 +Requires: pango-devel +Requires: poppler-glib-devel >= 0.16.0 +Requires: zlib-devel >= 0.4 +Obsoletes: vips-devel < 8.7 + +%description -n libvips-devel +Header files for VIPS library. + +%description -n libvips-devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki VIPS. + +%package -n libvips-static +Summary: Static VIPS library +Summary(pl.UTF-8): Statyczna biblioteka VIPS +Group: Development/Libraries +Obsoletes: vips-static < 8.7 + +%description -n libvips-static +Static VIPS library. + +%description -n libvips-static -l pl.UTF-8 +Statyczna biblioteka VIPS. + +%package -n libvips-apidocs +Summary: API documentation for VIPS library +Summary(pl.UTF-8): Dokumentacja API biblioteki VIPS +Group: Documentation + +%description -n libvips-apidocs +API documentation for VIPS library, together with some general VIPS +documentation. + +%description -n libvips-apidocs -l pl.UTF-8 +Dokumentacja API biblioteki VIPS. Zawiera także trochę ogólnej +dokumentacji projektu VIPS. + +%package -n libvips-cpp7 +Summary: Deprecated C++ API for VIPS image processing library +Summary(pl.UTF-8): Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS +Group: Libraries +Requires: libvips = %{version}-%{release} + +%description -n libvips-cpp7 +Deprecated C++ API for VIPS image processing library (for VIPS 7 +compatibility). + +%description -n libvips-cpp7 -l pl.UTF-8 +Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS (dla +zachowania zgodności z VIPS 7). + +%package -n libvips-cpp7-devel +Summary: Deprecated C++ API for VIPS image processing library - header files +Summary(pl.UTF-8): Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - pliki nagłówkowe +Group: Development/Libraries +Requires: libvips-cpp7 = %{version}-%{release} +Requires: libvips-devel = %{version}-%{release} + +%description -n libvips-cpp7-devel +Deprecated C++ API for VIPS image processing library - header files. + +%description -n libvips-cpp7-devel -l pl.UTF-8 +Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - pliki +nagłówkowe. + +%package -n libvips-cpp7-static +Summary: Deprecated C++ API for VIPS image processing library - static library +Summary(pl.UTF-8): Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - biblioteka statyczna +Group: Development/Libraries +Requires: libvips-cpp7-devel = %{version}-%{release} + +%description -n libvips-cpp7-static +Deprecated C++ API for VIPS image processing library - static library. + +%description -n libvips-cpp7-static -l pl.UTF-8 +Przestarzałe API C++ do biblioteki przetwarzania obrazów VIPS - +biblioteka statyczna. + +%package -n libvips-cpp8 +Summary: C++ API for VIPS 8 image processing library +Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8 +Group: Libraries +Requires: libvips = %{version}-%{release} + +%description -n libvips-cpp8 +C++ API for VIPS 8 image processing library. + +%description -n libvips-cpp8 -l pl.UTF-8 +API C++ do biblioteki przetwarzania obrazów VIPS 8. + +%package -n libvips-cpp8-devel +Summary: C++ API for VIPS 8 image processing library - header files +Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe Group: Development/Libraries -Requires: %{name} = %{version}-%{release} +Requires: libvips-cpp8 = %{version}-%{release} +Requires: libvips-devel = %{version}-%{release} -%description devel -Header files for vips library. +%description -n libvips-cpp8-devel +C++ API for VIPS 8 image processing library - header files. -%description devel -l pl -Pliki nag³ówkowe biblioteki vips. +%description -n libvips-cpp8-devel -l pl.UTF-8 +API C++ do biblioteki przetwarzania obrazów VIPS 8 - pliki nagłówkowe. -%package static -Summary: Static vips library -Summary(pl): Statyczna biblioteka vips +%package -n libvips-cpp8-static +Summary: C++ API for VIPS 8 image processing library - static library +Summary(pl.UTF-8): API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka statyczna Group: Development/Libraries -Requires: %{name}-devel = %{version}-%{release} +Requires: libvips-cpp8-devel = %{version}-%{release} + +%description -n libvips-cpp8-static +C++ API for VIPS 8 image processing library - static library. + +%description -n libvips-cpp8-static -l pl.UTF-8 +API C++ do biblioteki przetwarzania obrazów VIPS 8 - biblioteka +statyczna. + +%package -n python-vipsCC +Summary: Deprecated Python interface for VIPS image processing library +Summary(pl.UTF-8): Przestarzały interfejs Pythona do biblioteki przetwarzania obrazów VIPS +Group: Libraries/Python +Requires: libvips-cpp7 = %{version}-%{release} + +%description -n python-vipsCC +Deprecated Python interface for VIPS image processing library (for +VIPS 7 compatibility). + +%description -n python-vipsCC -l pl.UTF-8 +Przestarzały interfejs Pythona do biblioteki przetwarzania obrazów +VIPS (dla zachowania zgodności z VIPS 7). + +%package -n python-vips +Summary: Python interface for VIPS image processing library +Summary(pl.UTF-8): Interfejs Pythona do biblioteki przetwarzania obrazów VIPS +Group: Libraries/Python +Requires: gobject-introspection >= 1.30.0 +Requires: libvips = %{version}-%{release} +Requires: python-pygobject3 >= 3.13.0 -%description static -Static vips library. +%description -n python-vips +Python interface for VIPS image processing library. -%description static -l pl -Statyczna biblioteka vips. +%description -n python-vips -l pl.UTF-8 +Interfejs Pythona do biblioteki przetwarzania obrazów VIPS. %prep -%setup -q +%setup -q -n libvips-%{version} %build +%{__gtkdocize} --docdir doc +%{__glib_gettextize} %{__libtoolize} -%{__aclocal} +%{__aclocal} -I m4 %{__autoconf} %{__autoheader} %{__automake} -%configure +%configure \ + --enable-cpp7 \ + --enable-gtk-doc \ + --enable-pyvips7 \ + --enable-pyvips8 \ + --with-html-dir=%{_gtkdocdir} %{__make} %install @@ -86,32 +325,172 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips-cpp.la +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvips.la +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvipsCC.la +%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/vipsCC/*.la +%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/vipsCC/*.a + +#rm -r $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libvips + +%py_postclean + +%find_lang vips8.7 -o %{name}.lang %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -n libvips -p /sbin/ldconfig +%postun -n libvips -p /sbin/ldconfig + +%post -n libvips-cpp7 -p /sbin/ldconfig +%postun -n libvips-cpp7 -p /sbin/ldconfig + +%post -n libvips-cpp8 -p /sbin/ldconfig +%postun -n libvips-cpp8 -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/batch_crop +%attr(755,root,root) %{_bindir}/batch_image_convert +%attr(755,root,root) %{_bindir}/batch_rubber_sheet +%attr(755,root,root) %{_bindir}/light_correct +%attr(755,root,root) %{_bindir}/shrink_width +%attr(755,root,root) %{_bindir}/vips +%attr(755,root,root) %{_bindir}/vips-8.7 +%attr(755,root,root) %{_bindir}/vipsedit +%attr(755,root,root) %{_bindir}/vipsheader +%attr(755,root,root) %{_bindir}/vipsprofile +%attr(755,root,root) %{_bindir}/vipsthumbnail +%{_mandir}/man1/batch_crop.1* +%{_mandir}/man1/batch_image_convert.1* +%{_mandir}/man1/batch_rubber_sheet.1* +%{_mandir}/man1/light_correct.1* +%{_mandir}/man1/vips.1* +%{_mandir}/man1/vipsedit.1* +%{_mandir}/man1/vipsheader.1* +%{_mandir}/man1/vipsprofile.1* +%{_mandir}/man1/vipsthumbnail.1* + +%files -n libvips +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS README.md THANKS TODO +%attr(755,root,root) %{_libdir}/libvips.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libvips.so.42 +%{_libdir}/girepository-1.0/Vips-8.0.typelib + +%files -n libvips-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libvips.so +%dir %{_includedir}/vips +%{_includedir}/vips/almostdeprecated.h +%{_includedir}/vips/arithmetic.h +%{_includedir}/vips/basic.h +%{_includedir}/vips/buf.h +%{_includedir}/vips/cimg_funcs.h +%{_includedir}/vips/colour.h +%{_includedir}/vips/conversion.h +%{_includedir}/vips/convolution.h +%{_includedir}/vips/create.h +%{_includedir}/vips/dbuf.h +%{_includedir}/vips/debug.h +%{_includedir}/vips/deprecated.h +%{_includedir}/vips/dispatch.h +%{_includedir}/vips/draw.h +%{_includedir}/vips/enumtypes.h +%{_includedir}/vips/error.h +%{_includedir}/vips/foreign.h +%{_includedir}/vips/format.h +%{_includedir}/vips/freqfilt.h +%{_includedir}/vips/gate.h +%{_includedir}/vips/generate.h +%{_includedir}/vips/header.h +%{_includedir}/vips/histogram.h +%{_includedir}/vips/image.h +%{_includedir}/vips/interpolate.h +%{_includedir}/vips/intl.h +%{_includedir}/vips/mask.h +%{_includedir}/vips/memory.h +%{_includedir}/vips/morphology.h +%{_includedir}/vips/mosaicing.h +%{_includedir}/vips/object.h +%{_includedir}/vips/operation.h +%{_includedir}/vips/private.h +%{_includedir}/vips/rect.h +%{_includedir}/vips/region.h +%{_includedir}/vips/resample.h +%{_includedir}/vips/semaphore.h +%{_includedir}/vips/soname.h +%{_includedir}/vips/thread.h +%{_includedir}/vips/threadpool.h +%{_includedir}/vips/transform.h +%{_includedir}/vips/type.h +%{_includedir}/vips/util.h +%{_includedir}/vips/vector.h +%{_includedir}/vips/version.h +%{_includedir}/vips/video.h +%{_includedir}/vips/vips.h +%{_includedir}/vips/vips7compat.h +%{_datadir}/gir-1.0/Vips-8.0.gir +%{_pkgconfigdir}/vips.pc + +%files -n libvips-static +%defattr(644,root,root,755) +%{_libdir}/libvips.a + +%files -n libvips-apidocs +%defattr(644,root,root,755) +%{_gtkdocdir}/libvips + +%files -n libvips-cpp7 +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libvipsCC.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libvipsCC.so.42 + +%files -n libvips-cpp7-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libvipsCC.so +%{_includedir}/vips/VDisplay.h +%{_includedir}/vips/VError.h +%{_includedir}/vips/VImage.h +%{_includedir}/vips/VMask.h +%{_includedir}/vips/vipsc++.h +%{_includedir}/vips/vipscpp.h +%{_includedir}/vips/vips +%{_pkgconfigdir}/vipsCC.pc -%files +%files -n libvips-cpp7-static %defattr(644,root,root,755) -%doc AUTHORS ChangeLog NEWS README THANKS TODO -%doc doc/html/refguide doc/html/appguide -%attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/lib*.so.*.*.* -%{_datadir}/%{name} -%{_mandir}/man1/* - -%files devel +%{_libdir}/libvipsCC.a + +%files -n libvips-cpp8 %defattr(644,root,root,755) -%doc doc/html/cppguide doc/html/libguide -%attr(755,root,root) %{_libdir}/lib*.so -%{_libdir}/lib*.la -%{_includedir}/%{name} -%{_pkgconfigdir}/*.pc -%{_mandir}/man3/* - -%files static +%attr(755,root,root) %{_libdir}/libvips-cpp.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libvips-cpp.so.42 + +%files -n libvips-cpp8-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libvips-cpp.so +%{_includedir}/vips/VError8.h +%{_includedir}/vips/VImage8.h +%{_includedir}/vips/VInterpolate8.h +%{_includedir}/vips/vips-operators.h +%{_includedir}/vips/vips8 +%{_pkgconfigdir}/vips-cpp.pc + +%files -n libvips-cpp8-static +%defattr(644,root,root,755) +%{_libdir}/libvips-cpp.a + +%files -n python-vipsCC +%defattr(644,root,root,755) +%dir %{py_sitedir}/vipsCC +%{py_sitedir}/vipsCC/*.py[co] +%attr(755,root,root) %{py_sitedir}/vipsCC/vdisplaymodule.so +%attr(755,root,root) %{py_sitedir}/vipsCC/verrormodule.so +%attr(755,root,root) %{py_sitedir}/vipsCC/vimagemodule.so +%attr(755,root,root) %{py_sitedir}/vipsCC/vmaskmodule.so + +%files -n python-vips %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{py_sitedir}/gi/overrides/Vips.py[co]