diff options
author | Graham Leggett <minfrin@apache.org> | 2004-07-01 21:21:59 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2004-07-01 21:21:59 +0000 |
commit | 885e9267f6d9fdddbe37205d33a67bbb1eb67c4d (patch) | |
tree | 003af44defa1e51607bc1c29c88cba6cf51101fc /buildconf | |
parent | de1954ca0505b68c84500c7e9d4482a30cf71dca (diff) | |
download | apr-885e9267f6d9fdddbe37205d33a67bbb1eb67c4d.tar.gz |
Add an RPM spec file derived from Fedora Core.
PR:
Obtained from:
Submitted by:
Reviewed by: jorton
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -83,4 +83,20 @@ rm -rf autom4te*.cache echo "Generating 'make' outputs ..." build/gen-build.py make +# Create RPM Spec file +if [ -f `which cut` ]; then + echo rebuilding rpm spec file + ( REVISION=`build/get-version.sh all include/apr_version.h APR` + VERSION=`echo $REVISION | cut -d- -s -f1` + RELEASE=`echo $REVISION | cut -d- -s -f2` + if [ "x$VERSION" = "x" ]; then + VERSION=$REVISION + RELEASE=1 + fi + cat ./build/rpm/apr.spec.in | \ + sed -e "s/APR_VERSION/$VERSION/" \ + -e "s/APR_RELEASE/$RELEASE/" \ + > apr.spec ) +fi + exit 0 |