[packages/python-peppercorn] new, version 0.4
glen
glen at pld-linux.org
Sun Jan 27 21:13:30 CET 2013
commit 534e935f127765f2dee859bf0e5afb3748e313da
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jan 27 22:12:44 2013 +0200
new, version 0.4
created from python template spec
python-peppercorn.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
---
diff --git a/python-peppercorn.spec b/python-peppercorn.spec
new file mode 100644
index 0000000..24e98de
--- /dev/null
+++ b/python-peppercorn.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define module peppercorn
+Summary: A library for converting a token stream into a data structure for use in web form posts
+Name: python-%{module}
+Version: 0.4
+Release: 1
+License: BSD-derived (http://www.repoze.org/LICENSE.txt)
+Group: Libraries/Python
+Source0: http://pypi.python.org/packages/source/p/peppercorn/peppercorn-%{version}.tar.gz
+# Source0-md5: 464d6f2342eaf704dfb52046c1f5c320
+URL: http://docs.pylonsproject.org/projects/peppercorn/
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A library for converting a token stream into a data structure
+comprised of sequences, mappings, and scalars, developed primarily for
+converting HTTP form post data into a richer data structure.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests.py*
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE.txt README.txt
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%{py_sitescriptdir}/%{module}-%{version}*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-peppercorn.git/commitdiff/534e935f127765f2dee859bf0e5afb3748e313da
More information about the pld-cvs-commit
mailing list