15
0
Files
python-arabic-reshaper/python-arabic-reshaper.spec
Steve Kowalik 7350923d1a - 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
2023-08-30 08:48:58 +00:00

58 lines
1.7 KiB
RPMSpec

#
# spec file for package python-arabic-reshaper
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-arabic-reshaper
Version: 3.0.0
Release: 0
Summary: Python module for formatting Arabic sentences
License: MIT
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 pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
A module for reconstructing Arabic sentences that are to be used in
applications that do not support Arabic.
%prep
%setup -q
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest discover -v
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/arabic_reshaper
%{python_sitelib}/arabic_reshaper-%{version}.dist-info
%changelog