%global pypi_name CoAPthon3 Name: python-coapthon3 Version: 1.0.1 Release: 15%{?dist} Summary: Python library for the CoAP protocol License: MIT URL: https://github.com/Tanganelli/CoAPthon3 Source0: %{pypi_source} BuildArch: noarch %description A Python library to the CoAP protocol. %package -n python3-coapthon3 Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-cachetools %{?python_provide:%python_provide python3-coapthon3} %description -n python3-coapthon3 A Python library for the CoAP protocol. %package -n coapthon3 Summary: Command-line tools for %{name} Requires: python3-coapthon3 %description -n coapthon3 Command-line tools for %{pypi_name}. %prep %autosetup -n %{pypi_name}-%{version} # https://github.com/Tanganelli/CoAPthon3/pull/23 sed -i -e '1d;2i#!/usr/bin/python3' exampleresources.py %build %py3_build %install %py3_install %files -n python3-coapthon3 # Doc files are missing in the releases on PyPI # https://github.com/Tanganelli/CoAPthon3/issues/22 %{python3_sitelib}/coapthon/ %{python3_sitelib}/%{pypi_name}*.egg-info %files -n coapthon3 %{_bindir}/*.py %changelog * Fri Jan 20 2023 Fedora Release Engineering - 1.0.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.0.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0.1-13 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.0.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.1-10 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 02 2020 Fabian Affolter - 1.0.1-7 - Add runtime requirement (rhbz#1826566) * Tue May 26 2020 Miro Hrončok - 1.0.1-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.0.1-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Thu Aug 22 2019 Miro Hrončok - 1.0.1-3 - Rebuilt for Python 3.8 * Mon Aug 19 2019 Fabian Affolter - 1.0.1-2 - Update name - Add shebang (rhbz#1733059) * Wed Jul 24 2019 Fabian Affolter - 1.0.1-1 - Initial package for Fedora