diff --git a/jwcrypto-0.5.0.tar.gz b/jwcrypto-0.5.0.tar.gz new file mode 100644 index 0000000..94228a4 Binary files /dev/null and b/jwcrypto-0.5.0.tar.gz differ diff --git a/python-jwcrypto.spec b/python-jwcrypto.spec new file mode 100644 index 0000000..fa95644 --- /dev/null +++ b/python-jwcrypto.spec @@ -0,0 +1,63 @@ +Name: python-jwcrypto +Version: 0.5.0 +Release: 4 +Summary: Implements JWK, JWS, JWE specifications with python-cryptography +License: LGPLv3+ +URL: https://github.com/latchset/jwcrypto +Source0: https://github.com/latchset/jwcrypto/releases/download/v%{version}/jwcrypto-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel python2-setuptools python2-cryptography >= 1.5 python2-pytest +BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-cryptography >= 1.5 python%{python3_pkgversion}-pytest + +%description +Implements JWK, JWS, JWE specifications with python-cryptography + +%package -n python2-jwcrypto +Summary: Implements JWK,JWS,JWE specifications with python-cryptography +Requires: python2-cryptography >= 1.5 +%{?python_provide:%python_provide python2-jwcrypto} +%description -n python2-jwcrypto +Implements JWK, JWS, JWE specifications using python-cryptography + +%package -n python%{python3_pkgversion}-jwcrypto +Summary: Implements JWK, JWS, JWE specifications with python-cryptography +Requires: python%{python3_pkgversion}-cryptography >= 1.5 +%{?python_provide:%python_provide python%{python3_pkgversion}-jwcrypto} +%description -n python%{python3_pkgversion}-jwcrypto +Implements JWK, JWS, JWE specifications using python-cryptography + +%prep +%autosetup -n jwcrypto-%{version} -p1 + +%build +%py2_build +%py3_build + +%check +%{__python2} -bb -m pytest jwcrypto/test*.py +%{__python3} -bb -m pytest jwcrypto/test*.py + +%install +%py2_install +%py3_install + +%files -n python2-jwcrypto +%doc README.md LICENSE +%exclude %{_docdir}/jwcrypto +%exclude %{python2_sitelib}/jwcrypto/tests{,-cookbook}.py* +%{python2_sitelib}/jwcrypto +%{python2_sitelib}/jwcrypto-%{version}-py%{python2_version}.egg-info + +%files -n python%{python3_pkgversion}-jwcrypto +%doc README.md LICENSE +%exclude %{_docdir}/jwcrypto +%exclude %{python3_sitelib}/jwcrypto/tests{,-cookbook}.py* +%exclude %{python3_sitelib}/jwcrypto/__pycache__/tests{,-cookbook}.*.py* +%{python3_sitelib}/jwcrypto +%{python3_sitelib}/jwcrypto-%{version}-py%{python3_version}.egg-info + +%changelog +* Fri Apr 17 2020 lizhenhua - 0.5.0-4 +- Package init diff --git a/python-jwcrypto.yaml b/python-jwcrypto.yaml new file mode 100644 index 0000000..9f08ad5 --- /dev/null +++ b/python-jwcrypto.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: latchset/jwcrypto +tag_prefix: ^v +seperator: .