summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2012-10-01 13:23:34 +0100
committerJoe Orton <jorton@redhat.com>2012-10-01 13:23:34 +0100
commit3027873c99e14ee31da60c9ab3b2b44f0525bb2c (patch)
tree56cd012cb3c4b7577eeda1ba493726b596c8c44c
parente3b60d787d13a6a27a0011ad7df984c1bc1f5692 (diff)
downloadhttpd-3027873c99e14ee31da60c9ab3b2b44f0525bb2c.tar.gz
httpd-3027873c99e14ee31da60c9ab3b2b44f0525bb2c.tar.xz
httpd-3027873c99e14ee31da60c9ab3b2b44f0525bb2c.zip
define PLATFORM in os.h using vendor string
-rw-r--r--httpd-2.4.3-release.patch16
-rw-r--r--httpd.spec10
2 files changed, 6 insertions, 20 deletions
diff --git a/httpd-2.4.3-release.patch b/httpd-2.4.3-release.patch
deleted file mode 100644
index 0b2fb77..0000000
--- a/httpd-2.4.3-release.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-
-Upstream-HEAD: vendor
-Upstream-2.0: vendor
-Upstream-Status: vendor-specific change
-
---- httpd-2.4.3/server/core.c.release
-+++ httpd-2.4.3/server/core.c
-@@ -3189,7 +3189,7 @@ static void set_banner(apr_pool_t *pconf
- ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MAJORVERSION);
- }
- else {
-- ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ")");
-+ ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (@RELEASE@)");
- }
-
- /*
diff --git a/httpd.spec b/httpd.spec
index 67d8c49..dde0730 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -8,7 +8,7 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.4.3
-Release: 8%{?dist}
+Release: 9%{?dist}
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: index.html
@@ -43,7 +43,6 @@ Patch3: httpd-2.4.1-deplibs.patch
Patch5: httpd-2.4.3-layout.patch
Patch6: httpd-2.4.3-apctl-systemd.patch
# Features/functional changes
-Patch20: httpd-2.4.3-release.patch
Patch23: httpd-2.4.1-export.patch
Patch24: httpd-2.4.1-corelimit.patch
Patch25: httpd-2.4.1-selinux.patch
@@ -168,8 +167,8 @@ authentication to the Apache HTTP Server.
%patch50 -p1 -b .r1374214+
%patch51 -p1 -b .r1387633
-# Patch in vendor/release string
-sed "s/@RELEASE@/%{vstring}/" < %{PATCH20} | patch --fuzz=%{_default_patch_fuzz} -p1
+# Patch in the vendor string
+sed -i '/^#define PLATFORM/s/Unix/%{vstring}/' os/unix/os.h
# Prevent use of setcap in "install-suexec-caps" target.
sed -i '/suexec/s,setcap ,echo Skipping setcap for ,' Makefile.in
@@ -575,6 +574,9 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/rpm/macros.httpd
%changelog
+* Mon Oct 1 2012 Joe Orton <jorton@redhat.com> - 2.4.3-9
+- define PLATFORM in os.h using vendor string
+
* Mon Oct 1 2012 Joe Orton <jorton@redhat.com> - 2.4.3-8
- use systemd script unconditionally (#850149)