forked from pool/python-vulture
Accepting request 1288114 from devel:languages:python
- Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1288114 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vulture?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 24 02:55:57 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 5 14:17:11 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Tue Nov 5 14:17:11 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-vulture
|
# spec file for package python-vulture
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 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
|
||||||
@@ -22,23 +22,19 @@ Version: 2.13
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python module for finding dead code
|
Summary: Python module for finding dead code
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/jendrikseipp/vulture
|
URL: https://github.com/jendrikseipp/vulture
|
||||||
Source: https://files.pythonhosted.org/packages/source/v/vulture/vulture-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/v/vulture/vulture-%{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-Pint
|
|
||||||
Requires: python-tomli
|
|
||||||
Requires: python-typing-extensions
|
|
||||||
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 pytest > 3.2.3}
|
BuildRequires: %{python_module pytest > 3.2.3}
|
||||||
BuildRequires: %{python_module Pint}
|
BuildRequires: %{python_module Pint}
|
||||||
BuildRequires: %{python_module tomli}
|
|
||||||
BuildRequires: %{python_module typing-extensions}
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -65,10 +61,10 @@ Features:
|
|||||||
sed -i -e '/^#! \//, 1d' vulture/core.py
|
sed -i -e '/^#! \//, 1d' vulture/core.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/vulture
|
%python_clone -a %{buildroot}%{_bindir}/vulture
|
||||||
@@ -87,6 +83,7 @@ rm setup.cfg
|
|||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python_alternative %{_bindir}/vulture
|
%python_alternative %{_bindir}/vulture
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/vulture
|
||||||
|
%{python_sitelib}/vulture-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user