File eapmd5pass.spec of Package eapmd5pass

#
# spec file for package eapmd5pass
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           eapmd5pass
Version:        1.4
Release:        0
Summary:        Dictionary attack tool against EAP-MD5
License:        GPL-2.0
Group:          Productivity/Networking/Other
Url:            http://www.willhackforsushi.com/?page_id=67
Source:         http://www.willhackforsushi.com/code/eapmd5pass/1.4/%{name}-%{version}.tgz
Patch0:		obey-cflags.diff
BuildRequires:  libopenssl-devel
BuildRequires:  libpcap-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This utility implements a dictionary attack against the EAP-MD5 protocol.
With an EAP-MD5 authentication capture, you can audit the password for
a given user, or specify the EAP-MD5 authentication parameters on the
command-line to audit any EAP-MD5 exchange.

%prep
%setup -q -n %{name}
%patch0 -p1

%build
export CFLAGS="%{optflags}"
make # %{?_smp_mflags} # parallel build is broken

%install
install -Dpm0755 eapmd5pass %{buildroot}%{_bindir}/eapmd5pass

%files
%defattr(-,root,root)
%doc COPYING README
#%%doc brad.eaptest2.cap brad.eaptest.cap EAPMD5-Challenge-01.cap eapmd5-sample.dump
%{_bindir}/eapmd5pass

%changelog
openSUSE Build Service is sponsored by