X-Git-Url: https://git.pld-linux.org/?p=packages%2Fapache-mod_python.git;a=blobdiff_plain;f=apache-mod_python.spec;h=875c2742b58494a257c6f10423f56ffa8357ff1f;hp=1599a789622e2dd4ab7d9c4e980e085dd3e3dc64;hb=d45722914cbbee7b0a36d5713cc6c5a9aca8d7e3;hpb=97a6059e3bbdf971fd9faeb704ec29be334640c1 diff --git a/apache-mod_python.spec b/apache-mod_python.spec index 1599a78..875c274 100644 --- a/apache-mod_python.spec +++ b/apache-mod_python.spec @@ -20,7 +20,7 @@ Summary(pl.UTF-8): Wbudowany interpreter języka Python dla serwera WWW Apache Summary(sv.UTF-8): En inbyggd Python-interpretator för webbservern Apache Name: apache-mod_%{mod_name} Version: 3.5.0 -Release: 14 +Release: 27 License: Apache Group: Networking/Daemons/HTTP Source0: http://dist.modpython.org/dist/mod_%{mod_name}-%{version}.tgz @@ -30,6 +30,8 @@ Source2: %{name}3.conf Patch0: %{name}-httpd-not-needed.patch Patch1: no-git.patch Patch2: set-request-response-status.patch +Patch3: install.patch +Patch4: import.patch URL: http://www.modpython.org/ BuildRequires: apache-devel >= 2.0.52-7 BuildRequires: apr-devel >= 1:1.0.0 @@ -237,6 +239,8 @@ prestandan jämfört med den traditionella CGI-metoden. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 %build %{__aclocal} @@ -251,7 +255,9 @@ prestandan jämfört med den traditionella CGI-metoden. %{__make} dso install -d apache-mod_python{%{apachelibdir},%{apacheconfdir},%{_bindir}} %{__make} install \ - DESTDIR=`pwd`/apache-mod_python + DESTDIR=`pwd`/apache-mod_python \ + PY_SITESCRIPTDIR=%{py_sitescriptdir} \ + PY_SITEDIR=%{py_sitedir} %endif %if %{with python3} @@ -263,7 +269,9 @@ install -d apache-mod_python{%{apachelibdir},%{apacheconfdir},%{_bindir}} %{__make} dso install -d apache-mod_python3{%{apachelibdir},%{apacheconfdir},%{_bindir}} %{__make} install \ - DESTDIR=`pwd`/apache-mod_python3 + DESTDIR=`pwd`/apache-mod_python3 \ + PY_SITESCRIPTDIR=%{py3_sitescriptdir} \ + PY_SITEDIR=%{py3_sitedir} %{__mv} apache-mod_python3%{_bindir}/mod_python{,3} %{__mv} apache-mod_python3%{apachelibdir}/mod_python{,3}.so %endif