2024-10-31 12:08:33 +00:00
|
|
|
%global python3_pkgversion 3.11
|
|
|
|
|
|
|
|
%global srcname rpmautospec
|
|
|
|
|
|
|
|
Name: python%{python3_pkgversion}-%{srcname}
|
|
|
|
Version: 0.6.5
|
2024-10-31 13:35:54 +00:00
|
|
|
Release: 0.1%{?dist}
|
2024-10-31 12:08:33 +00:00
|
|
|
Summary: Package and CLI tool to generate release fields and changelogs
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/fedora-infra/%{srcname}
|
|
|
|
Source0: https://github.com/fedora-infra/%{srcname}/releases/download/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
Patch0: python3.11-rpmautospec-0.6.5-no-pytest-cov.patch
|
|
|
|
|
2024-10-31 13:33:56 +00:00
|
|
|
|
|
|
|
Patch1000: 0001-Added-AlmaLinux-change-identifier-0.6.5.patch
|
|
|
|
|
2024-10-31 12:08:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: git
|
|
|
|
# the langpacks are needed for tests
|
|
|
|
BuildRequires: glibc-langpack-de
|
|
|
|
BuildRequires: glibc-langpack-en
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}dist(babel)
|
|
|
|
BuildRequires: python%{python3_pkgversion}dist(pygit2)
|
|
|
|
BuildRequires: python%{python3_pkgversion}dist(pytest)
|
|
|
|
BuildRequires: python%{python3_pkgversion}dist(pyyaml)
|
|
|
|
BuildRequires: python%{python3_pkgversion}dist(rpm)
|
|
|
|
BuildRequires: python%{python3_pkgversion}dist(rpmautospec-core)
|
|
|
|
BuildRequires: python%{python3_pkgversion}dist(setuptools)
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
|
|
|
|
%description
|
|
|
|
A package and CLI tool to generate RPM release fields and changelogs.
|
|
|
|
|
|
|
|
%package -n %{srcname}
|
|
|
|
Summary: CLI tool for generating RPM releases and changelogs
|
|
|
|
Requires: python%{python3_pkgversion}-%{srcname} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{srcname}
|
|
|
|
CLI tool for generating RPM releases and changelogs
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version} -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
# The macro file is contained in epel-rpm-macros
|
|
|
|
# mkdir -p %%{buildroot}%%{rpmmacrodir}
|
|
|
|
# install -m 644 rpm/macros.d/macros.rpmautospec %%{buildroot}%%{rpmmacrodir}/
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest -v
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
%{python3_sitelib}/*.egg-info/
|
|
|
|
|
|
|
|
%files -n %{srcname}
|
|
|
|
%{_bindir}/rpmautospec
|