Skip to content

Commit

Permalink
WIP: Trying to build rpm (#176.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-skold committed Jul 19, 2020
1 parent 617bf7f commit 7f8bf2b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile.rpm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f8bf2b

Please sign in to comment.