forked from pool/python-blurb
Accepting request 978315 from devel:languages:python
- 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-<number>" instead of "bpo-".
OBS-URL: https://build.opensuse.org/request/show/978315
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-blurb?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:84756404ad28961b07a420d423cfa9b3a5fcb32be4d648553fac639a29cb82e3
|
||||
size 21519
|
||||
3
blurb-1.1.0.tar.gz
Normal file
3
blurb-1.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:34202b490738c8116066b1cb9bb3f007846710f067b8b023cff968abdf9accac
|
||||
size 25064
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 20 15:26:45 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- 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-<number>" instead of "bpo-".
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 18 07:07:22 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user