Merge pull request 'feat: unrar 7.11' (#32) from benvin/unrar into master
All checks were successful
Deploy / deploy-8 (push) Successful in 3s
Deploy / deploy-9 (push) Successful in 3s

Reviewed-on: https://git.query.consul/unkin/rpmbuilder/pulls/32
This commit is contained in:
Ben Vincent 2025-05-25 13:37:28 +10:00
commit 715d859bb5
3 changed files with 64 additions and 0 deletions

1
rpms/unrar/7.11/release Normal file
View File

@ -0,0 +1 @@
1

25
rpms/unrar/Dockerfile Normal file
View File

@ -0,0 +1,25 @@
# Start with the AlmaLinux 8.10 base image
FROM git.query.consul/unkin/almalinux8-rpmbuilder:latest
# Create output directory for RPMs
RUN mkdir -p /app/dist
# Set working directory
WORKDIR /app
ARG PACKAGE_RELEASE
ENV PACKAGE_RELEASE=${PACKAGE_RELEASE}
ARG PACKAGE_VERSION
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
# Copy nfpm.yaml from the context into the container
COPY nfpm.yaml /app/nfpm.yaml
# Download the required files
RUN export DOWNLOAD_VERSION=$(echo $PACKAGE_VERSION | sed s/\\.//) && \
wget -O /app/rarlinux.tar.gz https://www.rarlab.com/rar/rarlinux-x64-${DOWNLOAD_VERSION}.tar.gz && \
tar xf /app/rarlinux.tar.gz && \
mv /app/rar/unrar /app/
# Default command to build RPMs
CMD nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm

38
rpms/unrar/nfpm.yaml Normal file
View File

@ -0,0 +1,38 @@
# nfpm.yaml
name: unrar
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: amd64
platform: linux
section: default
priority: extra
description: "WinRAR is a powerful archive manager. It can backup your data and reduce the size of email attachments, open and unpack RAR, ZIP and other files downloaded from Internet, create new archives in RAR and ZIP file format."
maintainer: RARLAB
homepage: https://www.rarlab.com/
license: Freeware (UNRAR 7.11 freeware Copyright (c) 1993-2025 Alexander Roshal)
disable_globbing: false
replaces:
- unrar
provides:
- unrar
# Files to include in the package
contents:
- src: /app/unrar
dst: /usr/bin/unrar
file_info:
mode: 0755
owner: root
group: root
# Scripts to run during installation/removal (optional)
# scripts:
# preinstall: ./scripts/preinstall.sh
# postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh
# postremove: ./scripts/postremove.sh