diff --git a/.gitignore b/.gitignore index 4f54d77..1cdec92 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ampy-1.0.1.tar.gz +/ampy-1.0.5.tar.gz diff --git a/ampy.spec b/ampy.spec index 283622f..c4e286e 100644 --- a/ampy.spec +++ b/ampy.spec @@ -1,28 +1,19 @@ -# Created by pyp2rpm-3.2.2 Name: ampy -Version: 1.0.1 -Release: 1%{?dist} +Version: 1.0.5 +Release: %autorelease 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 -# No tags :( -%global commit b693e22b273804bdf5a8e33cec7dd3bf4e484eab -Source0: %{url}/archive/%{commit}/%{name}-%{version}.tar.gz +Source0: %{url}/archive/%{version}/%{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} -Provides: python3-adafruit-%{name} = %{version}-%{release} -%{?python_provide:%python_provide python3-adafruit-%{name}} +%py_provides python3-adafruit-%{name} %description @@ -40,32 +31,34 @@ interaction like a shell or terminal to send input to a board. %prep -%autosetup -n %{name}-%{commit} +%autosetup -n %{name}-%{version} # shebangs sed -i '1d' $(grep -lr '#!/usr/') +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files -l %{name} %check -%{__python3} -m unittest tests/test_*.py -v +%pyproject_check_import +%{python3} -m unittest tests/test_*.py -v -%files +%files -f %{pyproject_files} %doc README.md -%license LICENSE %{_bindir}/%{name} -%{python3_sitelib}/%{name} -%{python3_sitelib}/adafruit_ampy-%{version}-py?.?.egg-info %changelog -* Tue Mar 14 2017 Miro Hrončok - 1.0.1-1 -- Initial package +%autochangelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..657fe20 --- /dev/null +++ b/changelog @@ -0,0 +1,77 @@ +* 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 1204f92..53515d4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ampy-1.0.1.tar.gz) = e4d614bb215a3c07ffbadd29bd60c00c48a315a54db3e77aa25a878e31a6cc22115e55715963cc348406d897a930d6514dc56c203540739cccc52152e874b78f +SHA512 (ampy-1.0.5.tar.gz) = e20adc957db6756352faa221ad33633d2550784734c25dae6f10aca217f9a4f2ba07a563ed70aebc158efa60d8295f1df4fd81e9be1487043474fc82a09e4856