[python-itsdangerous: 1/4] initial version

Dan Callaghan dcallagh at fedoraproject.org
Tue Jun 18 11:09:42 UTC 2013


commit 362ce5983bd2cb715240cf2127cdc810df5313b9
Author: Dan Callaghan <dcallagh at redhat.com>
Date:   Wed Nov 16 13:14:13 2011 +1000

    initial version

 .gitignore               |    1 +
 python-itsdangerous.spec |   37 +++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..74b9957
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/itsdangerous-git-0.11.tar.xz
diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec
new file mode 100644
index 0000000..ced5cfa
--- /dev/null
+++ b/python-itsdangerous.spec
@@ -0,0 +1,37 @@
+%global srcname itsdangerous
+
+Name:           python-itsdangerous
+Version:        0.11
+Release:        1%{?dist}
+Summary:        Python library for passing trusted data to untrusted environments
+Group:          Development/Languages
+License:        BSD
+URL:            http://packages.python.org/itsdangerous/
+#Source0:        http://pypi.python.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
+# Tarballs on PyPi lack LICENSE and tests, so we generate our own from git instead:
+# git archive --format=tar --prefix=itsdangerous-0.11/ 0.11 | xz >itsdangerous-git-0.11.tar.xz
+Source0:        %{srcname}-git-%{version}.tar.xz
+BuildArch:      noarch
+BuildRequires:  python-setuptools-devel
+
+%description
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+%check
+PYTHONPATH=$RPM_BUILD_ROOT%{python_sitelib} %{__python} tests.py
+
+%files
+%doc LICENSE CHANGES README
+%{python_sitelib}/itsdangerous*
+
+%changelog
+* Wed Nov 11 2011 Dan Callaghan <dcallagh at redhat.com> - 0.11-1
+- initial version
diff --git a/sources b/sources
new file mode 100644
index 0000000..db96a58
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e23b61563793dd428963352166d8e80f  itsdangerous-git-0.11.tar.xz


More information about the scm-commits mailing list