edba8a8
%global srcname towncrier
df017ba
df017ba
%global common_description %{expand:
df017ba
Towncrier is a utility to produce useful, summarised news files for your 
df017ba
project. Rather than reading the Git history as some newer tools to produce it,
df017ba
or having one single file which developers all write to, towncrier reads "news 
df017ba
fragments" which contain information useful to end users.}
df017ba
edba8a8
Name:           python-%{srcname}
f95de2e
Version:        23.11.0
87c816f
Release:        %autorelease
df017ba
Summary:        Building newsfiles for your project
df017ba
df017ba
License:        MIT
df017ba
URL:            https://github.com/hawkowl/towncrier
edba8a8
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
f95de2e
# Relax hatchling, incremental deps
f95de2e
Patch:          towncrier-relax-deps.patch
31c797f
edba8a8
BuildArch:      noarch
df017ba
BuildRequires:  python3-devel
280a0d8
BuildRequires:  python3-twisted
af08048
BuildRequires:  git-core
df017ba
edba8a8
%description %{common_description}
df017ba
edba8a8
%package -n     python3-%{srcname}
df017ba
Summary:        %{summary}
edba8a8
Provides:       %{srcname} = %{version}-%{release}
df017ba
edba8a8
%description -n python3-%{srcname} %{common_description}
df017ba
df017ba
%prep
edba8a8
%autosetup -p1 -n %{srcname}-%{version}
df017ba
edba8a8
%generate_buildrequires
edba8a8
%pyproject_buildrequires -t
df017ba
df017ba
%build
edba8a8
%pyproject_wheel
df017ba
df017ba
%install
edba8a8
%pyproject_install
edba8a8
%pyproject_save_files %{srcname}
df017ba
af08048
%check
f95de2e
%{py3_test_envvars} %{_bindir}/trial towncrier
af08048
edba8a8
%files -n python3-%{srcname} -f %{pyproject_files}
df017ba
%doc README.rst
df017ba
%{_bindir}/towncrier
df017ba
df017ba
%changelog
87c816f
%autochangelog