Repository navigation
Expand file tree
/
Copy pathpython-oath.spec
More file actions
73 lines (43 loc) · 1.39 KB
/
Copy pathpython-oath.spec
File metadata and controls
73 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%bcond_without python3
%global pkgname oath
Summary: Python implementation of HOTP, TOTP and OCRA
Name: python-%{pkgname}
Version: 1.4.3
Release: ROCKIT3%{?dist}
License: BSD 3-clause
Group: Development/Libraries
Provides: %name = %version-%release
BuildRequires: make
URL: https://github.com/bdauvergne/python-oath
BuildArch: noarch
Vendor: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Source0: %name-%version.tar.gz
%global _description\
Python implementation of the three main OATH specifications: HOTP, TOTP and OCRA
%description %_description
%if %{with python3}
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: %summary
BuildRequires: python%{python3_pkgversion}
BuildRequires: python%{python3_pkgversion}-setuptools <= 72.0.0
%description -n python%{python3_pkgversion}-%{pkgname} %_description
%endif
%prep
%setup -n %name-%version -q
%build
%py3_build
%install
[ %buildroot = "/" ] || rm -rf %buildroot
%py3_install
%check
%{__python3} setup.py test
%clean
rm -rf %{buildroot}
%files -n python%{python3_pkgversion}-%{pkgname}
%doc README.rst
%{python3_sitelib}/*
%changelog
* Tue Jun 23 2026 Linar Nasyyrov <lnasyyrov@k2.cloud> - 1.4.3-ROCKIT3
- Add RedOS 8.0 support
* Mon Apr 13 2020 Croc Cloud Engineering - 1.4.3-CROC1
- Build for py2/py3 for Croc cloud