Update to work on Fedora 31 with newest version

Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
This commit is contained in:
Andy Neff 2020-08-18 19:25:59 -04:00
parent c03f2b9702
commit 02a78f36cf
4 changed files with 21 additions and 6 deletions

View File

@ -1,9 +1,11 @@
ARG OS=fedora:30
ARG OS=fedora:31
FROM ${OS}
SHELL ["bash", "-euxvc"]
RUN dnf install -y rpm-build dnf-utils rpmdevtools; \
source /etc/os-release; \
dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-${VERSION_ID}.noarch.rpm; \
dnf clean all
# Bootstrap
@ -13,7 +15,9 @@ RUN dnf install -y bison cairo-devel clang cmake dkms flex fontconfig-devel.x86_
libglvnd-devel libjpeg-turbo-devel libjpeg-turbo-devel.i686 \
libtiff-devel libtiff-devel.i686 mesa-libGL-devel mesa-libEGL-devel \
python2 systemd-devel make libxml2-devel elfutils-libelf-devel \
libbsd-devel; \
libbsd-devel ffmpeg-devel pulseaudio-libs-devel openssl-devel \
giflib-devel libXrandr-devel libXcursor-devel libxkbfile-devel \
dbus-devel mesa-libGLU-devel; \
dnf clean all
RUN mkdir -p /root/rpmbuild/SOURCES

View File

@ -1,5 +1,5 @@
PACKAGE_NAME=darling-mach
PACKAGE_VERSION=0.1
PACKAGE_VERSION=0.1.20200331
BUILT_MODULE_NAME="$PACKAGE_NAME"
BUILT_MODULE_LOCATION=lkm/
DEST_MODULE_LOCATION[0]=/extra

View File

@ -4,8 +4,8 @@
%define debug_package %{nil}
Name: darling
Version: 0.1
Release: 4%{?dist}
Version: 0.1.20200331
Release: 1%{?dist}
Summary: Darling
Group: Utility
@ -26,6 +26,8 @@ BuildRequires: libjpeg-turbo-devel(x86-32) libtiff-devel(x86-32)
BuildRequires: libglvnd-devel mesa-libGL-devel mesa-libEGL-devel
BuildRequires: libxml2-devel elfutils-libelf-devel
BuildRequires: libbsd-devel
BuildRequires: ffmpeg-devel pulseaudio-libs-devel openssl-devel giflib-devel
BuildRequires: libXrandr-devel libXcursor-devel libxkbfile-devel dbus-devel mesa-libGLU-devel
# Normally rpm will pick up all the mac pieces as dependencies. Disable that.
AutoReqProv: no
@ -69,6 +71,12 @@ cp -dr --no-preserve=ownership build/src/startup/rtsig.h %{?buildroot}/usr/src/%
%{__install} -m 644 %{SOURCE1} %{?buildroot}/usr/src/%{name}-mach-%{version}
# Note: This is run AFTER the new version is installed... If the new version
# has the same version number as the old, this means the new version is
# uninstalled.
# Order of events:
# - New version %pre -> (installs files) -> %post
# - Old version %preun -> (uninstalls files) -> %postun
%preun mach
/usr/sbin/dkms remove -m %{name}-mach -v %{version} --all || :
@ -90,6 +98,9 @@ fi
%{_prefix}/src/%{name}-mach-%{version}
%changelog
* Tue Aug 18 2020 Andy Neff <andy@visionsystemsinc.com> - 0.1.20200331-1
- Update for latest version and Fedora 31
* Mon Aug 12 2019 Andy Neff <andy@visionsystemsinc.com> - 0.1-4
- Update for Fedora 30

View File

@ -5,7 +5,7 @@ services:
build:
context: .
args:
- OS=${RPM_OS-fedora:30}
- OS=${RPM_OS-fedora:31}
volumes:
- ..:/src:ro
- ./RPMS:/root/rpmbuild/RPMS