16ad675
%global srcname bna
16ad675
4ef01c3
Name:           python-%{srcname}
a118fec
Version:        5.0.0
a118fec
Release:        1%{?dist}
Christopher Meng 99f62de
Summary:        Battle.net Authenticator routines in Python
Christopher Meng 99f62de
License:        MIT
a118fec
a118fec
URL:            https://github.com/jleclanche/%{name}
a118fec
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Christopher Meng 99f62de
BuildArch:      noarch
Christopher Meng 99f62de
a118fec
BuildRequires:  python3-devel
a118fec
BuildRequires:  python3dist(setuptools)
a118fec
BuildRequires:  python3dist(click)
a118fec
BuildRequires:  python3dist(pyotp)
a118fec
BuildRequires:  python3dist(pytest)
4ef01c3
Christopher Meng 99f62de
%description
Christopher Meng 99f62de
This is a Python library of Battle.net Authenticator routines,
Christopher Meng 99f62de
this package also contains a command-line Battle.net authenticator.
Christopher Meng 99f62de
a118fec
%package -n     python3-%{srcname}
a118fec
Summary:        %{summary}
a118fec
%py_provides python3-%{srcname}
a118fec
a118fec
%description -n python3-%{srcname}
a118fec
This is a Python library of Battle.net Authenticator routines,
a118fec
this package also contains a command-line Battle.net authenticator.
a118fec
Christopher Meng 99f62de
%prep
a118fec
%autosetup -n %{name}-%{version}
Christopher Meng 99f62de
Christopher Meng 99f62de
%build
16ad675
%py3_build
Christopher Meng 99f62de
Christopher Meng 99f62de
%install
16ad675
%py3_install
Christopher Meng 99f62de
a118fec
%check
a118fec
%pytest -v tests
a118fec
a118fec
%files -n python3-%{srcname}
a118fec
%doc README.md
16ad675
%license LICENSE
a118fec
%{_bindir}/%{srcname}
a118fec
%{python3_sitelib}/%{srcname}
a118fec
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
Christopher Meng 99f62de
Christopher Meng 99f62de
%changelog
a118fec
* Tue Oct 06 2020 Andy Mender <andymenderunix@gmail.com> - 5.0.0-1
a118fec
- Update to version 5.0.0
a118fec
- Add tests
a118fec
- Clean up SPEC according to Python Packaging Guidelines
a118fec
- Switch URL and Source0 to GitHub releases
a118fec
07e4c69
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-16
07e4c69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
07e4c69
7013945
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-15
7013945
- Rebuilt for Python 3.9
7013945
38aff6c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-14
38aff6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
38aff6c
9f588a2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-13
9f588a2
- Rebuilt for Python 3.8.0rc1 (#1748018)
9f588a2
07b5111
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-12
07b5111
- Rebuilt for Python 3.8
07b5111
abe8dd3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-11
abe8dd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
abe8dd3
8d9983b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-10
8d9983b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8d9983b
fc9a920
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-9
fc9a920
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fc9a920
a343d7c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-8
a343d7c
- Rebuilt for Python 3.7
a343d7c
b55f49e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-7
b55f49e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b55f49e
69060db
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-6
69060db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
69060db
f24a702
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-5
f24a702
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f24a702
408e52f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-4
408e52f
- Rebuild for Python 3.6
408e52f
923af05
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-3
923af05
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
923af05
3d951aa
* Tue Apr 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 4.1.0-2
3d951aa
- Provide python3-bna
3d951aa
4270a85
* Tue Apr 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 4.1.0-1
16ad675
- Update to version 4.1.0
16ad675
- Change package to use Python 3
16ad675
- Use of newest python macros
16ad675
- Added license tag
16ad675
5616d40
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-5
5616d40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5616d40
b3ea788
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-4
b3ea788
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b3ea788
5c47905
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-3
5c47905
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5c47905
Christopher Meng 99f62de
* Thu Sep 12 2013 Christopher Meng <rpm@cicku.me> - 3.2-2
Christopher Meng 99f62de
- Add license file.
Christopher Meng 99f62de
Christopher Meng 99f62de
* Thu Aug 15 2013 Christopher Meng <rpm@cicku.me> - 3.2-1
Christopher Meng 99f62de
- Initial Package.