]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport of the RPM build scripts to v2.0
authorGraham Leggett <minfrin@apache.org>
Sun, 30 Mar 2003 19:02:57 +0000 (19:02 +0000)
committerGraham Leggett <minfrin@apache.org>
Sun, 30 Mar 2003 19:02:57 +0000 (19:02 +0000)
PR:
Obtained from: Joe Orton <jorton@redhat.com>
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@99124 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
buildconf

diff --git a/CHANGES b/CHANGES
index 7ca69227bfe5e82e7e44b806a6625ae5c323d306..fa03a8e32cb15b58029dc9f42ba24099aee8950e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.45
 
+  *) Added an rpm build script.
+     [Graham Leggett, Joe Orton <jorton@redhat.com>]
+
   *) Simpler, faster code path for request header scanning  [Brian Pane]
 
   *) SECURITY:  Eliminated leaks of several file descriptors to child
index 71808600d0594b84a63d988a66e33d0e5e40cd8d..8854a7679eacdc8ee37238d1e5ace16c568f9b1a 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -181,4 +181,19 @@ echo rebuilding configure
 rm -f config.cache
 ${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
 
+echo rebuilding rpm spec file
+( VMMN=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include \`pwd\`/include/ap_mmn.h | grep -e '^[0-9]'`
+  REVISION=`echo AP_SERVER_MAJORVERSION.AP_SERVER_MINORVERSION.AP_SERVER_PATCHLEVEL | cpp -include \`pwd\`/include/ap_release.h | tr -d "\" " | grep -e '^[0-9.\-]'`
+  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/httpd.spec.in | \
+  sed -e "s/APACHE_VERSION/$VERSION/" \
+      -e "s/APACHE_RELEASE/$RELEASE/" \
+      -e "s/APACHE_MMN/$VMMN/" \
+  > httpd.spec )
+
 exit 0