Группа :: Development/Python3
Пакет: python3-module-nelsnmp
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname nelsnmp
%def_with check
Name: python3-module-%oname
Version: 0.2.9
Release: alt1
Summary: A wrapper module for pysnmp
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.python.org/pypi/nelsnmp/
BuildArch: noarch
# https://github.com/networklore/nelsnmp.git
Source0: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-pysnmp4
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-yaml
%endif
%py3_provides %oname
Requires: python3-module-pysnmp4
%description
%summary.
%prep
%setup
# https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
sed -i 's/yaml.load/yaml.safe_load/' tests/test_device_versions.py
%build
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -v
%files
%doc *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь
%define oname nelsnmp
%def_with check
Name: python3-module-%oname
Version: 0.2.9
Release: alt1
Summary: A wrapper module for pysnmp
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.python.org/pypi/nelsnmp/
BuildArch: noarch
# https://github.com/networklore/nelsnmp.git
Source0: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-pysnmp4
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-yaml
%endif
%py3_provides %oname
Requires: python3-module-pysnmp4
%description
%summary.
%prep
%setup
# https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
sed -i 's/yaml.load/yaml.safe_load/' tests/test_device_versions.py
%build
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -v
%files
%doc *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь