From 885e9267f6d9fdddbe37205d33a67bbb1eb67c4d Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Thu, 1 Jul 2004 21:21:59 +0000 Subject: 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 --- buildconf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'buildconf') diff --git a/buildconf b/buildconf index e3ecfff65..b16441f4a 100755 --- a/buildconf +++ b/buildconf @@ -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 -- cgit v1.2.1