Sisyphus repositório
Última atualização: 16 outubro 2019 | SRPMs: 17499 | Visitas: 15271450
en ru br
ALT Linux repositórios
S:3.0.4-alt1

Group :: Desenvolvimento/Python
RPM: python-module-chardet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define pkgname chardet
%def_with python3


%define python3_dirsetup \
%if_with python3 \
rm -rf ../python3 \
cp -a . ../python3 \
%endif \
%nil

#find ../python3 -name "*.py" | xargs %__subst "s|^#!/usr/bin/env python$|#!/usr/bin/python3|g"


%define python3_dirbuild \
%if_with python3 \
pushd ../python3 \
%python3_build \
popd \
%endif \
%nil

%define python3_dirinstall \
%if_with python3 \
pushd ../python3 \
%python3_install \
popd \
%endif \
%nil

#TODO: python3_dircheck



Name: python-module-chardet
Version: 2.3.0
Release: alt1

Summary: Character encoding auto-detection in Python

License: LGPL
Url: https://pypi.python.org/pypi/%pkgname
Group: Development/Python

Packager: Evgenii Terechkov <evg at altlinux.ru>

Source: https://pypi.python.org/packages/source/c/chardet/%pkgname-%version.tar

BuildArch: noarch

BuildRequires: python-devel python-module-setuptools

%description
Character encoding auto-detection in Python.

%if_with python3
%package -n python3-module-%pkgname
Summary: Character encoding auto-detection in Python
Group: Development/Python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools

%description -n python3-module-%pkgname
Character encoding auto-detection in Python.
%endif


%prep
%setup -n %pkgname-%version

%python3_dirsetup

%build
%python_build
%python3_dirbuild

%install
%python_install
%python3_dirinstall

rm -rf %buildroot%_bindir/

%files
# FIXME: makes checker think it use python3 libs
#_bindir/chardetect
%python_sitelibdir/%pkgname/
%python_sitelibdir/%pkgname-*egg-info/
#doc docs

%if_with python3
%files -n python3-module-%pkgname
%python3_sitelibdir/%pkgname/
%python3_sitelibdir/*.egg-info/
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009