2023-08-21 20:06:34 +08:00
|
|
|
%global pypi_name anyascii
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 0.3.2
|
2023-09-05 17:29:03 +08:00
|
|
|
Release: 2
|
2023-08-21 20:06:34 +08:00
|
|
|
Summary: Unicode to ASCII transliteration.
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/anyascii/anyascii
|
|
|
|
|
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
AnyAscii provides ASCII-only replacement strings for practically all Unicode characters. Text is converted character-by-character without considering the context.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: Unicode to ASCII transliteration.
|
|
|
|
|
Provides: python-%{pypi_name}
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
BuildRequires: python3-flit
|
|
|
|
|
|
2023-09-05 17:29:03 +08:00
|
|
|
# for test
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-anyascii
|
|
|
|
|
|
2023-08-21 20:06:34 +08:00
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
|
AnyAscii provides ASCII-only replacement strings for practically all Unicode characters. Text is converted character-by-character without considering the context.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
|
2023-09-05 17:29:03 +08:00
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
2023-08-21 20:06:34 +08:00
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{python3_sitelib}/anyascii-*.dist-info/
|
|
|
|
|
%{python3_sitelib}/anyascii/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-09-05 17:29:03 +08:00
|
|
|
* Tue Sep 5 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 0.3.2-2
|
|
|
|
|
- Start self-test of software package
|
|
|
|
|
|
2023-08-21 20:06:34 +08:00
|
|
|
* Mon Aug 21 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 0.3.2-1
|
|
|
|
|
- Init package python-anyascii.
|