Ticket #2966: build-rpm.sh

File build-rpm.sh, 270 bytes (added by lukatmyshu, 12 years ago)

short script to actually build the RPM

Line 
1#!/bin/sh
2
3VERSION=2.5.0
4RPMBUILDDIR=`rpm --eval "%{_topdir}"`
5SOURCE_TARBALL="Twisted-$VERSION.tar"
6rm -f $RPMBUILDDIR/SOURCES/twisted-$VERSION || true
7cp $SOURCE_TARBALL $RPMBUILDDIR/SOURCES
8cp *.patch $RPMBUILDDIR/SOURCES
9rpmbuild -ba --clean --rmsource twisted.spec