From 4d5a4d7d7b60a788924e10f53494593b23ee203f Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Tue, 5 Jan 2021 07:38:24 -0800 Subject: [PATCH] Initial import (#1912143) --- .gitignore | 1 + python-dataclasses.spec | 63 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 .gitignore create mode 100644 python-dataclasses.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd96df1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dataclasses-0.8.tar.gz diff --git a/python-dataclasses.spec b/python-dataclasses.spec new file mode 100644 index 0000000..c31ff9e --- /dev/null +++ b/python-dataclasses.spec @@ -0,0 +1,63 @@ +# Created by pyp2rpm-3.3.5 +%global pypi_name dataclasses + +Name: python-%{pypi_name} +Version: 0.8 +Release: 3%{?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: python3dist(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 +* 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. diff --git a/sources b/sources new file mode 100644 index 0000000..b87fc3a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dataclasses-0.8.tar.gz) = 81b27dd10077084ca82b0a3cbbcee428a5c5cb2e6ade5de46a39731507c2d6f93f9038b704e6555c850044683516a0d130b95a14c91881d04b0bd2c496ca8d6a