- switched seding common.mak to patching (in current version sed
won't apply anyway)
- TODO about optflags and cflags done (long time ago)
# TODO:
# - PLD it more
# - Find more deps
-# - optflags
-# - cflags
# - sbin/bin - change to bin?
# - package airdrop-ng and airgraph-ng
#
# Source0-md5: ebe9d537f06f4d6956213af09c4476da
URL: http://www.aircrack-ng.org/
Patch0: install.patch
+Patch1: pldflags.patch
BuildRequires: libnl-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
%prep
%setup -q -n %{name}-%{version}-%{subver}
%patch0 -p1
-
-sed -i -e 's#-Werror -O3#$(PLDFLAGS)#g' common.mak
+%patch1 -p1
%build
%{__make} -j1 \
--- /dev/null
+--- aircrack-ng-1.2-rc2/common.mak.orig 2015-11-17 13:23:14.717899992 +0100
++++ aircrack-ng-1.2-rc2/common.mak 2015-11-17 13:24:33.161433664 +0100
+@@ -118,7 +118,7 @@ REVISION = $(shell $(AC_ROOT)/evalrev $(
+ REVFLAGS ?= -D_REVISION=$(REVISION)
+
+ OPTFLAGS = -D_FILE_OFFSET_BITS=64
+-CFLAGS ?= -g -W -Wall -O3
++CFLAGS ?= -g -W -Wall $(PLDFLAGS)
+ CFLAGS += $(OPTFLAGS) $(REVFLAGS) $(COMMON_CFLAGS)
+
+ prefix = /usr/local