commit 5b4e3add52a0d747e74bd02076258409bdd351be Author: Daniel Uvehag Date: Tue Apr 19 15:02:16 2022 +0200 Initial package diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec new file mode 100644 index 0000000..1772d40 --- /dev/null +++ b/python-setuptools_scm.spec @@ -0,0 +1,54 @@ +%global pypi_name setuptools_scm +%global pypi_version 5.0.2 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1%{?dist} +Summary: Blessed package to manage your versions by SCM tags + +License: MIT +URL: https://github.com/pypa/setuptools_scm/ +Source0: %{pypi_source setuptools_scm} +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_version}dist(setuptools) + +%global _description %{expand: +setuptools_scm handles managing your Python package versions in SCM metadata. +It also handles file finders for the supported SCMs.} + +%description %_description + + +%package -n python%{python3_pkgversion}-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} + +Requires: python%{python3_version}dist(setuptools) + +%description -n python%{python3_pkgversion}-%{pypi_name} %_description + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python%{python3_pkgversion}-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Tue Apr 19 2022 Daniel Uvehag - 5.0.2-1 +- Initial package.