diff --git a/.cvsignore b/.cvsignore index e69de29..9488446 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Paste-0.9.3.tar.gz diff --git a/python-paste.spec b/python-paste.spec new file mode 100644 index 0000000..ccf591d --- /dev/null +++ b/python-paste.spec @@ -0,0 +1,74 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-paste +Version: 0.9.3 +Release: 4%{?dist} +Summary: Tools for using a Web Server Gateway Interface stack +Group: System Environment/Libraries +License: MIT +URL: http://pythonpaste.org +Source0: http://cheeseshop.python.org/packages/source/P/Paste/Paste-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python-setuptools + +%description +These provide several pieces of "middleware" (or filters) that can be nested +to build web applications. Each piece of middleware uses the WSGI (PEP 333) +interface, and should be compatible with other middleware based on those +interfaces. + + +%prep +%setup -q -n Paste-%{version} +%{__sed} -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py + +# clean docs directory +pushd docs +rm StyleGuide.txt *.css */*.css rebuild doc.conf template.tmpl */*.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 + + + +%clean +rm -rf %{buildroot} + + +%files -f pyfiles +%defattr(-,root,root,-) +%doc docs/* +%{python_sitelib}/Paste-%{version}-py2.4* + + +%changelog +* Wed Jul 19 2006 Luke Macken - 0.9.3-4 +- Use a smarter shebang removal expression + +* Wed Jul 19 2006 Luke Macken - 0.9.3-3 +- Fix doc inclusion + +* Sat Jul 15 2006 Luke Macken - 0.9.3-2 +- Clean up docs directory +- Remove shebang from from non-executable scripts +- Use consistent build root variables + +* Mon Jul 10 2006 Luke Macken - 0.9.3-1 +- Initial package diff --git a/sources b/sources index e69de29..00f95d1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c1b8f08d0a7e9ccb97e6ee524b26d39f Paste-0.9.3.tar.gz