forked from pool/python-arabic-reshaper
Accepting request 1108063 from devel:languages:python
- 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/request/show/1108063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-arabic-reshaper?expand=0&rev=10
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user