Blame python-rpi-gpio2.spec

379cc50
Summary: A libgpiod compatibility layer for the RPi.GPIO API
379cc50
Name: python-rpi-gpio2
379cc50
Version: 0.4.0
69e5baf
Release: 7%{?dist}
379cc50
379cc50
License: GPL-3.0-or-later
379cc50
URL: https://github.com/underground-software/RPi.GPIO2
379cc50
Source0: %{url}/archive/v%{version}/RPi.GPIO2-%{version}.tar.gz
379cc50
379cc50
BuildArch: noarch
379cc50
%global _description %{expand:
379cc50
This library implements a compatibility layer between RPi.GPIO syntax and
379cc50
libgpiod semantics, allowing a fedora user on the Raspberry Pi platform to
379cc50
use the popular RPi.GPIO API, the original implementation of which depends
379cc50
on features provided by a non-mainline kernel.}
379cc50
379cc50
%description %_description
379cc50
379cc50
%package -n python3-rpi-gpio2
379cc50
Summary: %{summary}
379cc50
379cc50
Obsoletes: python3-RPi.GPIO < 0.7.0-7
379cc50
Provides: python3-RPi.GPIO = 1:%{version}-%{release}
379cc50
379cc50
BuildRequires: python3-devel
379cc50
BuildRequires: python3-setuptools
379cc50
379cc50
# This explicit dependency on the libgpiod python bindings subpackage
379cc50
# is neccessary because it is unsatisfiable via PyPi
379cc50
Requires: python3-libgpiod >= 1.5
379cc50
379cc50
%description -n python3-rpi-gpio2  %_description
379cc50
379cc50
%package doc
379cc50
Summary: Examples for python-rpi-gpio2
379cc50
379cc50
%description doc %{_description}
379cc50
A set of examples for python-rpi-gpio2
379cc50
379cc50
379cc50
%prep
379cc50
%autosetup -n RPi.GPIO2-%{version}
379cc50
379cc50
# Make sure scripts in the examples directory aren't executable
379cc50
chmod 0644 examples/*
379cc50
379cc50
379cc50
%build
379cc50
%py3_build
379cc50
379cc50
%install
379cc50
%py3_install
379cc50
rm -rf %{buildroot}%{python3_sitelib}/tests
379cc50
rm -rf %{buildroot}%{python3_sitelib}/examples
379cc50
379cc50
%check
379cc50
%py3_check_import RPi
379cc50
379cc50
# The tests rely on the presence of the actual physical GPIO pins on the system for now and though we may develop emulation functionality to run the tests on any system in the future we think the software is ready to be packaged as-is and we will just update it when the better tests are done
379cc50
379cc50
379cc50
%files -n python3-rpi-gpio2
379cc50
%license LICENSE.txt
379cc50
%doc README.md
379cc50
%{python3_sitelib}/RPi/
379cc50
%{python3_sitelib}/RPi.GPIO2-%{version}-py%{python3_version}.egg-info
379cc50
379cc50
%files doc
379cc50
%license LICENSE.txt
379cc50
%doc examples
379cc50
379cc50
%changelog
69e5baf
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.4.0-7
69e5baf
- Rebuilt for Python 3.13
69e5baf
35de648
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-6
35de648
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
35de648
30ad532
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-5
30ad532
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
30ad532
c5e75ee
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
c5e75ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c5e75ee
129798e
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.4.0-3
129798e
- Rebuilt for Python 3.12
129798e
36e15ca
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
36e15ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
36e15ca
379cc50
* Wed Aug 31 2022 Joel Savitz <joelsavitz@gmail.com> - 0.4.0-1
379cc50
- initial package (Fixes rhbz#1871171)