[packages/python-unidecode] - updated to 1.2.0
qboosh
qboosh at pld-linux.org
Fri Oct 31 19:49:29 CET 2025
commit 9575d925143045d6ac5f86e6763d4418f8c09267
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 31 19:49:24 2025 +0100
- updated to 1.2.0
python-unidecode.spec | 51 +++++++++++++++++++++++++++++++++++++++------------
1 file changed, 39 insertions(+), 12 deletions(-)
---
diff --git a/python-unidecode.spec b/python-unidecode.spec
index f61ed40..4fd0a12 100644
--- a/python-unidecode.spec
+++ b/python-unidecode.spec
@@ -1,17 +1,25 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
%define module Unidecode
Summary: ASCII transliterations of Unicode text
+Summary(pl.UTF-8): Transliteracje ASCII tekstu w Unicode
Name: python-unidecode
-Version: 0.04.9
-Release: 2
+# keep 1.2.x here for python2 support
+Version: 1.2.0
+Release: 1
License: GPL v1+ or Artistic
Group: Libraries/Python
-Source0: http://pypi.python.org/packages/source/U/Unidecode/%{module}-%{version}.tar.gz
-# Source0-md5: c156f2cf31dd186532f8b993629b5b91
-URL: http://pypi.python.org/pypi/Unidecode/
+#Source0Download: https://pypi.org/simple/unidecode/
+Source0: https://files.pythonhosted.org/packages/source/U/Unidecode/%{module}-%{version}.tar.gz
+# Source0-md5: 32944d19e8b26efbf1e2baf83966dfc2
+URL: https://pypi.org/project/Unidecode/
+BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
-%pyrequires_eq python
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -19,12 +27,22 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Unidecode provides a function, 'unidecode(...)' that takes Unicode
data and tries to represent it in ASCII characters (i.e., the
universally displayable characters between 0x00 and 0x7F). The
-representation is almost always an attempt at transliteration -- i.e.,
+representation is almost always an attempt at transliteration - i.e.,
conveying, in Roman letters, the pronunciation expressed by the text
in some other writing system.
-This is a Python port of Text::Unidecode Perl module by Sean M. Burke
-<sburke at cpan.org>.
+This is a Python port of Text::Unidecode Perl module by Sean M. Burke.
+
+%description -l pl.UTF-8
+Unidecode udostępnia funkcję "unidecode(...)", pobierającą dane
+kodowane Unicode i próbuje reprezentawać je przy użyciu znaków ASCII
+(tj. znaków uniwersalnie możliwych do wyświetlenia, o kodach od 0x00
+do 0x7F). Reprezentacja jest prawie zawsze próbą transliteracji - tzn.
+przekazaniem, przy użyciu liter rzymskich, wymowy wyrażanej przez
+tekst w jakimś innym systemie pisma.
+
+Moduł jest pythonowym portem modułu Perla Text::Unidecode autorstwa
+Seana M. Burke.
%prep
%setup -q -n %{module}-%{version}
@@ -32,17 +50,26 @@ This is a Python port of Text::Unidecode Perl module by Sean M. Burke
%build
%py_build
+%if %{with tests}
+LC_ALL=C.UTF-8 \
+%{__python} -m unittest discover -s tests
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
+
%py_install
%py_postclean
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/unidecode{,-2}
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%doc ChangeLog README.rst
+%attr(755,root,root) %{_bindir}/unidecode-2
%{py_sitescriptdir}/unidecode
+%{py_sitescriptdir}/Unidecode-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-unidecode.git/commitdiff/9575d925143045d6ac5f86e6763d4418f8c09267
More information about the pld-cvs-commit
mailing list