Sisyphus repositório
Última atualização: 18 novembro 2019 | SRPMs: 17519 | Visitas: 15779864
en ru br
ALT Linux repositórios
S:1.0.18-alt1.1

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname ipaddress

%def_with python3

Name: python-module-%oname
Version: 1.0.18
Release: alt1.1
Summary: IPv4/IPv6 manipulation library
License: Python
Group: Development/Python
Url: https://pypi.python.org/pypi/ipaddress/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# https://github.com/phihag/ipaddress.git

Source0: https://pypi.python.org/packages/4e/13/774faf38b445d0b3a844b65747175b2e0500164b7c28d78e34987a5bfe06/%{oname}-%{version}.tar.gz
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

%description
Port of the 3.3+ ipaddress module to 2.6 and 2.7.

%package -n python3-module-%oname
Summary: IPv4/IPv6 manipulation library
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
Port of the 3.3+ ipaddress module to 2.6 and 2.7.

%prep
%setup -q -n %{oname}-%{version}

%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

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

%files
%doc README*
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc README*
%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