Add Dockerfile and RPM spec files for building libvips versions 8.17.3 and 8.18.2 on el10.
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
FROM rockylinux/rockylinux:10.1.20251123 AS base
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
ARG LIBVIPS_VERSION=8.18.2
|
||||
|
||||
RUN dnf update -y && dnf install -y \
|
||||
cmake \
|
||||
curl \
|
||||
epel-release \
|
||||
expat-devel \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
glib2-devel \
|
||||
libarchive-devel \
|
||||
libjpeg-turbo-devel \
|
||||
libpng-devel \
|
||||
librsvg2-devel \
|
||||
libtiff-devel \
|
||||
libwebp-devel \
|
||||
python3-pip \
|
||||
rpmdevtools \
|
||||
xz
|
||||
|
||||
RUN crb enable
|
||||
|
||||
RUN dnf install -y \
|
||||
libheif-devel \
|
||||
libimagequant-devel \
|
||||
libjxl-devel \
|
||||
LibRaw-devel \
|
||||
ninja-build \
|
||||
openexr-devel \
|
||||
openjpeg2-devel \
|
||||
rpmlint \
|
||||
&& dnf clean all
|
||||
|
||||
FROM base AS updated
|
||||
|
||||
RUN rpmdev-setuptree
|
||||
|
||||
RUN curl -L https://github.com/libvips/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.xz \
|
||||
-o rpmbuild/SOURCES/vips-${LIBVIPS_VERSION}.tar.xz
|
||||
|
||||
COPY libvips-${LIBVIPS_VERSION}.spec rpmbuild/SPECS/libvips-${LIBVIPS_VERSION}.spec
|
||||
|
||||
RUN rpmlint rpmbuild/SPECS/libvips-${LIBVIPS_VERSION}.spec
|
||||
|
||||
FROM updated AS build
|
||||
|
||||
RUN rpmbuild -ba rpmbuild/SPECS/libvips-${LIBVIPS_VERSION}.spec
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Reference in New Issue
Block a user