[python-itsdangerous/epel7] Revert "Package is retired"

branto branto at fedoraproject.org
Thu Jul 10 07:54:44 UTC 2014


commit 7dad571936f6f85f4d99aeb2d2be94e01f818dc1
Author: Boris Ranto <branto at redhat.com>
Date:   Thu Jul 10 09:06:39 2014 +0200

    Revert "Package is retired"
    
    Make it a live package once again.
    
    This reverts commit 5605bc32db295744d8b23965a302985ae794dc57.

 .gitignore               |    4 ++
 dead.package             |    1 -
 python-itsdangerous.spec |  117 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 4 files changed, 122 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..55dab3a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/itsdangerous-git-0.11.tar.xz
+/itsdangerous-0.21.tar.gz
+/itsdangerous-0.22.tar.gz
+/itsdangerous-0.23.tar.gz
diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec
new file mode 100644
index 0000000..b622ce0
--- /dev/null
+++ b/python-itsdangerous.spec
@@ -0,0 +1,117 @@
+%global upstream_name itsdangerous
+
+%if 0%{?fedora}
+%bcond_without python3
+%else
+%bcond_with python3
+%endif
+
+Name:           python-%{upstream_name}
+Version:        0.23
+Release:        1%{?dist}
+Summary:        Python library for passing trusted data to untrusted environments
+License:        BSD
+URL:            http://pythonhosted.org/itsdangerous/
+Source0:        http://pypi.python.org/packages/source/i/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+%if %{with python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%endif
+
+%description
+Itsdangerous is a Python library for passing data through untrusted 
+environments (for example, HTTP cookies) while ensuring the data is not 
+tampered with.
+
+Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the 
+implementation on the Django signing module. It also however supports JSON Web 
+Signatures (JWS).
+
+%if %{with python3}
+%package -n python3-%{upstream_name}
+Summary:        Python 3 library for passing trusted data to untrusted environments
+
+%description -n python3-%{upstream_name}
+Itsdangerous is a Python 3 library for passing data through untrusted 
+environments (for example, HTTP cookies) while ensuring the data is not 
+tampered with.
+
+Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the 
+implementation on the Django signing module. It also however supports JSON Web 
+Signatures (JWS).
+%endif
+
+%prep
+%setup -q -n %{upstream_name}-%{version}
+rm -r *.egg-info
+
+%if %{with python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python} setup.py build
+
+%if %{with python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+%install
+%if %{with python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif
+
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%check
+PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} tests.py
+
+%if %{with python3}
+pushd %{py3dir}
+PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests.py
+popd
+%endif
+
+%files
+%doc LICENSE CHANGES README
+%{python_sitelib}/%{upstream_name}.py*
+%{python_sitelib}/%{upstream_name}*.egg-info
+
+%if %{with python3}
+%files -n python3-%{upstream_name}
+%doc LICENSE CHANGES README
+%{python3_sitelib}/%{upstream_name}.py
+%{python3_sitelib}/%{upstream_name}*.egg-info
+%{python3_sitelib}/__pycache__/%{upstream_name}*
+%endif
+
+%changelog
+* Thu Aug 15 2013 Dan Callaghan <dcallagh at redhat.com> - 0.23-1
+- new upstream release 0.23 (no code changes, only packaging fixes)
+
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.22-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Tue Jul 09 2013 Dan Callaghan <dcallagh at redhat.com> - 0.22-1
+- new upstream release 0.22
+
+* Tue Jun 18 2013 Dan Callaghan <dcallagh at redhat.com> - 0.21-3
+- disable Python 3 subpackage on Fedora 17
+
+* Mon Jun 17 2013 Dan Callaghan <dcallagh at redhat.com> - 0.21-2
+- $RPM_BUILD_ROOT -> %%{buildroot}
+
+* Fri Jun 14 2013 Dan Callaghan <dcallagh at redhat.com> - 0.21-1
+- updated to upstream release 0.21
+- added Python 3 subpackage
+
+* Wed Nov 16 2011 Dan Callaghan <dcallagh at redhat.com> - 0.11-1
+- initial version
diff --git a/sources b/sources
new file mode 100644
index 0000000..55b1e75
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+985e726eb76f18aca81e703f0a6c6efc  itsdangerous-0.23.tar.gz


More information about the scm-commits mailing list