From 1d13b2e1180ef555d91b0ecd727bf9597edeaeed Mon Sep 17 00:00:00 2001 From: Fredrik Skold Date: Sun, 19 Jul 2020 23:06:19 +0200 Subject: [PATCH] WIP: Trying to build rpm (#176.2) --- Dockerfile.rpm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile.rpm diff --git a/Dockerfile.rpm b/Dockerfile.rpm new file mode 100644 index 00000000..f83d5b18 --- /dev/null +++ b/Dockerfile.rpm @@ -0,0 +1,16 @@ +# docker build . -f Dockerfile.rpm -t rpm_builder + +FROM fedora + +RUN dnf install -y gcc g++ make rpm-build && \ + dnf install -y autoconf automake libtool +RUN dnf install -y rpm-devel rpmdevtools +COPY . /tmp +RUN cd /tmp && \ + rpmdev-setuptree && \ + rpmdev-newspec /tmp/libmbus.spec +RUN cd /tmp && \ + mkdir -p /tmp/buildroot /tmp/topdir && \ + rpmbuild -bb --buildroot /tmp/buildroot --topdir /tmp/topdir libmbus.spec || true ; \ + ls -al && \ + rpm -i *.rpm || true