forked from pool/python-pywebpush
Accepting request 1284670 from devel:languages:python
- Switch to pyproject macros. OBS-URL: https://build.opensuse.org/request/show/1284670 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywebpush?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 11 05:49:38 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 28 06:43:49 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed Jun 28 06:43:49 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pywebpush
|
# spec file for package python-pywebpush
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -25,7 +25,9 @@ URL: https://github.com/web-push-libs/pywebpush
|
|||||||
Source: https://files.pythonhosted.org/packages/source/p/pywebpush/pywebpush-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pywebpush/pywebpush-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE Do not require six module
|
# PATCH-FIX-OPENSUSE Do not require six module
|
||||||
Patch0: no-more-six.patch
|
Patch0: no-more-six.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-cryptography >= 2.6.1
|
Requires: python-cryptography >= 2.6.1
|
||||||
@@ -33,7 +35,7 @@ Requires: python-http-ece >= 1.1.0
|
|||||||
Requires: python-py-vapid >= 1.5.0
|
Requires: python-py-vapid >= 1.5.0
|
||||||
Requires: python-requests >= 2.21.0
|
Requires: python-requests >= 2.21.0
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module cryptography >= 2.6.1}
|
BuildRequires: %{python_module cryptography >= 2.6.1}
|
||||||
@@ -51,10 +53,10 @@ WebPush publication library.
|
|||||||
%autosetup -p1 -n pywebpush-%{version}
|
%autosetup -p1 -n pywebpush-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pywebpush
|
%python_clone -a %{buildroot}%{_bindir}/pywebpush
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -74,6 +76,6 @@ sed -i 's:from mock:from unittest.mock:' pywebpush/tests/test_webpush.py
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/pywebpush
|
%python_alternative %{_bindir}/pywebpush
|
||||||
%{python_sitelib}/pywebpush
|
%{python_sitelib}/pywebpush
|
||||||
%{python_sitelib}/pywebpush-%{version}*-*info
|
%{python_sitelib}/pywebpush-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user