3 %bcond_without python2 # Python 2.x module
4 %bcond_without python3 # Python 3.x module
7 Summary: JOSE protocol implementation
12 Group: Development/Languages/Python
13 Source0: https://files.pythonhosted.org/packages/source/j/josepy/josepy-%{version}.tar.gz
14 # Source0-md5: b582dbfd70ccdbe5926e4dc46ba6719c
15 URL: https://josepy.readthedocs.io/en/latest/
17 BuildRequires: python-devel >= 1:2.6
18 BuildRequires: python-setuptools
21 BuildRequires: python3-devel >= 1:3.2
22 BuildRequires: python3-setuptools
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This package provides JOSE protocol implementation.
29 %package -n python3-%{module}
30 Summary: JOSE protocol implementation in Python 3
31 Group: Development/Languages/Python
33 %description -n python3-%{module}
34 This package provides JOSE protocol implementation in Python 3.
37 %setup -q -n %{module}-%{version}
48 rm -rf $RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/jws
65 %{py_sitescriptdir}/josepy-*-py*.egg-info
66 %{py_sitescriptdir}/josepy
70 %files -n python3-%{module}
71 %defattr(644,root,root,755)
72 %{py3_sitescriptdir}/josepy-*-py*.egg-info
73 %{py3_sitescriptdir}/josepy