commit bd1f041c3d0261393fd849b6737a77d41eeb2c20 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:54:05 2019 +0800 Package init diff --git a/itsdangerous-1.1.0.tar.gz b/itsdangerous-1.1.0.tar.gz new file mode 100644 index 0000000..13644ac Binary files /dev/null and b/itsdangerous-1.1.0.tar.gz differ diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec new file mode 100644 index 0000000..9ef6ee3 --- /dev/null +++ b/python-itsdangerous.spec @@ -0,0 +1,62 @@ +Name: python-itsdangerous +Version: 1.1.0 +Release: 1 +Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound. +License: BSD +URL: http://pythonhosted.org/itsdangerous/ +Source0: http://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel python3-devel python2-pytest python3-pytest python2-freezegun python3-freezegun + +%description +Various helpers to pass data to untrusted environments and to get it back safe and sound. +Data is cryptographically signed to ensure that a token has not been tampered with. + +%package -n python2-itsdangerous +Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound for python2. +%{?python_provide:%python_provide python2-itsdangerous} + +%description -n python2-itsdangerous +Various helpers to pass data to untrusted environments and to get it back safe and sound for python2. +Data is cryptographically signed to ensure that a token has not been tampered with. + +%package -n python3-itsdangerous +Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound for python3. +%{?python_provide:%python_provide python3-itsdangerous} + +%description -n python3-itsdangerous +Various helpers to pass data to untrusted environments and to get it back safe and sound for python3. +Data is cryptographically signed to ensure that a token has not been tampered with. + +%prep +%global debug_package %{nil} +%autosetup -n itsdangerous-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} + +%files -n python2-itsdangerous +%license LICENSE.rst +%doc CHANGES.rst README.rst +%{python2_sitelib}/itsdangerous/ +%{python2_sitelib}/itsdangerous*.egg-info/ + +%files -n python3-itsdangerous +%license LICENSE.rst +%doc CHANGES.rst README.rst +%{python3_sitelib}/itsdangerous/ +%{python3_sitelib}/itsdangerous*.egg-info/ + +%changelog +* Tue Nov 5 2019 openEuler Buildteam - 1.1.0-1 +- Package init