[python-strainer] Initial commit

Luke Macken lmacken at fedoraproject.org
Mon Mar 12 15:07:44 UTC 2012


commit f2f12ea1e89c955aff746ec28ddabed9851edaa8
Author: Luke Macken <lmacken at redhat.com>
Date:   Mon Mar 12 08:06:32 2012 -0700

    Initial commit

 .gitignore           |    1 +
 python-strainer.spec |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..53310f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/strainer-0.1.4.tar.gz
diff --git a/python-strainer.spec b/python-strainer.spec
new file mode 100644
index 0000000..a501d68
--- /dev/null
+++ b/python-strainer.spec
@@ -0,0 +1,52 @@
+%if 0%{?rhel} <= 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
+%global modname strainer
+
+Name:           python-strainer
+Version:        0.1.4
+Release:        2%{?dist}
+Summary:        Tools to allow developers to cleanup web serialization objects
+
+Group:          Development/Languages
+License:        MIT
+URL:            http://pypi.python.org/pypi/strainer
+Source0:        http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
+BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+%description
+Provides middleware for detecting and correcting errors in web pages that are
+served via the standard WSGI protocol used by most Python web frameworks. By
+default, validation errors are logged to the "strainer.middleware" channel
+using the standard Python logging module.
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+%build
+sed -i 1d strainer/xhtmlify.py
+%{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build \
+    --install-data=%{_datadir} --root %{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%{python_sitelib}/*
+
+%changelog
+* Thu Mar 08 2012 Luke Macken <lmacken at redhat.com> - 0.1.4-2
+- Remove the shebang from xhtmlify.py
+- Remove unnecessary EPEL conditionals
+
+* Tue Jul 12 2011 Luke Macken <lmacken at redhat.com> - 0.1.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b7674c1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5894adf6e0ea38f2c5e8bba2ae722448  strainer-0.1.4.tar.gz


More information about the scm-commits mailing list