]> git.pld-linux.org Git - packages/apache-mod_python.git/blobdiff - apache-mod_python.spec
- outdated
[packages/apache-mod_python.git] / apache-mod_python.spec
index 9e7fe1b013202e7892fea08b8bd46cf7645311ac..0135a3f12ade91b325326f0c0c7f2b13e213ac8d 100644 (file)
@@ -18,16 +18,16 @@ Summary(sk):        Interpreter jazyka Perl pre webov
 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.1.4
-Release:       4
+Version:       3.2.8
+Release:       3
 License:       Apache Group License
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/modpython/mod_%{mod_name}-%{version}.tgz
-# Source0-md5: 607175958137b06bcda91110414c82a1
+# Source0-md5: d03452979a6a334f73cc2b95b39db331
 Source1:       %{name}.conf
-Patch0:                %{name}-lib64.patch
-Patch1:                %{name}-apr-status-is-success.patch
-Patch2:                %{name}-httpd-not-needed.patch
+Patch0:                %{name}-apr-status-is-success.patch
+Patch1:                %{name}-httpd-not-needed.patch
+Patch2:                %{name}-ldflags.patch
 URL:           http://www.modpython.org/
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0.52-7
@@ -43,7 +43,7 @@ Requires:     apache(modules-api) = %apache_modules_api
 Requires:      apr >= 1:1.0.0
 # apache.py uses pdb module
 Requires:      python-devel-tools
-%pyrequires_eq python
+%requires_eq   python-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -126,21 +126,15 @@ prestandan j
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
-%if "%{_libdir}" == "%{_prefix}/lib64"
-%patch0
-%endif
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
-
-# new apache needs it
-CFLAGS="-DEAPI %{rpmcflags}"
 %configure \
        --with-apxs=%{apxs}
-
 %{__make} dso
 
 %install
@@ -159,7 +153,7 @@ rm -rf $RPM_BUILD_ROOT
 %post
 %service -q httpd restart
 
-%preun
+%postun
 if [ "$1" = "0" ]; then
        %service -q httpd restart
 fi
@@ -167,6 +161,7 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc doc-html/* README COPYRIGHT NEWS CREDITS
+%doc examples
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
 %dir %{py_sitedir}/mod_%{mod_name}
This page took 0.037899 seconds and 4 git commands to generate.