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: 7c50e3668a273a5043792f2d2bc392bb
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
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This package provides JOSE protocol implementation.
30 %package -n python3-%{module}
31 Summary: JOSE protocol implementation in Python 3
32 Group: Development/Languages/Python
34 %description -n python3-%{module}
35 This package provides JOSE protocol implementation in Python 3.
38 %setup -q -n %{module}-%{version}
49 rm -rf $RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/jws
66 %{py_sitescriptdir}/josepy-*-py*.egg-info
67 %{py_sitescriptdir}/josepy
71 %files -n python3-%{module}
72 %defattr(644,root,root,755)
73 %{py3_sitescriptdir}/josepy-*-py*.egg-info
74 %{py3_sitescriptdir}/josepy