14
0

Accepting request 1284984 from devel:languages:python

- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1284984
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-untokenize?expand=0&rev=3
This commit is contained in:
2025-06-12 13:53:38 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 12 05:07:58 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 18 23:21:08 UTC 2018 - Jan Engelhardt <jengelh@inai.de> Tue Dec 18 23:21:08 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-untokenize # spec file for package python-untokenize
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # 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,16 +16,16 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-untokenize Name: python-untokenize
Version: 0.1.1 Version: 0.1.1
Release: 0 Release: 0
Summary: Python module to transform tokens into original source code Summary: Python module to transform tokens into original source code
License: MIT License: MIT
Group: Development/Languages/Python URL: https://github.com/myint/untokenize
Url: https://github.com/myint/untokenize
Source: https://files.pythonhosted.org/packages/source/u/untokenize/untokenize-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/u/untokenize/untokenize-%{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
BuildArch: noarch BuildArch: noarch
@@ -40,10 +40,10 @@ tokenize.untokenize(), it preserves the original whitespace between tokens.
%setup -q -n untokenize-%{version} %setup -q -n untokenize-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -52,6 +52,8 @@ tokenize.untokenize(), it preserves the original whitespace between tokens.
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/untokenize.py
%pycache_only %{python_sitelib}/__pycache__/untokenize.*.pyc
%{python_sitelib}/untokenize-%{version}.dist-info
%changelog %changelog