From cd0165c900804716c3f0f1a0848b105583902c52 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Dec 04 2020 08:57:01 +0000 Subject: * Tue Oct 20 2020 Fabian Affolter - 2.18.2-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26044dc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Adafruit-PlatformDetect-2.18.2.tar.gz diff --git a/python-adafruit-platformdetect.spec b/python-adafruit-platformdetect.spec new file mode 100644 index 0000000..609b49e --- /dev/null +++ b/python-adafruit-platformdetect.spec @@ -0,0 +1,66 @@ +# Created by pyp2rpm-3.3.4 +%global pypi_name adafruit-platformdetect + +Name: python-%{pypi_name} +Version: 2.18.2 +Release: 1%{?dist} +Summary: Platform detection module + +License: MIT +URL: https://github.com/adafruit/Adafruit_Python_PlatformDetect +Source0: %{pypi_source Adafruit-PlatformDetect} +BuildArch: noarch + +%description +This library provides best-guess platform detection for a range of +single-board computers and (potentially) other platforms. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(setuptools-scm) +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +This library provides best-guess platform detection for a range of +single-board computers and (potentially) other platforms. + +%package -n python-%{pypi_name}-doc +Summary: Documentation for adafruit-platformdetect + +BuildRequires: python3dist(sphinx) +%description -n python-%{pypi_name}-doc +Documentation for adafruit-platformdetect. + +%prep +%autosetup -n Adafruit-PlatformDetect-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build +PYTHONPATH=${PWD} sphinx-build-3 docs html +rm -rf html/.{doctrees,buildinfo} + +%install +%py3_install + +%ifarch %{arm} %{arm64} +%check +%pytest -v tests +%endif + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/adafruit_platformdetect/ +%{python3_sitelib}/Adafruit_PlatformDetect-%{version}-py%{python3_version}.egg-info/ + +%files -n python-%{pypi_name}-doc +%doc html +%license LICENSE + +%changelog +* Tue Oct 20 2020 Fabian Affolter - 2.18.2-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..2234929 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Adafruit-PlatformDetect-2.18.2.tar.gz) = d1874e6a96aa4ed3203ab9d118385f966194b84ea75c2006f304fc64eecdac2073cf464d5b81e5709a4e423ec35672319e140ffadd1f9a5682c864bb03a18db9