ed07010
%global srcname trezor
ed07010
ed07010
%global bashcompdir  %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
ed07010
%global bashcomproot %(dirname %{bashcompdir} 2>/dev/null)
ed07010
ed07010
Name:           python-%{srcname}
8082499
Version:        0.11.2
d316c52
Release:        3%{?dist}
d833c2d
Summary:        Python library for communicating with TREZOR Hardware Wallet
ed07010
0f4a638
License:        LGPLv3
ed07010
URL:            https://github.com/trezor/python-trezor
8082499
Source0:        %{pypi_source}
e73eb62
Source1:        51-trezor.rules
ed07010
BuildArch:      noarch
0f4a638
ed07010
BuildRequires:  pkgconfig(bash-completion)
c12be3c
BuildRequires:  systemd
d1ce4df
BuildRequires:  protobuf-compiler
5724bfa
BuildRequires:  protobuf-devel
43b3128
BuildRequires:  python3-devel
43b3128
BuildRequires:  python3-pbkdf2
43b3128
BuildRequires:  python3-hidapi >= 0.7.99.post20
43b3128
BuildRequires:  python3-mnemonic >= 0.17
43b3128
BuildRequires:  python3-ecdsa
43b3128
BuildRequires:  python3-requests
43b3128
BuildRequires:  python3-protobuf
0f4a638
BuildRequires:  python3-click
5e1b3ed
BuildRequires:  python3-libusb1
ed07010
8082499
%description
8082499
%{summary}.
ed07010
43b3128
%package -n python3-%{srcname}
d833c2d
Summary:        %{summary}
43b3128
Requires:       python3-pbkdf2
43b3128
Requires:       python3-hidapi >= 0.7.99.post20
43b3128
Requires:       python3-mnemonic >= 0.17
43b3128
Requires:       python3-ecdsa
43b3128
Requires:       python3-requests
d7c0163
Requires:       python3-protobuf
0f4a638
Requires:       python3-click
5e1b3ed
Requires:       python3-libusb1
d4ec961
Requires:       python3-typing-extensions
e830e52
Requires:       python3-construct
43b3128
%{?python_provide:%python_provide python3-%{srcname}}
ed07010
8082499
%description -n python3-%{srcname}
8082499
%{summary}.
8082499
ed07010
ed07010
%prep
f027f75
%setup -q -n %{srcname}-%{version}
ed07010
rm -rf %{srcname}.egg-info
ed07010
ed07010
%build
43b3128
%py3_build
ed07010
ed07010
%install
43b3128
%py3_install
ed07010
ed07010
install -Dpm 644 bash_completion.d/trezorctl.sh %{buildroot}%{bashcompdir}/trezorctl
e73eb62
install -Dpm 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/51-trezor.rules
ed07010
ed07010
ed07010
%check
0f4a638
#Missing dependency libusb1, rlp and pyblake2
0f4a638
#%{__python3} setup.py test
ed07010
ed07010
43b3128
%files -n python3-%{srcname}
d833c2d
%doc AUTHORS
6372eaa
%doc CHANGELOG.md
6372eaa
%doc README.md
43b3128
%license COPYING
d833c2d
%{python3_sitelib}/%{srcname}-*.egg-info/
d833c2d
%{python3_sitelib}/trezorlib/
ed07010
%{_bindir}/trezorctl
ed07010
%{bashcomproot}
e73eb62
%{_udevrulesdir}/51-trezor.rules
ed07010
ed07010
%changelog
d316c52
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.2-3
d316c52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d316c52
b979851
* Tue Apr 02 2019 Jonny Heggheim <hegjon@gmail.com> - 0.11.2-2
e830e52
- Added missing requires on python3-construct
b979851
8082499
* Tue Apr 02 2019 Jonny Heggheim <hegjon@gmail.com> - 0.11.2-1
8082499
- Updated to version 0.11.2
8082499
87ab944
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-2
87ab944
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
87ab944
341be5b
* Fri Jan 25 2019 Jonny Heggheim <hegjon@gmail.com> - 0.11.1-1
341be5b
- Updated to version 0.11.1
341be5b
a09b306
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
a09b306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a09b306
6372eaa
* Sat Jul 07 2018 Jonny Heggheim <hegjon@gmail.com> - 0.10.2-1
6372eaa
- Updated to version 0.10.2
6372eaa
87c6c07
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 0.9.1-3
87c6c07
- Rebuilt for Python 3.7
87c6c07
0141665
* Mon Mar 26 2018 Jonny Heggheim <hegjon@gmail.com> - 0.9.1-2
0141665
- Added missing requires on python3-libusb1
0141665
0f4a638
* Tue Mar 06 2018 Jonny Heggheim <hegjon@gmail.com> - 0.9.1-1
0f4a638
- Updated to version 0.9.1
0f4a638
- Removed Python2 subpackage since Python2 is not longer supported upstream
0f4a638
- Dropped patches for protobuf2
0f4a638
- License is only LGPLv3, since bundled file with BSD license is replaced
0f4a638
0c98b9f
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.7.16-6
0c98b9f
- Update Python 2 dependency declarations to new packaging standards
0c98b9f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
0c98b9f
7da60fa
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.16-5
7da60fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7da60fa
43b3128
* Mon Nov 27 2017 Jan Beran <jberan@redhat.com> - 0.7.16-4
43b3128
- Python 3 subpackage
43b3128
d8214c2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.16-3
d8214c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d8214c2
a944918
* Tue Jul 11 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.16-2
a944918
- Added patches for Fedora 25 to work with protobuffer2
a944918
f027f75
* Thu Jul 06 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.16-1
f027f75
- new version
f027f75
5055386
* Mon Jun 19 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.15-3
5055386
- Added missing python2-requests requires
5055386
e00a297
* Mon Jun 19 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.15-2
e00a297
- Included correct requires for python2-trezor
e00a297
fa36560
* Mon Jun 19 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.15-1
4151ccb
- new version
4151ccb
fa36560
* Wed May 03 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.13-1
af6752b
- new version
af6752b
fa36560
* Tue Apr 11 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.12-1
406756a
- new version
406756a
4dfa972
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-3
4dfa972
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4dfa972
fa36560
* Tue Jan 24 2017 Jonny Heggheim <hegjon@gmail.com> - 0.7.8-2
e73eb62
- Include udev-rules
e73eb62
fa36560
* Sun Nov 27 2016 Jonny Heggheim <hegjon@gmail.com> - 0.7.8-1
ed07010
- new version
ed07010
fa36560
* Fri Nov 25 2016 Jonny Heggheim <hegjon@gmail.com> - 0.7.7-2
ed07010
- added bundled(python-protobuf-json)
ed07010
- included BSD in the license
ed07010
fa36560
* Thu Nov 24 2016 Jonny Heggheim <hegjon@gmail.com> - 0.7.7-1
ed07010
- new version
ed07010
fa36560
* Thu Nov 17 2016 Jonny Heggheim <hegjon@gmail.com> - 0.7.6-1
ed07010
- initial package