diff --git a/python-paste.spec b/python-paste.spec index b703be5..fcfdc84 100644 --- a/python-paste.spec +++ b/python-paste.spec @@ -1,9 +1,8 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: python-paste Version: 1.7.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tools for using a Web Server Gateway Interface stack Group: System Environment/Libraries License: MIT @@ -25,6 +24,7 @@ interfaces. %prep %setup -q -n Paste-%{version} +# Strip #! lines that make these seeme like scripts %{__sed} -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py # clean docs directory @@ -32,36 +32,31 @@ pushd docs rm StyleGuide.txt *.css */*.css */*.js popd + %build %{__python} setup.py build %install rm -rf %{buildroot} -%{__python} setup.py install --single-version-externally-managed \ - --skip-build -O1 --root=%{buildroot} - -echo '%defattr (0644,root,root,0755)' > pyfiles -find %{buildroot}%{python_sitelib}/paste -type d | \ - sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles -find %{buildroot}%{python_sitelib}/paste -not -type d -not -name '*.pyo' | \ - sed 's:%{buildroot}\(.*\):\1:' >> pyfiles -find %{buildroot}%{python_sitelib}/paste -not -type d -name '*.pyo' | \ - sed 's:%{buildroot}\(.*\):%ghost \1:' >> pyfiles - +%{__python} setup.py install --skip-build --root %{buildroot} %clean rm -rf %{buildroot} -%files -f pyfiles +%files %defattr(-,root,root,-) %doc docs/* -%{python_sitelib}/Paste-%{version}-py%{pyver}* +%{python_sitelib}/* %changelog +* Mon Jun 22 2009 Kyle VanderBeek - 1.7.2-3 +- Package formerly ghost'ed .pyo files +- Update to current python package methods + * Thu Feb 26 2009 Fedora Release Engineering - 1.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild