Commit 45e94d6f authored by Daniel Brown's avatar Daniel Brown

Adding rpm packaging

parent 5eede023
FROM scientificlinux/sl:7
RUN yum -y update
RUN yum -y install git rpm-build gcc gsl-devel make gcc-c++
RUN git clone
ADD . /host
ENTRYPOINT "python /root/finesse/packaging/rpm/"
\ No newline at end of file
Builds an RPM package for the Finesse binary
Build docker image first:
docker build -t finesse/sl7 .
import os
from subprocess import call
call("git pull".split())
call("./ --build".split())
call("mkdir -p rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}".split())
with open(".rpmmacros") as file:
%_topdir %(echo $HOME)/rpmbuild
%_tmppath %{_topdir}/tmp
# mkdir finesse-{version}
# mkdir -p finesse-{version}/usr/bin
# mkdir -p finesse-{version}/etc/finesse
# install -m 755 toybinprog toybinprog-1.0/usr/bin
# install -m 644 toybinprog.conf toybinprog-1.0/etc/toybinprog/
# tar -zcvf toybinprog-1.0.tar.gz toybinprog-1.0/
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment