Initial package
This commit is contained in:
@@ -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 <ufven+pkgs@protonmail.com> - 5.0.2-1
|
||||||
|
- Initial package.
|
||||||
Reference in New Issue
Block a user