darling/rpm/build.bsh
Andy Neff 0e58836f09 RPM working on Fedora 27
I didn't add setsebool -P mmap_low_allowed 1 to the install script because
I didn't feel comfortable adding that
2018-01-23 11:16:59 -05:00

14 lines
482 B
Bash

#!/usr/bin/env bash
set -eu
yum-builddep -y /src/rpm/SPECS/darling.spec
if [ -e "/src/rpm/SOURCES/darling.tar.gz" ]; then
ln -s /src/rpm/SOURCES/darling.tar.gz /root/rpmbuild/SOURCES/
else
# Preparing tarball
tar --transform "s|^\./|/darling/|" -cf /root/rpmbuild/SOURCES/darling.tar.gz -C /src --exclude=.git --exclude SOURCES .
fi
ln -s /src/rpm/SOURCES/dkms.conf /root/rpmbuild/SOURCES/
#spectool -g -R /src/rpm/SPECS/darling.spec
rpmbuild -ba /src/rpm/SPECS/darling.spec