Rename package as to honour Fedora's naming policy.
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
%global pypi_name setuptools_scm
|
%global pypi_name setuptools_scm
|
||||||
%global pypi_version 5.0.2
|
%global pypi_version 5.0.2
|
||||||
|
%global canonical_pypi_name %(echo %{pypi_name} | tr '_' '-')
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{canonical_pypi_name}
|
||||||
Version: %{pypi_version}
|
Version: %{pypi_version}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Blessed package to manage your versions by SCM tags
|
Summary: Blessed package to manage your versions by SCM tags
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pypa/setuptools_scm/
|
URL: https://github.com/pypa/setuptools_scm/
|
||||||
Source0: %{pypi_source setuptools_scm}
|
Source0: https://files.pythonhosted.org/packages/source/%(c=%{pypi_name}; echo ${c:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
@@ -21,13 +22,13 @@ It also handles file finders for the supported SCMs.}
|
|||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{pypi_name}
|
%package -n python%{python3_pkgversion}-%{canonical_pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{canonical_pypi_name}}
|
||||||
|
|
||||||
Requires: python%{python3_version}dist(setuptools)
|
Requires: python%{python3_version}dist(setuptools)
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{pypi_name} %_description
|
%description -n python%{python3_pkgversion}-%{canonical_pypi_name} %_description
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@@ -43,12 +44,15 @@ rm -rf %{pypi_name}.egg-info
|
|||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-%{pypi_name}
|
%files -n python%{python3_pkgversion}-%{canonical_pypi_name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/%{pypi_name}
|
%{python3_sitelib}/%{pypi_name}
|
||||||
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info
|
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 19 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 5.0.2-2
|
||||||
|
- Rename package names as to honour Fedora's naming policy.
|
||||||
|
|
||||||
* Tue Apr 19 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 5.0.2-1
|
* Tue Apr 19 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 5.0.2-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
Reference in New Issue
Block a user