Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (12 sloc) 0.748 kb
#!/bin/sh
whereami=$(dirname $0)
if [ ! -f "/etc/rpm/macros.dist" ]; then echo "please install 'buildsys-macros' rpm and try again" ; exit 1 ; fi
if [ ! -f "$(which rpmbuild)" ]; then echo "please install 'rpm-build' rpm and try again" ; exit 1 ; fi
if [ ! -f "$(which spectool)" ]; then echo "please install 'rpmdevtools' rpm and try again" ; exit 1 ; fi
if [ ! -f "$(which rpmdev-setuptree)" ]; then echo "please install 'rpmdevtools' rpm and try again" ; exit 1 ; fi
# creates ~/rpmbuild
/usr/bin/rpmdev-setuptree
cp -f ${whereami}/runit.spec ~/rpmbuild/SPECS/
cp -f ${whereami}/*.patch ~/rpmbuild/SOURCES/
/usr/bin/spectool -C ~/rpmbuild/SOURCES/ -g ${whereami}/runit.spec
rpmbuild -bb ~/rpmbuild/SPECS/runit.spec
Jump to Line
Something went wrong with that request. Please try again.