Blame python-pyduofern.spec

b2bc011
%global pypi_name pyduofern
656f0d3
656f0d3
Name:           python-%{pypi_name}
656f0d3
Version:        0.34.1
cadf140
Release:        2%{?dist}
656f0d3
Summary:        Library for controlling Rademacher DuoFern actors
656f0d3
656f0d3
License:        GPLv2+
656f0d3
URL:            https://github.com/gluap/pyduofern
656f0d3
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
656f0d3
BuildArch:      noarch
656f0d3
656f0d3
%description
656f0d3
pyduofern is a Python library for controlling Rademacher DuoFern
656f0d3
actors.
656f0d3
656f0d3
%package -n     python3-%{pypi_name}
656f0d3
Summary:        %{summary}
656f0d3
656f0d3
BuildRequires:  python3-devel
656f0d3
BuildRequires:  python3dist(pyserial)
656f0d3
BuildRequires:  python3dist(pyserial-asyncio)
656f0d3
BuildRequires:  python3dist(pytest)
656f0d3
BuildRequires:  python3dist(pytest-asyncio)
656f0d3
BuildRequires:  python3dist(setuptools)
656f0d3
%{?python_provide:%python_provide python3-%{pypi_name}}
656f0d3
656f0d3
%description -n python3-%{pypi_name}
656f0d3
pyduofern is a Python library for controlling Rademacher DuoFern
656f0d3
actors.
656f0d3
656f0d3
%prep
656f0d3
%autosetup -n %{pypi_name}-%{version}
656f0d3
rm -rf %{pypi_name}.egg-info
656f0d3
656f0d3
%build
656f0d3
%py3_build
656f0d3
656f0d3
%install
656f0d3
%py3_install
656f0d3
656f0d3
# https://github.com/gluap/pyduofern/issues/23
a841c1d
#%%check
a841c1d
#%%pytest -v tests
656f0d3
656f0d3
%files -n python3-%{pypi_name}
656f0d3
%license license.txt
656f0d3
%doc README.rst examples/
656f0d3
%{_bindir}/duofern_cli.py
656f0d3
%{python3_sitelib}/%{pypi_name}/
656f0d3
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
656f0d3
656f0d3
%changelog
cadf140
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.34.1-2
cadf140
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cadf140
656f0d3
* Tue Sep 22 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.34.1-1
283d46b
- Enable tests (reverted)
656f0d3
- Update to latest upstream release 0.34.1 (#1880663)
656f0d3
656f0d3
* Fri Sep 18 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.34.0-1
656f0d3
- Initial package for Fedora