summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjorton <jorton@fedoraproject.org>2006-06-07 10:40:34 +0000
committerjorton <jorton@fedoraproject.org>2006-06-07 10:40:34 +0000
commitc1d75190cfd6ac7f0823be8ae6f19071b2d89c8e (patch)
tree162f724639582cd418ef223540207b46e874ecd5
parent48593e589212ce165918f066a4e1189155884dca (diff)
downloadhttpd-c1d75190cfd6ac7f0823be8ae6f19071b2d89c8e.tar.gz
httpd-c1d75190cfd6ac7f0823be8ae6f19071b2d89c8e.tar.xz
httpd-c1d75190cfd6ac7f0823be8ae6f19071b2d89c8e.zip
- require pkgconfig for -devel (#194152)
- fixes for installed support makefiles (special.mk et al)
-rw-r--r--httpd-2.1.10-apxs.patch31
-rw-r--r--httpd.spec8
2 files changed, 33 insertions, 6 deletions
diff --git a/httpd-2.1.10-apxs.patch b/httpd-2.1.10-apxs.patch
index 15afdeb..7b49222 100644
--- a/httpd-2.1.10-apxs.patch
+++ b/httpd-2.1.10-apxs.patch
@@ -5,7 +5,7 @@
--- httpd-2.2.2/support/apxs.in.apxs
+++ httpd-2.2.2/support/apxs.in
-@@ -25,7 +25,15 @@
+@@ -25,7 +25,18 @@
my %config_vars = ();
@@ -17,12 +17,15 @@
+ exit(1);
+}
+
-+my $installbuilddir = `pkg-config --variable=libdir apr-1` . "httpd/build";
++my $libdir = `pkg-config --variable=libdir apr-1`;
++chomp $libdir;
++
++my $installbuilddir = $libdir . "/httpd/build";
+
get_config_vars("$installbuilddir/config_vars.mk",\%config_vars);
# read the configuration variables once
-@@ -184,34 +192,6 @@
+@@ -184,34 +195,6 @@
}
}
@@ -57,7 +60,16 @@
sub get_config_vars{
my ($file, $rh_config) = @_;
-@@ -433,9 +413,9 @@
+@@ -291,7 +274,7 @@
+ $data =~ s|%NAME%|$name|sg;
+ $data =~ s|%TARGET%|$CFG_TARGET|sg;
+ $data =~ s|%PREFIX%|$prefix|sg;
+- $data =~ s|%INSTALLBUILDDIR%|$installbuilddir|sg;
++ $data =~ s|%LIBDIR%|$libdir|sg;
+
+ my ($mkf, $mods, $src) = ($data =~ m|^(.+)-=#=-\n(.+)-=#=-\n(.+)|s);
+
+@@ -433,9 +416,9 @@
if ($opt_p == 1) {
@@ -69,3 +81,14 @@
chomp($apu_libs);
$opt .= " ".$apu_libs." ".$apr_libs;
+@@ -646,8 +629,8 @@
+
+ builddir=.
+ top_srcdir=%PREFIX%
+-top_builddir=%PREFIX%
+-include %INSTALLBUILDDIR%/special.mk
++top_builddir=%LIBDIR%/httpd
++include %LIBDIR%/httpd/special.mk
+
+ # the used tools
+ APXS=apxs
diff --git a/httpd.spec b/httpd.spec
index 07bb6e4..54712fb 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -7,7 +7,7 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.2.2
-Release: 4
+Release: 5
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
Source1: index.html
@@ -65,7 +65,7 @@ web server.
Group: Development/Libraries
Summary: Development tools for the Apache HTTP server.
Obsoletes: secureweb-devel, apache-devel, stronghold-apache-devel
-Requires: apr-devel, apr-util-devel
+Requires: apr-devel, apr-util-devel, pkgconfig
Requires: httpd = %{version}-%{release}
%description devel
@@ -479,6 +479,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/httpd/build/*.sh
%changelog
+* Wed Jun 7 2006 Joe Orton <jorton@redhat.com> 2.2.2-5
+- require pkgconfig for -devel (#194152)
+- fixes for installed support makefiles (special.mk et al)
+
* Fri Jun 2 2006 Joe Orton <jorton@redhat.com> 2.2.2-4
- make -devel package multilib-safe (#192686)