John Vandenberg
2022-09-16 23:10:56 +00:00
committed by Git OBS Bridge
parent 2470d0bb8c
commit 03c54d0396

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-packageurl-python # 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 # 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
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!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 Source: https://files.pythonhosted.org/packages/source/p/packageurl-python/packageurl-python-%{version}.tar.gz
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes BuildRequires: fdupes
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
A "purl" aka. package URL parser and builder A "purl" aka. package URL parser and builder.
%prep %prep
%setup -q -n packageurl-python-%{version} %setup -q -n packageurl-python-%{version}
@@ -43,11 +44,12 @@ A "purl" aka. package URL parser and builder
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %pytest
%files %{python_files} %files %{python_files}
%doc CHANGELOG.rst README.rst %doc CHANGELOG.rst README.rst
%{python_sitelib}/* %{python_sitelib}/packageurl*
%changelog %changelog