diff --git a/.gitignore b/.gitignore index 1cdec92..4f54d77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ /ampy-1.0.1.tar.gz -/ampy-1.0.5.tar.gz diff --git a/ampy.spec b/ampy.spec index c4e286e..283622f 100644 --- a/ampy.spec +++ b/ampy.spec @@ -1,19 +1,28 @@ +# Created by pyp2rpm-3.2.2 Name: ampy -Version: 1.0.5 -Release: %autorelease +Version: 1.0.1 +Release: 1%{?dist} Summary: Command line tool to interact with a MicroPython board over a serial connection License: MIT URL: https://github.com/adafruit/ampy # Use GitHub archive instead of PyPi sdist to have tests, README, LICENSE -Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +# No tags :( +%global commit b693e22b273804bdf5a8e33cec7dd3bf4e484eab +Source0: %{url}/archive/%{commit}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel +BuildRequires: python3-setuptools + +Requires: python3-click +Requires: python3-pyserial +Requires: python3-setuptools Provides: adafruit-%{name} = %{version}-%{release} -%py_provides python3-adafruit-%{name} +Provides: python3-adafruit-%{name} = %{version}-%{release} +%{?python_provide:%python_provide python3-adafruit-%{name}} %description @@ -31,34 +40,32 @@ interaction like a shell or terminal to send input to a board. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{commit} # shebangs sed -i '1d' $(grep -lr '#!/usr/') -%generate_buildrequires -%pyproject_buildrequires - - %build -%pyproject_wheel +%py3_build %install -%pyproject_install -%pyproject_save_files -l %{name} +%py3_install %check -%pyproject_check_import -%{python3} -m unittest tests/test_*.py -v +%{__python3} -m unittest tests/test_*.py -v -%files -f %{pyproject_files} +%files %doc README.md +%license LICENSE %{_bindir}/%{name} +%{python3_sitelib}/%{name} +%{python3_sitelib}/adafruit_ampy-%{version}-py?.?.egg-info %changelog -%autochangelog +* Tue Mar 14 2017 Miro Hrončok - 1.0.1-1 +- Initial package diff --git a/changelog b/changelog deleted file mode 100644 index 657fe20..0000000 --- a/changelog +++ /dev/null @@ -1,77 +0,0 @@ -* Mon Jan 22 2024 Fedora Release Engineering - 1.0.5-20 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 1.0.5-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Wed Jul 19 2023 Fedora Release Engineering - 1.0.5-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jun 13 2023 Python Maint - 1.0.5-17 -- Rebuilt for Python 3.12 - -* Wed Jan 18 2023 Fedora Release Engineering - 1.0.5-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Jul 20 2022 Fedora Release Engineering - 1.0.5-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 1.0.5-14 -- Rebuilt for Python 3.11 - -* Wed Jan 19 2022 Fedora Release Engineering - 1.0.5-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Jul 21 2021 Fedora Release Engineering - 1.0.5-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 1.0.5-11 -- Rebuilt for Python 3.10 - -* Tue Jan 26 2021 Fedora Release Engineering - 1.0.5-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Jul 27 2020 Fedora Release Engineering - 1.0.5-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue May 26 2020 Miro Hrončok - 1.0.5-8 -- Rebuilt for Python 3.9 - -* Tue Jan 28 2020 Fedora Release Engineering - 1.0.5-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Oct 03 2019 Miro Hrončok - 1.0.5-6 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Mon Aug 19 2019 Miro Hrončok - 1.0.5-5 -- Rebuilt for Python 3.8 - -* Mon Aug 19 2019 Miro Hrončok - 1.0.5-4 -- Rebuilt for Python 3.8 - -* Wed Jul 24 2019 Fedora Release Engineering - 1.0.5-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 1.0.5-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Wed Aug 01 2018 Miro Hrončok - 1.0.5-1 -- Update to 1.0.5 (#1610571) - -* Thu Jul 12 2018 Fedora Release Engineering - 1.0.1-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 1.0.1-5 -- Rebuilt for Python 3.7 - -* Tue Jun 19 2018 Miro Hrončok - 1.0.1-4 -- Rebuilt for Python 3.7 - -* Wed Feb 07 2018 Fedora Release Engineering - 1.0.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1.0.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Tue Mar 14 2017 Miro Hrončok - 1.0.1-1 -- Initial package diff --git a/sources b/sources index 53515d4..1204f92 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ampy-1.0.5.tar.gz) = e20adc957db6756352faa221ad33633d2550784734c25dae6f10aca217f9a4f2ba07a563ed70aebc158efa60d8295f1df4fd81e9be1487043474fc82a09e4856 +SHA512 (ampy-1.0.1.tar.gz) = e4d614bb215a3c07ffbadd29bd60c00c48a315a54db3e77aa25a878e31a6cc22115e55715963cc348406d897a930d6514dc56c203540739cccc52152e874b78f