%define mod_name python
Summary: A Python for the Apache Web server
Name: apache-mod_%{mod_name}
-Version: 2.4
+Version: 2.4.1
Release: 1
License: distributable
Group: Networking/Daemons
%define python_includedir %{python_prefix}/include/python%{python_version}
%define python_sitedir %{python_libdir}/site-packages
-
%description
mod_python allows embedding Python within the Apache Web server
for a considerable boost in performance and added flexibility
cd src
/usr/sbin/apxs -I%{python_includedir} $LDFLAGS -o mod_%{mod_name}.so -c mod_%{mod_name}.c
cd ..
-gzip -9nf README COPYRIGHT
+gzip -9nf README COPYRIGHT NEWS CREDITS
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{apache_moddir},%{python_sitedir}/mod_%{mod_name}}
-install -d $RPM_BUILD_ROOT%{apache_moddir}
install src/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apache_moddir}
+
strip --strip-unneeded $RPM_BUILD_ROOT%{apache_moddir}/*
-install -d $RPM_BUILD_ROOT%{python_sitedir}/mod_%{mod_name}
install lib/python/mod_python/* $RPM_BUILD_ROOT%{python_sitedir}/mod_%{mod_name}
%post
%files
%defattr(644,root,root,755)
+%doc doc/*
+%doc {README,COPYRIGHT,NEWS,CREDITS}.gz
%attr(755,root,root) %{apache_moddir}/*
%{python_sitedir}/mod_%{mod_name}
-%doc doc/*
-%doc {README,COPYRIGHT}.gz