]> git.pld-linux.org Git - packages/apache-mod_wsgi.git/commitdiff
- use conf.d for apache config fragment; rel 2
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 26 Dec 2007 18:38:08 +0000 (18:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_wsgi.spec -> 1.3

apache-mod_wsgi.spec

index 5be9a21f2e46ea3dd7d86da3ed7611b2eb719495..b09b43e866dba47e509f228dbee67b9d2f6ce3d0 100644 (file)
@@ -4,14 +4,14 @@ Summary:      WSGI interface for the Apache Web server
 Summary(pl.UTF-8):     Interfejs WSGI dla serwera WWW Apache
 Name:          apache-mod_%{mod_name}
 Version:       1.0
-Release:       1
+Release:       2
 License:       Apache Group License
 Group:         Networking/Daemons
 Source0:       http://modwsgi.googlecode.com/files/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: 44e20174c127a50a75f040f881b0a52c
 Source1:       %{name}.conf
+Patch0:                %{name}-apache-version.patch
 URL:           http://code.google.com/p/modwsgi/
-BuildRequires: apache >= 2.0.52-7
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0.52-7
 BuildRequires: apr-devel >= 1:1.0.0
@@ -23,8 +23,8 @@ Requires:     apache(modules-api) = %apache_modules_api
 Requires:      apr >= 1:1.0.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
-%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+%define                apacheconfdir   %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
+%define                apachelibdir    %(%{apxs} -q LIBEXECDIR 2>/dev/null)
 
 %description
 The mod_wsgi adapter is an Apache module that provides a WSGI
@@ -42,21 +42,23 @@ używania istniejących adapterów WSGI dla mod_python lub CGI.
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
+HTTPD_VERSION=$(rpm -q --qf '%{V}' apache-devel); export HTTPD_VERSION
 %configure \
        --with-apxs=%{apxs}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/61_mod_wsgi.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/61_mod_wsgi.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -72,5 +74,5 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
-%attr(755,root,root) %{_pkglibdir}/*.so
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{apachelibdir}/*.so
This page took 0.080698 seconds and 4 git commands to generate.