From 7350923d1aaa8fca09f9cc7fa14a7193821f80ad8aee7ba291c40d4413b02fbf Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 30 Aug 2023 08:48:58 +0000 Subject: [PATCH] - Remove future {Build,}Requires, not needed. - Stop using greedy globs in %files. - Switch to pyproject macros. - Rip out Python 2 support in the spec file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-arabic-reshaper?expand=0&rev=19 --- python-arabic-reshaper.changes | 8 ++++++++ python-arabic-reshaper.spec | 18 ++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/python-arabic-reshaper.changes b/python-arabic-reshaper.changes index 8018797..ae9b8a2 100644 --- a/python-arabic-reshaper.changes +++ b/python-arabic-reshaper.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Aug 30 08:47:36 UTC 2023 - Steve Kowalik + +- Remove future {Build,}Requires, not needed. +- Stop using greedy globs in %files. +- Switch to pyproject macros. +- Rip out Python 2 support in the spec file. + ------------------------------------------------------------------- Fri Jan 13 09:54:20 UTC 2023 - Dirk Müller diff --git a/python-arabic-reshaper.spec b/python-arabic-reshaper.spec index c4e678f..651c82e 100644 --- a/python-arabic-reshaper.spec +++ b/python-arabic-reshaper.spec @@ -16,26 +16,19 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%global skip_python2 1 Name: python-arabic-reshaper Version: 3.0.0 Release: 0 Summary: Python module for formatting Arabic sentences License: MIT -Group: Development/Languages/Python URL: https://github.com/mpcabd/python-arabic-reshaper/ Source: https://github.com/mpcabd/python-arabic-reshaper/archive/v%{version}.tar.gz#/arabic_reshaper-%{version}.tar.gz -BuildRequires: %{python_module future} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: (python-configparser if python-base) -Requires: python-future BuildArch: noarch -%ifpython2 -Requires: python-configparser -%endif %python_subpackages %description @@ -46,10 +39,10 @@ applications that do not support Arabic. %setup -q %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +51,7 @@ applications that do not support Arabic. %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/arabic_reshaper +%{python_sitelib}/arabic_reshaper-%{version}.dist-info %changelog