summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2004-07-01 21:21:59 +0000
committerGraham Leggett <minfrin@apache.org>2004-07-01 21:21:59 +0000
commit885e9267f6d9fdddbe37205d33a67bbb1eb67c4d (patch)
tree003af44defa1e51607bc1c29c88cba6cf51101fc /buildconf
parentde1954ca0505b68c84500c7e9d4482a30cf71dca (diff)
downloadapr-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-xbuildconf16
1 files changed, 16 insertions, 0 deletions
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