15
0

Accepting request 655700 from devel:languages:python

- Run correct fdupes call

- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/655700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Unidecode?expand=0&rev=8
This commit is contained in:
2018-12-07 13:36:17 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 9 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Mon Nov 19 19:48:35 UTC 2018 - Benoît Monin <benoit.monin@gmx.fr>

View File

@@ -23,15 +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 devel}
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
@@ -42,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
@@ -81,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
@@ -95,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}/*