From 0179437b8aca6a4ba49c977c8f4ed840d2183d4f Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Wed, 30 Nov 2011 19:41:06 +0000 Subject: [PATCH] RPM: Make it possible to build mod_socache_dc against distcache. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1208727 13f79535-47bb-0310-9956-ffa450edef68 --- build/rpm/httpd.spec.in | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/build/rpm/httpd.spec.in b/build/rpm/httpd.spec.in index 73ba31688a..8c0405270c 100644 --- a/build/rpm/httpd.spec.in +++ b/build/rpm/httpd.spec.in @@ -15,7 +15,7 @@ Group: System Environment/Daemons BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: autoconf, perl, pkgconfig, findutils BuildRequires: zlib-devel, libselinux-devel -BuildRequires: apr-devel >= 1.4.0, apr-util-devel >= 1.3.0, pcre-devel >= 5.0, distcache-devel >= 1.4 +BuildRequires: apr-devel >= 1.4.0, apr-util-devel >= 1.3.0, pcre-devel >= 5.0 Requires: initscripts >= 8.36, /etc/mime.types Obsoletes: httpd-suexec Requires(pre): /usr/sbin/useradd @@ -98,6 +98,16 @@ a filter to rewrite HTML links within web content when used within a reverse proxy environment. The mod_xml2enc module provides enhanced charset/internationalisation support for mod_proxy_html. +%package -n mod_socache_dc +Group: System Environment/Daemons +Summary: Distcache shared object cache module for the Apache HTTP server +BuildRequires: distcache-devel +Requires: httpd = %{epoch}:%{version}-%{release}, httpd-mmn = %{mmn} + +%description -n mod_socache_dc +The mod_socache_dc module for the Apache HTTP server allows the shared +object cache to use the distcache shared caching mechanism. + %package -n mod_ssl Group: System Environment/Daemons Summary: SSL/TLS module for the Apache HTTP server @@ -150,7 +160,7 @@ rm -rf srclib/{apr,apr-util,pcre} --enable-pie \ --with-pcre \ --enable-mods-shared=all \ - --enable-ssl --with-ssl --enable-distcache \ + --enable-ssl --with-ssl --enable-socache-dc \ --disable-imagemap make %{?_smp_mflags} @@ -461,6 +471,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/httpd/modules/mod_proxy_html.so %{_libdir}/httpd/modules/mod_xml2enc.so +%files -n mod_socache_dc +%defattr(-,root,root) +%{_libdir}/httpd/modules/mod_socache_dc.so + %files -n mod_ssl %defattr(-,root,root) %{_libdir}/httpd/modules/mod_ssl.so -- 2.50.1