Sisyphus repository
Last update: 21 september 2020 | SRPMs: 17696 | Visits: 19266128
en ru br
ALT Linux repos
S:0.04.17-alt1.git20141218.1.2

Group :: Development/Python
RPM: python-module-unidecode

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname unidecode

%def_with python3

Name: python-module-%oname
Version: 0.04.17
Release: alt1.git20141218.1.1
Summary: ASCII transliterations of Unicode text
License: GPLv2
Group: Development/Python
Url: https://pypi.python.org/pypi/Unidecode/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# http://www.tablix.org/~avian/git/unidecode.git

Source: %name-%version.tar
BuildArch: noarch

#BuildPreReq: python-devel python-module-setuptools

%if_with python3
BuildRequires(pre): rpm-build-python3
#BuildPreReq: python3-devel python3-module-setuptools
%endif

%py_provides %oname

# Automatically added by buildreq on Thu Jan 28 2016 (-bi)

# optimized out: python-base python-modules python-modules-compiler python-modules-email python3 python3-base
BuildRequires: python-devel python-modules-unittest rpm-build-python3

%description
It often happens that you have text data in Unicode, but you need to
represent it in ASCII. For example when integrating with legacy code
that 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
intelligeble (a popular example of this is when making an URL slug from
an article title).

%package -n python3-module-%oname
Summary: ASCII transliterations of Unicode text
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
It often happens that you have text data in Unicode, but you need to
represent it in ASCII. For example when integrating with legacy code
that 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
intelligeble (a popular example of this is when making an URL slug from
an article title).

%prep
%setup

%if_with python3
cp -fR . ../python3
%endif

%build
%python_build_debug

%if_with python3
pushd ../python3
%python3_build_debug
popd
%endif

%install
%python_install

%if_with python3
pushd ../python3
%python3_install
popd
%endif

%files
%doc ChangeLog README tools
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc ChangeLog README tools
%python3_sitelibdir/*
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin