[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-dev
Subject:    Building rpm package from svn checkout
From:       ingvar () linpro ! no (Ingvar Hagelund)
Date:       2006-10-19 13:03:34
Message-ID: 83pscoh2zd.fsf () uname ! e ! linpro ! no
[Download RAW message or body]

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


-- 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic