commit 23abafa05404126cf8c95ed62b2bb5087d0acb59 Author: Sergey Cherevko Date: Thu Feb 22 14:56:02 2024 +0300 import python-dataclasses-0.8-4.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a06dc7c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dataclasses-0.8.tar.gz diff --git a/.python-dataclasses.metadata b/.python-dataclasses.metadata new file mode 100644 index 0000000..11ecbfb --- /dev/null +++ b/.python-dataclasses.metadata @@ -0,0 +1 @@ +ef25d3e9e2523805baa314a4adcb915ae901740e SOURCES/dataclasses-0.8.tar.gz diff --git a/SPECS/python-dataclasses.spec b/SPECS/python-dataclasses.spec new file mode 100644 index 0000000..95a909e --- /dev/null +++ b/SPECS/python-dataclasses.spec @@ -0,0 +1,70 @@ +# Created by pyp2rpm-3.3.5 +%global pypi_name dataclasses + +Name: python-%{pypi_name} +Version: 0.8 +Release: 4%{?dist} +Summary: An implementation of PEP 557: Data Classes + +License: ASL 2.0 +URL: https://github.com/ericvsmith/dataclasses +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel >= 3.6 +BuildRequires: python3-devel < 3.7 +BuildRequires: python3-setuptools + +%global common_description %{expand: +This package is an implementation of PEP 557, Data Classes. It is a backport +for Python 3.6, as dataclasses is included in Python 3.7 and later.} + +%description +%common_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +%py_provides python3-%{pypi_name} + +%description -n python3-%{pypi_name} +%common_description + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{python3} -m unittest discover test + +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Thu Feb 22 2024 Sergey Cherevko - 0.8-4 +- Rebuilt for MSVSphere 8.9 + +* Fri Jan 13 2023 Davide Cavalca - 0.8-4 +- Update setuptools BR for compatibility with epel7 + Fixes: RHBZ#2160726 + +* Mon Jan 4 2021 Davide Cavalca - 0.8-3 +- Add LICENSE.txt to files + +* Mon Jan 4 2021 Davide Cavalca - 0.8-2 +- Correct license +- Scope BuildRequires to Python 3.6 +- Rework description + +* Sun Jan 3 2021 Davide Cavalca - 0.8-1 +- Initial package.