8251755
%global libname btchip
8251755
%global srcname %{libname}-python
8251755
%global sum Python communication library for Ledger Hardware Wallet products
8251755
%global desc %{srcname} is a python API for communicating primarily with the \
8251755
Ledger HW.1 hardware bitcoin wallet. This library also adds compatibility \
8251755
to Electrum in order to use the "Nano", "Nano S", and other Ledger-based \
8251755
hardware wallets.
8251755
8251755
Name:     python-%{libname}
928135d
Version:  0.1.20
4aad9cc
Release:  2%{?dist}
8251755
Summary:  %{sum}
8251755
8251755
License:  ASL 2.0
8251755
URL:      https://github.com/LedgerHQ/%{srcname}
8251755
Source0:  https://github.com/LedgerHQ/%{srcname}/archive/v%{version}.tar.gz
8251755
8251755
BuildArch:     noarch
8251755
# Tests require these but don't work without internet
8251755
#BuildRequires: libusbx-devel systemd-devel
8251755
8251755
8251755
%description
8251755
%{desc}
8251755
8251755
8251755
%package -n python2-%{libname}
8251755
Summary: %{sum}
8251755
BuildRequires: python2-devel
8251755
Requires: python2-hidapi hidapi >= 0.7.99
8251755
%{?python_provide:%python_provide python2-%{libname}}
8251755
8251755
%description -n python2-%{libname}
8251755
%{desc}
8251755
8251755
8251755
%prep
8251755
%autosetup -n %{srcname}-%{version}
8251755
8251755
8251755
%build
8251755
%py2_build
8251755
8251755
8251755
%install
8251755
%py2_install
8251755
8251755
8251755
%check
8251755
# Current tests try to contact PyPi and fail on Koji
8251755
#%%{__python2} setup.py test
8251755
8251755
8251755
%files -n python2-%{libname}
8251755
%license LICENSE
8251755
%doc README.md
8251755
%{python2_sitelib}/*
8251755
8251755
8251755
%changelog
4aad9cc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.20-2
4aad9cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4aad9cc
928135d
* Thu May 04 2017 Michael Goodwin <xenithorb@fedoraproject.org> - 0.1.20-1
928135d
- Update to 0.1.20
928135d
a9a5bf6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-4
a9a5bf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a9a5bf6
8251755
* Wed Jan 4 2017 Michael Goodwin <xenithorb@fedoraproject.org> - 0.1.18-3
8251755
- Final finishing touches after package review
8251755
8251755
* Tue Jan 3 2017 Michael Goodwin <xenithorb@fedoraproject.org> - 0.1.18-2
8251755
- Improve SPEC for most recent python packaging guidelines
8251755
8251755
* Sun Jan 1 2017 Michael Goodwin <xenithorb@fedoraproject.org> - 0.1.18-1
8251755
- Initial packaging of btchip-python for Fedora