Update Dockerfile and spec file to include additional build dependencies for libvips

This commit is contained in:
2026-06-06 00:23:20 +02:00
parent c937cb050b
commit f798ed5c99
2 changed files with 45 additions and 29 deletions
+6
View File
@@ -25,6 +25,10 @@ RUN dnf update -y && dnf install -y \
RUN crb enable RUN crb enable
RUN dnf install -y \ RUN dnf install -y \
fftw-devel \
fontconfig-devel \
ImageMagick-devel \
libexif-devel \
libheif-devel \ libheif-devel \
libimagequant-devel \ libimagequant-devel \
libjxl-devel \ libjxl-devel \
@@ -32,6 +36,8 @@ RUN dnf install -y \
ninja-build \ ninja-build \
openexr-devel \ openexr-devel \
openjpeg2-devel \ openjpeg2-devel \
openslide-devel \
poppler-devel \
rpmlint \ rpmlint \
&& dnf clean all && dnf clean all
+39 -29
View File
@@ -4,34 +4,27 @@
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
BuildRequires: expat-devel BuildRequires: expat-devel
BuildRequires: fftw-devel
BuildRequires: fontconfig-devel
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: glib2-devel BuildRequires: glib2-devel
BuildRequires: ImageMagick-devel
BuildRequires: libarchive-devel BuildRequires: libarchive-devel
BuildRequires: libexif-devel
BuildRequires: libheif-devel BuildRequires: libheif-devel
BuildRequires: libimagequant-devel BuildRequires: libimagequant-devel
BuildRequires: libjpeg-turbo-devel BuildRequires: libjpeg-turbo-devel
@@ -44,6 +37,8 @@ BuildRequires: libwebp-devel
BuildRequires: ninja-build BuildRequires: ninja-build
BuildRequires: openexr-devel BuildRequires: openexr-devel
BuildRequires: openjpeg2-devel BuildRequires: openjpeg2-devel
BuildRequires: openslide-devel
BuildRequires: poppler-devel
BuildRequires: python3-pip BuildRequires: python3-pip
@@ -51,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}
@@ -67,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
* Wed Jun 03 2026 Marko Zivanovic <marko@zivanovic.email> - 8.18.2-1 %{_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
- Initial package. - Initial package.