forked from pool/python-ethtool
Accepting request 363725 from home:olh:branches:devel:languages:python
- add python-ethtool.patch to fix build OBS-URL: https://build.opensuse.org/request/show/363725 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ethtool?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 1 17:01:13 UTC 2016 - olaf@aepfle.de
|
||||
|
||||
- add python-ethtool.patch to fix build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 29 15:28:30 UTC 2014 - p.drouand@gmail.com
|
||||
|
||||
|
||||
17
python-ethtool.patch
Normal file
17
python-ethtool.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
python-ethtool/ethtool.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
Index: python-ethtool-0.11/python-ethtool/ethtool.c
|
||||
===================================================================
|
||||
--- python-ethtool-0.11.orig/python-ethtool/ethtool.c
|
||||
+++ python-ethtool-0.11/python-ethtool/ethtool.c
|
||||
@@ -26,6 +26,8 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <ifaddrs.h>
|
||||
+/* This should have been net/if.h, but libnl3 got it wrong */
|
||||
+#include <linux/if.h>
|
||||
#include <netlink/route/addr.h>
|
||||
|
||||
#include "etherinfo_struct.h"
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ethtool
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,18 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
Name: python-ethtool
|
||||
Version: 0.11
|
||||
Release: 0
|
||||
License: GPL-2.0
|
||||
Summary: Ethernet settings python bindings
|
||||
URL: https://fedorahosted.org/python-ethtool/
|
||||
Group: Development/Languages/Python
|
||||
Source: https://fedorahosted.org/releases/p/y/python-ethtool/%{name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libnl3-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: python-devel
|
||||
Name: python-ethtool
|
||||
Version: 0.11
|
||||
Release: 0
|
||||
Summary: Ethernet settings python bindings
|
||||
License: GPL-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://fedorahosted.org/python-ethtool/
|
||||
Source: https://fedorahosted.org/releases/p/y/python-ethtool/%{name}-%{version}.tar.bz2
|
||||
Patch0: python-ethtool.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libnl3-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: python-devel
|
||||
|
||||
%description
|
||||
Python bindings for the ethtool kernel interface, that allows querying and
|
||||
@@ -36,6 +37,7 @@ PCI locations.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
|
||||
Reference in New Issue
Block a user