Sisyphus repositório
Última atualização: 13 novembro 2019 | SRPMs: 17526 | Visitas: 15718507
en ru br
ALT Linux repositórios
S:0.4.6.2-alt1.git20141116.1.1.1

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname pylzma

%def_with python3

Name: python-module-%oname
Version: 0.4.6.2
Release: alt1.git20141116.1
Summary: Python bindings for the LZMA library by Igor Pavlov
License: LGPLv2.1+
Group: Development/Python
Url: https://pypi.python.org/pypi/pylzma/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# https://github.com/fancycode/pylzma.git

Source: %name-%version.tar

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

%py_provides %oname

%description
PyLZMA provides a platform independent way to read and write data that
has been compressed or can be decompressed by the LZMA library by Igor
Pavlov.

%package -n python3-module-%oname
Summary: Python bindings for the LZMA library by Igor Pavlov
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
PyLZMA provides a platform independent way to read and write data that
has been compressed or can be decompressed by the LZMA library by Igor
Pavlov.

%prep
%setup

sed -i 's| at VERSION at |%version|' version.py

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

%build
%add_optflags -fno-strict-aliasing
%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

%check
python setup.py test
%if_with python3
pushd ../python3
python3 setup.py test
popd
%endif

%files
%doc *.md doc/*
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc *.md doc/*
%python3_sitelibdir/*
%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