From 03c54d039613ccc328bfcb6c9a4801116840b95f0be6dbdbbfd2a403fefd3ec2 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Fri, 16 Sep 2022 23:10:56 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/home:jayvdb:py-new/python-packageurl-python?expand=0&rev=4 --- python-packageurl-python.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/python-packageurl-python.spec b/python-packageurl-python.spec index 9f598ef..2a95b6e 100644 --- a/python-packageurl-python.spec +++ b/python-packageurl-python.spec @@ -1,7 +1,7 @@ # # spec file for package python-packageurl-python # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -26,13 +26,14 @@ Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/packageurl-python/packageurl-python-%{version}.tar.gz BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pytest} BuildRequires: fdupes BuildArch: noarch %python_subpackages %description -A "purl" aka. package URL parser and builder +A "purl" aka. package URL parser and builder. %prep %setup -q -n packageurl-python-%{version} @@ -43,11 +44,12 @@ A "purl" aka. package URL parser and builder %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} + %check -%python_exec setup.py test +%pytest %files %{python_files} %doc CHANGELOG.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/packageurl* %changelog