@ -1,4 +1,4 @@
# when bootstrapping Python, pytest-xdist is not yet available
# The pytest-xdist package is not available when bootstrapping or for EL builds
%bcond xdist %{undefined rhel}
# Package the placeholder rpm-macros (moved to redhat-rpm-config in F40)
@ -16,15 +16,14 @@
%endif
%global srcname rpmautospec
%global canonicalname %{py_dist_name %{srcname}}
Name: python-%{canonical name}
Name: python-%{src name}
Version: 0.6.1
Release: %autorelease
Summary: Package and CLI tool to generate release fields and changelogs
License: MIT
URL: https://github.com/fedora-infra/%{canonical name}
Source0: https://github.com/fedora-infra/%{canonicalname}/releases/download/%{version}/%{canonical name}-%{version}.tar.gz
URL: https://github.com/fedora-infra/%{src name}
Source0: https://github.com/fedora-infra/%{srcname}/releases/download/%{version}/%{src name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: git
@ -45,17 +44,17 @@ A package and CLI tool to generate RPM release fields and changelogs.}
%description %_description
%package -n python3-%{canonical name}
%package -n python3-%{src name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{canonical name} %_description
%description -n python3-%{src name} %_description
%package -n %{canonical name}
%package -n %{src name}
Summary: CLI tool for generating RPM releases and changelogs
Requires: python3-%{canonical name} = %{version}-%{release}
Requires: python3-%{src name} = %{version}-%{release}
%description -n %{canonical name}
%description -n %{src name}
CLI tool for generating RPM releases and changelogs
%if %{with rpmmacropkg}
@ -102,10 +101,10 @@ install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/
--numprocesses=auto
%endif
%files -n python3-%{canonical name} -f %{pyproject_files}
%files -n python3-%{src name} -f %{pyproject_files}
%doc README.rst
%files -n %{canonical name}
%files -n %{src name}
%{_bindir}/rpmautospec
%if %{with rpmmacropkg}