From dc582161846efb7d9e5ed6bbb31dd749390b1b9f05627f9aaa99021a19b5e987 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 20 May 2022 15:41:21 +0000 Subject: [PATCH] - Update to 1.1.0: - Support GitHub Issues in addition to b.p.o (bugs.python.org). If "gh-issue" is in the metadata, then the filename will contain "gh-issue-" instead of "bpo-". OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blurb?expand=0&rev=6 --- blurb-1.0.8.tar.gz | 3 --- blurb-1.1.0.tar.gz | 3 +++ python-blurb.changes | 8 ++++++++ python-blurb.spec | 37 +++++++++++++++++++++++++++---------- 4 files changed, 38 insertions(+), 13 deletions(-) delete mode 100644 blurb-1.0.8.tar.gz create mode 100644 blurb-1.1.0.tar.gz diff --git a/blurb-1.0.8.tar.gz b/blurb-1.0.8.tar.gz deleted file mode 100644 index d596f45..0000000 --- a/blurb-1.0.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:84756404ad28961b07a420d423cfa9b3a5fcb32be4d648553fac639a29cb82e3 -size 21519 diff --git a/blurb-1.1.0.tar.gz b/blurb-1.1.0.tar.gz new file mode 100644 index 0000000..895a411 --- /dev/null +++ b/blurb-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34202b490738c8116066b1cb9bb3f007846710f067b8b023cff968abdf9accac +size 25064 diff --git a/python-blurb.changes b/python-blurb.changes index dd541af..c7e798c 100644 --- a/python-blurb.changes +++ b/python-blurb.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri May 20 15:26:45 UTC 2022 - Matej Cepl + +- Update to 1.1.0: + - Support GitHub Issues in addition to b.p.o + (bugs.python.org). If "gh-issue" is in the metadata, then the + filename will contain "gh-issue-" instead of "bpo-". + ------------------------------------------------------------------- Tue May 18 07:07:22 UTC 2021 - pgajdos@suse.com diff --git a/python-blurb.spec b/python-blurb.spec index c04d3ec..6d84838 100644 --- a/python-blurb.spec +++ b/python-blurb.spec @@ -1,7 +1,7 @@ # # spec file for package python-blurb # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,43 +19,60 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-blurb -Version: 1.0.8 +Version: 1.1.0 Release: 0 Summary: Command-line tool to manage CPython Misc/NEWS.d entries License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/python/core-workflow/tree/master/blurb Source: https://files.pythonhosted.org/packages/source/b/blurb/blurb-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.5} -BuildRequires: %{python_module devel} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch +Requires(post): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description Command-line tool to manage CPython Misc/NEWS.d entries. %prep -%setup -q -n blurb-%{version} +%autosetup -p1 -n blurb-%{version} + +sed -i '1{\,^#!%{_bindir}/env python,d}' blurb.py +chmod -x blurb.py %build -%python_build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/blurb +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check mkdir blurb mv tests blurb %pytest blurb.py -%install -%python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative blurb + +%postun +%python_uninstall_alternative blurb %files %{python_files} %doc README.rst %license LICENSE.txt -%{python_sitelib}/* +%python_alternative %{_bindir}/blurb +%{python_sitelib}/blurb.py +%pycache_only %{python_sitelib}/__pycache__/blurb*.pyc +%{python_sitelib}/blurb-%{version}*-info %changelog