Update libvips spec file and add Makefile for build automation

This commit is contained in:
2026-06-06 00:19:33 +02:00
parent b9bca62222
commit c937cb050b
2 changed files with 47 additions and 28 deletions
+32 -28
View File
@@ -4,26 +4,15 @@
Name: libvips Name: libvips
Version: %{LIBVIPS_VERSION} Version: %{LIBVIPS_VERSION}
Release: 1%{?dist} Release: 1%{?dist}
License: LGPL-2.1 License: LGPL-2.1-or-later
Summary: A fast image processing library with low memory needs. Summary: A fast image processing library with low memory needs
ExclusiveArch: x86_64 ExclusiveArch: x86_64
Source: https://github.com/libvips/libvips/releases/download/v%{LIBVIPS_VERSION}/vips-%{LIBVIPS_VERSION}.tar.xz Source: https://github.com/libvips/libvips/releases/download/v%{LIBVIPS_VERSION}/vips-%{LIBVIPS_VERSION}.tar.xz
URL: https://www.libvips.org/ URL: https://www.libvips.org/
Requires: libheif
Requires: libimagequant
Requires: openexr
Requires: cairo Requires: cairo
Requires: expat Requires: expat
Requires: glib2 Requires: openexr
Requires: libarchive
Requires: libpng
Requires: LibRaw
Requires: librsvg2
Requires: libtiff
Requires: libwebp
Requires: openjpeg2
Requires: libjpeg-turbo
Requires: openjpeg2 Requires: openjpeg2
BuildRequires: cmake BuildRequires: cmake
@@ -57,11 +46,21 @@ BuildRequires: python3-pip
libvips is a demand-driven, horizontally threaded image processing library. libvips is a demand-driven, horizontally threaded image processing library.
Compared to similar libraries, libvips runs quickly and uses little memory. Compared to similar libraries, libvips runs quickly and uses little memory.
libvips is licensed under the LGPL-2.1-or-later. libvips is licensed under the LGPL-2.1-or-later.
It has around 300 operations covering arithmetic, histograms, convolution, morphological operations, frequency filtering, It has around 300 operations covering arithmetic, histograms, convolution,
colour, resampling, statistics and others. It supports a large range of numeric types, from 8-bit int to 128-bit complex. morphological operations, frequency filtering, colour, resampling, statistics
Images can have any number of bands. It supports a good range of image formats, including JPEG, JPEG 2000, JPEG XL, TIFF, and others. It supports a large range of numeric types, from 8-bit int to
PNG, WebP, HEIC, AVIF, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM / PGM / PFM, CSV, GIF, Analyze, NIfTI, DeepZoom, and 128-bit complex. Images can have any number of bands. It supports a good range
OpenSlide. It can also load images via ImageMagick or GraphicsMagick, letting it work with formats like DICOM. 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 %prep
%setup -q -n vips-%{LIBVIPS_VERSION} %setup -q -n vips-%{LIBVIPS_VERSION}
@@ -73,21 +72,26 @@ meson setup build --prefix=/usr
%build %build
meson compile -C build meson compile -C build
%check
meson test -C build
%install %install
meson install -C build --destdir %{buildroot} meson install -C build --destdir %{buildroot}
%files %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/locale/*
/usr/share/man/* /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 <marko@zivanovic.email> - 8.17.3-1 * Wed Jun 03 2026 Marko Zivanovic <marko@zivanovic.email> - 8.17.3-1
- Initial package. - Initial package.
+15
View File
@@ -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)