68 lines
1.9 KiB
RPMSpec
68 lines
1.9 KiB
RPMSpec
%global python3_pkgversion 3.11
|
|
|
|
%global srcname rpmautospec
|
|
|
|
Name: python%{python3_pkgversion}-%{srcname}
|
|
Version: 0.6.5
|
|
Release: %autorelease
|
|
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
|
|
|
|
|
|
Patch1000: 0001-Added-AlmaLinux-change-identifier-0.6.5.patch
|
|
|
|
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
|
|
|
|
%changelog
|
|
%autochangelog
|