diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ecd043d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/itsdangerous-1.1.0.tar.gz diff --git a/python3-itsdangerous.spec b/python3-itsdangerous.spec new file mode 100644 index 0000000..70a1265 --- /dev/null +++ b/python3-itsdangerous.spec @@ -0,0 +1,50 @@ +%global srcname itsdangerous + +Name: python-%{srcname} +Version: 1.1.0 +Release: 1%{?dist} +Summary: Safely pass trusted data to untrusted environments and back +License: BSD +URL: https://itsdangerous.palletsprojects.com +Source0: %{pypi_source} +BuildArch: noarch + +%global _description %{expand: +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).} + +%description %{_description} + +%package -n python%{python3_pkgversion}-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools + +%description -n python%{python3_pkgversion}-%{srcname} %{_description}. + +Python %{python3_pkgversion} version. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python%{python3_pkgversion}-%{srcname} +%license LICENSE.rst +%doc CHANGES.rst README.rst +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ + +%changelog +* Wed Apr 08 2020 Igor Raits - 1.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..92b2501 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (itsdangerous-1.1.0.tar.gz) = 61bab3fce5f87a3b5fc8fad61e735a63df6aa039416ee3494e1c99a2a1162b4fb72793bc5dc949de0985724c40121810b159513606c4c3976a7666dba3a1b93d