forked from pool/python-TagStats
Accepting request 1276901 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276901 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-TagStats?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 12 14:56:25 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 7 15:52:44 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-TagStats
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,8 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-TagStats
|
||||
Version: 0.1.2
|
||||
Release: 0
|
||||
@@ -27,7 +25,9 @@ URL: https://github.com/chuanconggao/TagStats
|
||||
Source: https://files.pythonhosted.org/packages/source/T/TagStats/TagStats-%{version}.tar.gz
|
||||
Source10: https://raw.githubusercontent.com/chuanconggao/TagStats/%{version}/LICENSE
|
||||
BuildRequires: %{python_module base >= 3.6}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -43,15 +43,16 @@ cp %{SOURCE10} .
|
||||
sed -i -e '/^#! \//, 1d' tagstats/*.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/[Tt]ag[Ss]tats
|
||||
%{python_sitelib}/[Tt]ag[Ss]tats-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user