[subversion] fix build with httpd 2.4

jorton jorton at fedoraproject.org
Fri Mar 30 19:06:25 UTC 2012


commit 061c4e0e93f81bd73a061d441d0399d979d1d078
Author: Joe Orton <jorton at redhat.com>
Date:   Fri Mar 30 20:05:57 2012 +0100

    fix build with httpd 2.4

 subversion.spec |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/subversion.spec b/subversion.spec
index f363f90..9b4a11b 100644
--- a/subversion.spec
+++ b/subversion.spec
@@ -11,10 +11,13 @@
 
 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
+%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
+%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
+
 Summary: A Modern Concurrent Version Control System
 Name: subversion
 Version: 1.7.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: ASL 2.0
 Group: Development/Tools
 URL: http://subversion.apache.org/
@@ -108,7 +111,7 @@ passwords in the KDE Wallet.
 %package -n mod_dav_svn
 Group: System Environment/Daemons
 Summary: Apache httpd module for Subversion server
-Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing)
+Requires: httpd-mmn = %{_httpd_mmn}
 Requires: subversion-libs%{?_isa} = %{version}-%{release}
 BuildRequires: httpd-devel >= 2.0.45
 
@@ -177,7 +180,8 @@ This package includes supplementary tools for use with Subversion.
 #  2) the swig bindings are regenerated using the system swig
 # (2) is not ideal since typically upstream test with a different
 # swig version
-./autogen.sh --release
+# This PATH order is makes the fugly test for libtoolize work...
+PATH=/usr/bin:$PATH ./autogen.sh --release
 
 # fix shebang lines, #111498
 perl -pi -e 's|/usr/bin/env perl -w|/usr/bin/perl -w|' tools/hook-scripts/*.pl.in
@@ -195,7 +199,7 @@ export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path} CFLAGS="$RPM_OPT_FLAGS"
 %configure --with-apr=%{_prefix} --with-apr-util=%{_prefix} \
         --with-swig --with-neon=%{_prefix} \
         --with-ruby-sitedir=%{ruby_vendorarchdir} \
-        --with-apxs=%{_sbindir}/apxs --disable-mod-activation \
+        --with-apxs=%{_httpd_apxs} --disable-mod-activation \
         --disable-static --with-sasl=%{_prefix} \
         --disable-neon-version-check \
         --with-gnome-keyring \
@@ -453,6 +457,9 @@ fi
 %endif
 
 %changelog
+* Fri Mar 30 2012 Joe Orton <jorton at redhat.com> - 1.7.4-2
+- fix build with httpd 2.4
+
 * Mon Mar 12 2012 Joe Orton <jorton at redhat.com> - 1.7.4-1
 - update to 1.7.4
 - fix build with httpd 2.4


More information about the scm-commits mailing list