- Run correct fdupes call
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Unidecode?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
27395444dc
commit
9c8a665ce5
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 6 14:30:29 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Run correct fdupes call
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:55:35 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -23,14 +23,13 @@ Release: 0
|
||||
Summary: ASCII transliterations of Unicode text
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
Url: https://pypi.python.org/pypi/Unidecode
|
||||
URL: https://pypi.python.org/pypi/Unidecode
|
||||
Source: https://files.pythonhosted.org/packages/source/U/Unidecode/Unidecode-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -41,7 +40,7 @@ doesn't support Unicode, or for ease of entry of non-Roman names on a US
|
||||
keyboard, or when constructing ASCII machine identifiers from
|
||||
human-readable Unicode strings that should still be somewhat intelligible
|
||||
(a popular example of this is when making an URL slug from an article
|
||||
title).
|
||||
title).
|
||||
|
||||
In most of these examples you could represent Unicode characters as
|
||||
"???" or "\\15BA\\15A0\\1610", to mention two extreme cases. But that's
|
||||
@@ -80,12 +79,12 @@ Sean M. Burke <sburke@cpan.org>.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}/%_prefix
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/unidecode
|
||||
%python_clone -a %{buildroot}%{_bindir}/unidecode
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
%python_exec setup.py test
|
||||
|
||||
%post
|
||||
@@ -94,8 +93,7 @@ export LANG=en_US.UTF-8
|
||||
%preun
|
||||
%python_uninstall_alternative unidecode
|
||||
|
||||
%files %python_files
|
||||
%defattr(-,root,root,-)
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc ChangeLog README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user