From f7e8f0918bfb6835a51abeb9e6c5b62f055e294a9f5a672c085e8a85a0867ecb Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Wed, 2 Mar 2016 09:58:11 +0000 Subject: [PATCH] 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 --- python-ethtool.changes | 5 +++++ python-ethtool.patch | 17 +++++++++++++++++ python-ethtool.spec | 28 +++++++++++++++------------- 3 files changed, 37 insertions(+), 13 deletions(-) create mode 100644 python-ethtool.patch diff --git a/python-ethtool.changes b/python-ethtool.changes index aaf2b1d..6974e7f 100644 --- a/python-ethtool.changes +++ b/python-ethtool.changes @@ -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 diff --git a/python-ethtool.patch b/python-ethtool.patch new file mode 100644 index 0000000..cdbdcae --- /dev/null +++ b/python-ethtool.patch @@ -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 + #include + #include ++/* This should have been net/if.h, but libnl3 got it wrong */ ++#include + #include + + #include "etherinfo_struct.h" diff --git a/python-ethtool.spec b/python-ethtool.spec index 0b06d56..ceed57a 100644 --- a/python-ethtool.spec +++ b/python-ethtool.spec @@ -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}"