[packages/python-iwscan] - fix building with new iwlib - rel 4

baggins baggins at pld-linux.org
Sat Nov 21 17:58:30 CET 2015


commit 46fca6614e282bc983322e8abeaf387e2ffaf0e5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 21 17:58:16 2015 +0100

    - fix building with new iwlib
    - rel 4

 missing-def.patch  | 13 +++++++++++++
 python-iwscan.spec |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/python-iwscan.spec b/python-iwscan.spec
index dbde83f..68d787f 100644
--- a/python-iwscan.spec
+++ b/python-iwscan.spec
@@ -1,6 +1,6 @@
 %define 	module	iwscan
 %define		snap	20090609
-%define		rel		3
+%define		rel	4
 Summary:	A Python extension for iwscan access
 Name:		python-%{module}
 Version:	0.7.0
@@ -9,6 +9,7 @@ License:	GPL v2
 Group:		Development/Languages/Python
 Source0:	http://mirror.leaseweb.com/archlinux/other/python-iwscan/%{name}-%{snap}.tar.gz
 # Source0-md5:	30fbe8ad3b07e67c1c35db2de16077d8
+Patch0:		missing-def.patch
 URL:		http://projects.otaku42.de/browser/python-iwscan
 BuildRequires:	libiw-devel
 BuildRequires:	python-devel
@@ -25,6 +26,7 @@ available in Python for wireless network scanning.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
 export CFLAGS="%{rpmcflags}"
diff --git a/missing-def.patch b/missing-def.patch
new file mode 100644
index 0000000..ceec9c4
--- /dev/null
+++ b/missing-def.patch
@@ -0,0 +1,13 @@
+--- python-iwscan/pyiwscan.c~	2009-06-09 19:10:43.000000000 +0200
++++ python-iwscan/pyiwscan.c	2015-11-21 17:55:45.248606885 +0100
+@@ -803,7 +803,9 @@
+ 	char buff[1024];
+ 	FILE*     fh;
+ 	PyObject* ifnames = PyList_New(0);
+-
++#ifndef PROC_NET_WIRELESS
++#define PROC_NET_WIRELESS "/proc/net/wireless"
++#endif
+ 	fh = fopen(PROC_NET_WIRELESS, "r");
+ 
+ 	if (fh != NULL) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-iwscan.git/commitdiff/46fca6614e282bc983322e8abeaf387e2ffaf0e5



More information about the pld-cvs-commit mailing list