diff --git a/8.17.3/libvips-8.17.3.spec b/8.17.3/libvips-8.17.3.spec index ad7cf8b..d5d7248 100644 --- a/8.17.3/libvips-8.17.3.spec +++ b/8.17.3/libvips-8.17.3.spec @@ -4,26 +4,15 @@ Name: libvips Version: %{LIBVIPS_VERSION} Release: 1%{?dist} -License: LGPL-2.1 -Summary: A fast image processing library with low memory needs. +License: LGPL-2.1-or-later +Summary: A fast image processing library with low memory needs ExclusiveArch: x86_64 Source: https://github.com/libvips/libvips/releases/download/v%{LIBVIPS_VERSION}/vips-%{LIBVIPS_VERSION}.tar.xz URL: https://www.libvips.org/ -Requires: libheif -Requires: libimagequant -Requires: openexr Requires: cairo Requires: expat -Requires: glib2 -Requires: libarchive -Requires: libpng -Requires: LibRaw -Requires: librsvg2 -Requires: libtiff -Requires: libwebp -Requires: openjpeg2 -Requires: libjpeg-turbo +Requires: openexr Requires: openjpeg2 BuildRequires: cmake @@ -57,12 +46,22 @@ BuildRequires: python3-pip libvips is a demand-driven, horizontally threaded image processing library. Compared to similar libraries, libvips runs quickly and uses little memory. libvips is licensed under the LGPL-2.1-or-later. -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 types, 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, JPEG 2000, JPEG XL, TIFF, -PNG, WebP, HEIC, AVIF, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM / PGM / PFM, CSV, GIF, Analyze, NIfTI, DeepZoom, and -OpenSlide. It can also load images via ImageMagick or GraphicsMagick, letting it work with formats like DICOM. +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 types, 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, JPEG 2000, JPEG XL, TIFF, PNG, WebP, HEIC, +AVIF, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM / PGM / PFM, CSV, GIF, +Analyze, NIfTI, DeepZoom, and OpenSlide. It can also load images via +ImageMagick or GraphicsMagick, letting it work with formats like DICOM. +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +Header files and development documentation for %{name}. + %prep %setup -q -n vips-%{LIBVIPS_VERSION} pip3 install meson @@ -73,21 +72,26 @@ meson setup build --prefix=/usr %build meson compile -C build +%check +meson test -C build + %install meson install -C build --destdir %{buildroot} %files -%{_bindir}/vips* -%{_libdir}/libvips.so -%{_libdir}/libvips.so.* -%{_libdir}/libvips-cpp.so -%{_libdir}/libvips-cpp.so.* -%{_libdir}/pkgconfig/* -%{_libdir}/vips-modules-%{LIBVIPS_VERSION_MINOR}/* /usr/share/locale/* /usr/share/man/* -%{_includedir}/vips +%{_bindir}/vips* +%{_libdir}/libvips-cpp.so.* +%{_libdir}/libvips.so.* +%{_libdir}/vips-modules-%{LIBVIPS_VERSION_MINOR}/* -%changelog +%files devel +%{_includedir}/vips +%{_libdir}/libvips-cpp.so +%{_libdir}/libvips.so +%{_libdir}/pkgconfig/* + +%%changelog * Wed Jun 03 2026 Marko Zivanovic - 8.17.3-1 - Initial package. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..29f7f8e --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +LIBVIPS_VERSION := 8.17.3 + +.PHONY: build copy_rpms shell + +build: + docker build -t libvips-build:$(LIBVIPS_VERSION) $(LIBVIPS_VERSION) + +copy_rpms: + mkdir rpms || true + docker run --rm -v $(PWD)/rpms:/rpms libvips-build:$(LIBVIPS_VERSION) bash -c "cp rpmbuild/RPMS/x86_64/*.rpm /rpms" + docker run --rm -v $(PWD)/rpms:/rpms libvips-build:$(LIBVIPS_VERSION) bash -c "cp rpmbuild/SRPMS/*.rpm /rpms" + +shell: + mkdir rpms || true + docker run -it --rm -v $(PWD)/rpms:/rpms libvips-build:$(LIBVIPS_VERSION)