Blame python-nrf24.spec

87e76d4
%global pypi_name nrf24
87e76d4
87e76d4
Name:           python-%{pypi_name}
87e76d4
Version:        1.1.1
7f840fd
Release:        2%{?dist}
87e76d4
Summary:        Library for NRF24L01 communication
87e76d4
87e76d4
License:        MIT
87e76d4
URL:            https://github.com/bjarne-hansen/py-nrf24
87e76d4
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
87e76d4
BuildArch:      noarch
87e76d4
87e76d4
%description
87e76d4
This package implement 2.4 Ghz communication using NRF24L01
87e76d4
modules on a Raspberry Pi using Python.
87e76d4
87e76d4
%package -n     python3-%{pypi_name}
87e76d4
Summary:        %{summary}
87e76d4
87e76d4
BuildRequires:  python3-devel
87e76d4
BuildRequires:  python3dist(setuptools)
87e76d4
%{?python_provide:%python_provide python3-%{pypi_name}}
87e76d4
87e76d4
%description -n python3-%{pypi_name}
87e76d4
This package implement 2.4 Ghz communication using NRF24L01
87e76d4
modules on a Raspberry Pi using Python.
87e76d4
87e76d4
%prep
87e76d4
%autosetup -n py-%{pypi_name}-%{version}
87e76d4
rm -rf %{pypi_name}.egg-info
87e76d4
87e76d4
%build
87e76d4
%py3_build
87e76d4
87e76d4
%install
87e76d4
%py3_install
87e76d4
87e76d4
%files -n python3-%{pypi_name}
87e76d4
%license LICENSE
87e76d4
%doc README.md
87e76d4
%{python3_sitelib}/%{pypi_name}/
87e76d4
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
87e76d4
87e76d4
%changelog
7f840fd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
7f840fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7f840fd
87e76d4
* Sat Sep 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.1-1
87e76d4
- Initial package for Fedora