From ingvar at linpro.no Thu Oct 19 13:03:34 2006 From: ingvar at linpro.no (Ingvar Hagelund) Date: 19 Oct 2006 15:03:34 +0200 Subject: Building rpm package from svn checkout Message-ID: <83pscoh2zd.fsf@uname.e.linpro.no> I have added a redhat subdirectory to trunk/varnish-cache. To build a package from a raw checkout, do something like this: Follow the instructions at http://varnish.projects.linpro.no/wiki/Repository to get the source. Then enter the trunk directory and edit varnish-cache/redhat/varnish.spec. At least bump the version and/or release numbers. Then use something like this to build the rpm package: #!/bin/bash VERSION=$( awk ' /^Version:/ { print $2 } ' varnish-cache/redhat/varnish.spec ) ln -s varnish-cache varnish-$VERSION # We don't want svn tags in the rpmbuild tar $( find varnish-$VERSION/ -type d -name .svn | \ while read i; do echo -n "--exclude $i " done ) -cvzf varnish-$VERSION.tar.gz varnish-$VERSION/* rm varnish-$VERSION rpmbuild -tb varnish-$VERSION.tar.gz Ingvar --