forked from pool/python-py-vapid
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-vapid?expand=0&rev=8
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 3 12:53:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 13 16:23:06 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
Tue Dec 13 16:23:06 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-py-vapid
|
# spec file for package python-py-vapid
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 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
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-py-vapid
|
Name: python-py-vapid
|
||||||
Version: 1.9.0
|
Version: 1.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -24,12 +23,14 @@ Summary: VAPID header generation library
|
|||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
URL: https://github.com/mozilla-services/vapid
|
URL: https://github.com/mozilla-services/vapid
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/py-vapid/py-vapid-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/py-vapid/py-vapid-%{version}.tar.gz
|
||||||
|
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.5
|
Requires: python-cryptography >= 2.5
|
||||||
Requires(post): update-alternatives
|
Requires(post): alts
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): alts
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module cryptography >= 2.5}
|
BuildRequires: %{python_module cryptography >= 2.5}
|
||||||
@@ -45,10 +46,10 @@ VAPID header generation library.
|
|||||||
sed -i 's/from mock import/from unittest.mock import/' py_vapid/tests/test_vapid.py
|
sed -i 's/from mock import/from unittest.mock import/' py_vapid/tests/test_vapid.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/vapid
|
%python_clone -a %{buildroot}%{_bindir}/vapid
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -65,6 +66,7 @@ sed -i 's/from mock import/from unittest.mock import/' py_vapid/tests/test_vapid
|
|||||||
%doc README.md README.rst
|
%doc README.md README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/vapid
|
%python_alternative %{_bindir}/vapid
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/py[-_]vapid
|
||||||
|
%{python_sitelib}/py[-_]vapid-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user