diff --git a/0001-Include-net-if.h-for-IFF_-macros.patch b/0001-Include-net-if.h-for-IFF_-macros.patch new file mode 100644 index 0000000..f5cb929 --- /dev/null +++ b/0001-Include-net-if.h-for-IFF_-macros.patch @@ -0,0 +1,24 @@ +From a43f582918d3295b7cdef9e056bf5b1c4eb2ef80 Mon Sep 17 00:00:00 2001 +From: Yaakov Selkowitz +Date: Mon, 22 Jun 2015 05:18:44 -0500 +Subject: [PATCH] Include net/if.h for IFF_* macros + +--- + python-ethtool/ethtool.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c +index 0f9cdbb..5415ec6 100644 +--- a/python-ethtool/ethtool.c ++++ b/python-ethtool/ethtool.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + #include "etherinfo_struct.h" + #include "etherinfo_obj.h" +-- +2.1.0 + diff --git a/python-ethtool.spec b/python-ethtool.spec index 8fee06b..366f3d3 100644 --- a/python-ethtool.spec +++ b/python-ethtool.spec @@ -4,7 +4,7 @@ Summary: Ethernet settings python bindings Name: python-ethtool Version: 0.11 -Release: 4%{?dist} +Release: 5%{?dist} URL: https://fedorahosted.org/python-ethtool/ Source: https://fedorahosted.org/releases/p/y/python-ethtool/python-ethtool-%{version}.tar.bz2 License: GPLv2 @@ -12,6 +12,8 @@ Group: System Environment/Libraries BuildRequires: python-devel libnl3-devel asciidoc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch1: 0001-Include-net-if.h-for-IFF_-macros.patch + %description Python bindings for the ethtool kernel interface, that allows querying and changing of Ethernet card settings, such as speed, port, auto-negotiation, and @@ -19,6 +21,7 @@ PCI locations. %prep %setup -q +%patch1 -p1 %build %{__python} setup.py build @@ -49,6 +52,9 @@ rm -rf %{buildroot} %endif %changelog +* Mon Jun 22 2015 Yaakov Selkowitz - 0.11-5 +- Fix compile on F23 + * Thu Jun 18 2015 Fedora Release Engineering - 0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild