15
0

- 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
This commit is contained in:
2023-08-30 08:48:58 +00:00
committed by Git OBS Bridge
parent 4c557fdaf7
commit 7350923d1a
2 changed files with 14 additions and 12 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Aug 30 08:47:36 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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