2a032f
%global srcname pyotp
2a032f
%global sum Python One Time Password library
Konstantin Ryabitsev 6bc6c7
2a032f
Name:           python-%{srcname}
65ac77
Version:        2.2.7
0284d4
Release:        4%{?dist}
2a032f
Summary:        %{sum}
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
License:        BSD
2a032f
URL:            http://pypi.python.org/pypi/%{srcname}
2a032f
Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
BuildArch:      noarch
2a032f
BuildRequires:  python3-devel
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
%description
2a032f
A Python library for generating one time passwords according to
2a032f
RFC 4226 and the HOTP RFC.
2a032f
2a032f
2a032f
%package -n python3-%{srcname}
2a032f
Summary:  %{sum}
2a032f
%{?python_provide:%python_provide python3-%{srcname}}
2a032f
2a032f
%description -n python3-%{srcname}
2a032f
A Python3 library for generating one time passwords according to
Konstantin Ryabitsev 6bc6c7
RFC 4226 and the HOTP RFC.
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
%prep
2a032f
%setup -q -n %{srcname}-%{version}
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
%build
2a032f
%py3_build
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
%check
2a032f
%{__python3} test.py
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
%install
Konstantin Ryabitsev 6bc6c7
rm -rf $RPM_BUILD_ROOT
2a032f
%py3_install
2a032f
Konstantin Ryabitsev 6bc6c7
2a032f
%files -n python3-%{srcname}
2a032f
%doc README.rst
2a032f
%license LICENSE
2a032f
%{python3_sitelib}/*
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
%changelog
0284d4
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.2.7-4
0284d4
- Rebuilt for Python 3.8
0284d4
c52483
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-3
c52483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c52483
faccdd
* Mon Jul 22 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.2.7-2
faccdd
- Subpackage python2-pyotp has been removed
faccdd
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
faccdd
65ac77
* Tue Jun 11 2019 Gwyn Ciesla <gwync@protonmail.com> - 2.2.7-1
65ac77
- 2.2.7
65ac77
b6c499
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-4
b6c499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b6c499
0565d9
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-3
0565d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0565d9
e11d50
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 2.2.6-2
e11d50
- Rebuilt for Python 3.7
e11d50
76c9e1
* Fri Feb 16 2018 Lumir Balhar <lbalhar@redhat.com> - 2.2.6-1
76c9e1
- New upstream version
76c9e1
cc5c2e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-5
cc5c2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cc5c2e
e52786
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4
e52786
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e52786
384eaf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
384eaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
384eaf
6c3ca1
* Mon Dec 19 2016 Miro Hron훾ok <mhroncok@redhat.com> - 2.1.1-2
6c3ca1
- Rebuild for Python 3.6
6c3ca1
2a032f
* Wed Jul 27 2016 Lumir Balhar <lbalhar@redhat.com> - 2.1.1 - 1
2a032f
- Update to 2.1.1.
2a032f
- Add Python3
2a032f
b855b5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8
b855b5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b855b5
e07093
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-7
e07093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e07093
cf726f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-6
cf726f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cf726f
664ba1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
664ba1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
664ba1
a1288a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
a1288a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a1288a
1b40ec
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
1b40ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1b40ec
c3c53e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
c3c53e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c3c53e
2a032f
* Wed Feb 29 2012 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.1-1
Konstantin Ryabitsev 6bc6c7
- Update to 1.3.1 which includes the LICENSE file.
Konstantin Ryabitsev 6bc6c7
Konstantin Ryabitsev 6bc6c7
* Tue Feb 28 2012 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.0-1
Konstantin Ryabitsev 6bc6c7
- Initial packaging.