%include /usr/lib/rpm/macros.python
%define mod_name python
%define apxs /usr/sbin/apxs
+
Summary: An embedded Python interpreter for the Apache Web server
Summary(cs): Vestavìný interpret Pythonu pro WWW server Apache
Summary(da): En indbygget Python-fortolker for webtjeneren Apache
Summary(is): Perl túlkur fyrir Apache vefþjóninn
Summary(it): Interprete Python integrato per il server Web Apache
Summary(ja): Apache Web ¥µ¡¼¥Ð¡¼ÍѤÎÁȹþ¤ß Perl ¥¤¥ó¥¿¡¼¥×¥ê¥¿
-Summary(no): En Python-fortolker for webtjeneren Apache
+Summary(nb): En Python-fortolker for webtjeneren Apache
Summary(pl): Wbudowany interpreter jêzyka Python dla serwera WWW Apache
Summary(pt): Um interpretador de Perl embebido para o servidor Web Apache
Summary(ru): ÷ÓÔÒÏÅÎÎÙÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒ Perl ÄÌÑ WWW-ÓÅÒ×ÅÒÁ Apache
Summary(sl): Vkljuèeni pythonski tolmaè za spletni stre¾nik Apache
Summary(sv): En inbyggd Python-interpretator för webbservern Apache
Name: apache-mod_%{mod_name}
-Version: 3.0.3
-Release: 1
+Version: 3.1.2b
+Release: 3
License: Apache Group License
Group: Networking/Daemons
-Source0: http://www.modpython.org/dist/mod_%{mod_name}-%{version}.tgz
-# Source0-md5: 39f8db0bafac6ce241599d2299b5d853
+Source0: http://www.apache.org/dist/httpd/modpython/mod_%{mod_name}-%{version}.tgz
+# Source0-md5: 0f561ba64e08f2990c9f22a0527ec5b5
Source1: %{name}.conf
-Patch0: %{name}-DESTDIR.patch
-Patch1: %{name}-no-compile.patch
+Patch0: %{name}-right-mutex-perms.patch
+Patch1: %{name}-lib64.patch
URL: http://www.modpython.org/
+BuildRequires: %{apxs}
+BuildRequires: apache-devel >= 2.0.44
+BuildRequires: apr-devel >= 1:0.9.4-1
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: apache-devel >= 2.0.44
+BuildRequires: flex >= 2.5.31
BuildRequires: python-devel >= 2.2
BuildRequires: rpm-pythonprov
-BuildRequires: %{apxs}
-Prereq: %{_sbindir}/apxs
+Requires(post,preun): %{apxs}
Requires: apache >= 2.0.44
%pyrequires_eq python
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n mod_%{mod_name}-%{version}
%patch0 -p1
-%patch1 -p1
+%if "%{_libdir}" == "%{_prefix}/lib64"
+%patch1
+%endif
%build
%{__aclocal}