1 Star 0 Fork 12

yeah_wang/python-ethtool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-ethtool.spec 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
靳智敏 提交于 2020-10-29 15:11 . use python3 replace python2
%bcond_with tests
Name: python-ethtool
Version: 0.14
Release: 4
Summary: Python bindings for the ethtool kernel interface
License: GPLv2
URL: https://pypi.org/project/ethtool/
Source0: https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-%{version}.tar.gz
BuildRequires: gcc libnl3-devel python3-setuptools python3-devel
%description
Python bindings for the ethtool kernel interface. The Python ethtool
module allows querying and partially controlling network interfaces,
driver, and hardware settings.
%package -n python3-ethtool
Summary: Python 3 bindings for the ethtool kernel interface
%{?python_provide:%python_provide python3-ethtool}
%description -n python3-ethtool
Python 3 bindings for the ethtool kernel interface. The Python ethtool
module allows querying and partially controlling network interfaces,
driver, and hardware settings.
%package_help
%prep
%autosetup -n ethtool-%{version} -p1
rm -rf ethtool.egg-info
%build
%py3_build
%install
%py3_install
install -d %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/pethtool %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/pifconfig %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8/
install -p man/*.8.* %{buildroot}%{_mandir}/man8/
rm -rf tests/test_scripts.py
%if %{with tests}
%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{__python3} tests/parse_ifconfig.py -v
%{__python3} -m unittest discover -v
%endif
%files -n python3-ethtool
%doc README.rst
%license COPYING
%{python3_sitearch}/ethtool.cpython-3*
%{python3_sitearch}/ethtool-0.14-py?.?.egg-info
%{_sbindir}/pethtool
%{_sbindir}/pifconfig
%files help
%doc CHANGES.rst
%doc %{_mandir}/man*
%changelog
* Thu Oct 29 2020 wangye <wangye70@huawei.com> - 0.14-4
- remove python2-ethtool subpackage and delete python2 for build
* Thu Jun 18 2020 jinzhimin <jinzhimin2@huawei.com> - 0.14-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix the issue for python version
* Thu Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.14-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:Modify the file name for x86
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.14-1
- Package Init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yeah_wang/python-ethtool.git
git@gitee.com:yeah_wang/python-ethtool.git
yeah_wang
python-ethtool
python-ethtool
master

搜索帮助