b8ad3b4
Name:           python-blurb
cbdca27
Version:        1.1.0
62eb1d4
Release:        %autorelease
58fee3e
Summary:        Command-line tool to manage CPython Misc/NEWS.d entries
58fee3e
58fee3e
License:        BSD
58fee3e
URL:            https://github.com/python/core-workflow/tree/master/blurb
bab0dee
Source:         %pypi_source blurb %{version}
58fee3e
BuildArch:      noarch
b8ad3b4
58fee3e
BuildRequires:  python3-devel
58fee3e
58fee3e
%description
58fee3e
Blurb is a tool designed to rid CPython core development of the scourge of
58fee3e
Misc/NEWS conflicts.
58fee3e
b8ad3b4
%package -n     python3-blurb
58fee3e
Summary:        %{summary}
bab0dee
Provides:       blurb = %{version}-%{release}
58fee3e
58fee3e
# Calls git in subprocess
22020f1
Requires:       /usr/bin/git
58fee3e
b8ad3b4
%description -n python3-blurb
58fee3e
Blurb is a tool designed to rid CPython core development of the scourge of
58fee3e
Misc/NEWS conflicts.
58fee3e
58fee3e
%prep
b8ad3b4
%autosetup -n blurb-%{version}
58fee3e
58fee3e
# script in site-packages
b8ad3b4
sed -i '1d' blurb.py
b8ad3b4
chmod -x blurb.py
58fee3e
58fee3e
3d1c0e8
%generate_buildrequires
d9bb73c
%pyproject_buildrequires -r
3d1c0e8
3d1c0e8
58fee3e
%build
3d1c0e8
%pyproject_wheel
58fee3e
58fee3e
%install
3d1c0e8
%pyproject_install
b8ad3b4
%pyproject_save_files blurb
58fee3e
d9bb73c
%check
d9bb73c
PYTHONPATH=%{buildroot}%{python3_sitelib} %{buildroot}%{_bindir}/blurb --help
d9bb73c
b8ad3b4
%files -n python3-blurb -f %{pyproject_files}
58fee3e
%license LICENSE.txt
58fee3e
%doc README.rst
58fee3e
%{_bindir}/blurb
58fee3e
58fee3e
%changelog
62eb1d4
%autochangelog