Репозиторий Sisyphus
Последнее обновление: 18 сентября 2019 | Пакетов: 17444 | Посещений: 15118514
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python-module-dnslib

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname dnslib

%def_with python3

Name: python-module-%oname
Version: 0.9.7
Release: alt2
Summary: Simple library to encode/decode DNS wire-format packets
License: BSD
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/dnslib

Source: %{oname}-%{version}.tar

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

%py_provides %oname

%description
A library to encode/decode DNS wire-format packets supporting both
Python 2.7 and Python 3.2+.

%package tests
Summary: Tests for %oname
Group: Development/Python
Requires: %name = %EVR

%description tests
A library to encode/decode DNS wire-format packets supporting both
Python 2.7 and Python 3.2+.

This package contains tests for %oname.

%if_with python3
%package -n python3-module-%oname
Summary: Simple library to encode/decode DNS wire-format packets
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
A library to encode/decode DNS wire-format packets supporting both
Python 2.7 and Python 3.2+.

%package -n python3-module-%oname-tests
Summary: Tests for %oname
Group: Development/Python3
Requires: python3-module-%oname = %EVR

%description -n python3-module-%oname-tests
A library to encode/decode DNS wire-format packets supporting both
Python 2.7 and Python 3.2+.

This package contains tests for %oname.
%endif

%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
VERSIONS=python ./run_tests.sh -v
%if_with python3
pushd ../python3
VERSIONS=python3 ./run_tests.sh -v
popd
%endif

%files
%doc README* PKG-INFO
%python_sitelibdir/*
%exclude %python_sitelibdir/*/test*

%files tests
%python_sitelibdir/*/test*

%if_with python3
%files -n python3-module-%oname
%doc README* PKG-INFO
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/test*
%exclude %python3_sitelibdir/*/*/test*

%files -n python3-module-%oname-tests
%python3_sitelibdir/*/test*
%python3_sitelibdir/*/*/test*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin