|
|
ed07010 |
%global srcname trezor
|
|
|
ed07010 |
%global sum Python library for communicating with TREZOR Hardware Wallet
|
|
|
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}
|
|
|
4151ccb |
Version: 0.7.15
|
|
|
5055386 |
Release: 3%{?dist}
|
|
|
ed07010 |
Summary: %{sum}
|
|
|
ed07010 |
|
|
|
ed07010 |
# trezorlib/protobuf_json.py is BSD the rest is LGPLv3
|
|
|
ed07010 |
License: LGPLv3 and BSD
|
|
|
ed07010 |
URL: https://github.com/trezor/python-trezor
|
|
|
ed07010 |
Source0: https://files.pythonhosted.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
e73eb62 |
Source1: 51-trezor.rules
|
|
|
ed07010 |
BuildArch: noarch
|
|
|
ed07010 |
BuildRequires: python2-devel
|
|
|
e00a297 |
BuildRequires: python2-pbkdf2
|
|
|
732ce0c |
BuildRequires: python2-hidapi >= 0.7.99.post20
|
|
|
406756a |
BuildRequires: python2-mnemonic >= 0.17
|
|
|
ed07010 |
BuildRequires: python2-ecdsa
|
|
|
5055386 |
BuildRequires: python2-requests
|
|
|
ed07010 |
BuildRequires: protobuf-python
|
|
|
ed07010 |
BuildRequires: pkgconfig(bash-completion)
|
|
|
c12be3c |
BuildRequires: systemd
|
|
|
ed07010 |
|
|
|
ed07010 |
%description
|
|
|
ed07010 |
Python library for communicating with TREZOR Hardware Wallet
|
|
|
ed07010 |
|
|
|
ed07010 |
See https://trezor.io for more information.
|
|
|
ed07010 |
|
|
|
ed07010 |
|
|
|
ed07010 |
%package -n python2-%{srcname}
|
|
|
e00a297 |
Summary: %{sum}
|
|
|
e00a297 |
Requires: python2-pbkdf2
|
|
|
e00a297 |
Requires: python2-hidapi >= 0.7.99.post20
|
|
|
e00a297 |
Requires: python2-mnemonic >= 0.17
|
|
|
e00a297 |
Requires: python2-ecdsa
|
|
|
5055386 |
Requires: python2-requests
|
|
|
ed07010 |
# https://github.com/trezor/python-trezor/issues/86
|
|
|
ed07010 |
Provides: bundled(python-protobuf-json) = 0.0.6
|
|
|
ed07010 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
ed07010 |
|
|
|
ed07010 |
%description -n python2-%{srcname}
|
|
|
ed07010 |
Python library for communicating with TREZOR Hardware Wallet
|
|
|
ed07010 |
|
|
|
ed07010 |
See https://trezor.io for more information.
|
|
|
ed07010 |
|
|
|
ed07010 |
|
|
|
ed07010 |
%prep
|
|
|
ed07010 |
%autosetup -n %{srcname}-%{version}
|
|
|
ed07010 |
rm -rf %{srcname}.egg-info
|
|
|
ed07010 |
|
|
|
ed07010 |
%build
|
|
|
ed07010 |
%py2_build
|
|
|
ed07010 |
|
|
|
ed07010 |
%install
|
|
|
ed07010 |
%py2_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
|
|
|
ed07010 |
%{__python2} setup.py test
|
|
|
ed07010 |
|
|
|
ed07010 |
|
|
|
ed07010 |
%files -n python2-%{srcname}
|
|
|
ed07010 |
%doc PKG-INFO
|
|
|
ed07010 |
%doc README.rst
|
|
|
ed07010 |
%license COPYING
|
|
|
ed07010 |
%{python2_sitelib}/*
|
|
|
ed07010 |
%{_bindir}/trezorctl
|
|
|
ed07010 |
%{bashcomproot}
|
|
|
e73eb62 |
%{_udevrulesdir}/51-trezor.rules
|
|
|
ed07010 |
|
|
|
ed07010 |
%changelog
|
|
|
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
|