Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE12
python-ethtool
python-ethtool.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-ethtool.spec of Package python-ethtool
# # spec file for package python-ethtool # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python-ethtool Version: 0.9 Release: 0 Summary: Ethernet settings python bindings License: GPL-2.0 Group: System Environment/Libraries Url: http://git.fedorahosted.org/cgit/python-ethtool.git Source: https://fedorahosted.org/releases/p/y/python-ethtool/python-ethtool-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: asciidoc BuildRequires: libnl3-devel BuildRequires: libxslt-tools BuildRequires: pkgconfig BuildRequires: python-devel %if 0%{?suse_version} %py_requires %endif %description Python bindings for the ethtool kernel interface, that allows querying and changing of ethernet card settings, such as speed, port, auto-negotiation, and PCI locations. %prep %setup -q %build %{__python} setup.py build a2x -d manpage -f manpage man/pethtool.8.asciidoc a2x -d manpage -f manpage man/pifconfig.8.asciidoc %install %{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT \ --prefix=%{_prefix} mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8 cp -f pethtool.py %{buildroot}%{_sbindir}/pethtool cp -f pifconfig.py %{buildroot}%{_sbindir}/pifconfig %{__gzip} -c man/pethtool.8 > %{buildroot}%{_mandir}/man8/pethtool.8.gz %{__gzip} -c man/pifconfig.8 > %{buildroot}%{_mandir}/man8/pifconfig.8.gz %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING %{_sbindir}/pethtool %{_sbindir}/pifconfig %doc %{_mandir}/man8/* %{python_sitearch}/ethtool.so %if "%{py_ver}" >= "2.5" %{python_sitearch}/*.egg-info %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor