Пакет python3-module-junos-eznc: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | %define _unpackaged_files_terminate_build 1 %define oname junos-eznc %def_without check Name: python3-module-%oname Version: 2.6.3 Release: alt1 Summary: Junos 'EZ' automation for non-programmers License: Apache-2.0 Group: Development/Python3 Url: https://github.com/Juniper/py-junos-eznc Source: %name-%version.tar Patch0: %name-%version-alt.patch BuildArch: noarch BuildRequires(pre): rpm-build-python3 %if_with check # install_requires: BuildRequires: python3(lxml) BuildRequires: python3(ncclient) BuildRequires: python3(paramiko) BuildRequires: python3(scp) BuildRequires: python3(jinja2) BuildRequires: python3(yaml) BuildRequires: python3(six) BuildRequires: python3(serial) BuildRequires: python3(yamlloader) BuildRequires: python3(pyparsing) BuildRequires: python3(transitions) BuildRequires: python3(mock) BuildRequires: python3(nose) BuildRequires: python3(tox) BuildRequires: python3(tox_console_scripts) %endif # provide PyPI's name(dash and underscore) %py3_provides %oname %py3_provides junos_eznc # for some reason not detected automatically %py3_requires scp %description Junos PyEZ is a Python library to remotely manage/automate Junos devices. The user is NOT required: (a) to be a "Software Programmer", (b) have sophisticated knowledge of Junos, or (b) have a complex understanding of the Junos XML API. %prep %setup %autopatch -p1 # workaround for versioneer grep -qsF ' export-subst' .gitattributes || exit 1 vers_f="$(sed -n 's/ export-subst//p' .gitattributes)" grep -qs '^[ ]*git_refnames[ ]*=[ ]*".*"[ ]*$' "$vers_f" || exit 1 sed -i 's/^\([ ]*\)git_refnames[ ]*=[ ]*".*"[ ]*$/\1git_refnames = " (tag: v%version, upstream\/master)"/' "$vers_f" %build %python3_build %install %python3_install %check cat > tox.ini <<EOF [testenv] usedevelop=True commands = nosetests -v -a unit EOF export PIP_NO_INDEX=YES export TOXENV=py3 tox.py3 --sitepackages --console-scripts -vvr -s false %files # jnpr is the namespace package, don't own that directory %python3_sitelibdir/junos_eznc-%version-py%_python3_version-nspkg.pth %python3_sitelibdir/jnpr/junos/ %python3_sitelibdir/junos_eznc-%version-py%_python3_version.egg-info/ %changelog * Mon Mar 21 2022 Stanislav Levin <slev@altlinux.org> 2.6.3-alt1 - 2.6.2 -> 2.6.3. - Disabled testing (depends on unmaintained `nose`). * Sat Jul 24 2021 Stanislav Levin <slev@altlinux.org> 2.6.2-alt1 - 2.0.1 -> 2.6.2. - Enabled testing. * Tue Jul 13 2021 Grigory Ustinov <grenka@altlinux.org> 2.0.1-alt2 - Drop python2 support. * Wed Nov 30 2016 Valentin Rosavitskiy <valintinr@altlinux.org> 2.0.1-alt1 - New version * Thu Jun 16 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.3.1-alt2 - Do not move jnpr/junos stuff to jnpr directory (ALT#32198) (thx Andrey Cherepanov cas@). - %%python_req_hier -- for more detailed self-satisfied autoreqs (jnpr.*), without the general UNMET python2.X(jnpr). * Thu Jun 16 2016 Andrey Cherepanov <cas@altlinux.org> 1.3.1-alt2 * Fri Jun 10 2016 Valentin Rosavitskiy <valintinr@altlinux.org> 1.3.1-alt1 - New version * Tue Apr 28 2015 Valentin Rosavitskiy <valintinr@altlinux.org> 1.1.2-alt1 - New version * Thu Oct 30 2014 Valentin Rosavitskiy <valintinr@altlinux.org> 1.0.2-alt1 - Initial build for ALT |