File crackle.spec of Package crackle

#
# spec file for package crackle
#
# Copyright (c) 2015, 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:           crackle
Version:        0.0.0.git1450757887.8c80d5e
Release:        0
Summary:        Crack and decrypt BLE encryption 
License:        BSD-2-Clause
Group:          Productivity/Security
Url:            http://lacklustre.net/projects/crackle/
Source:         %{name}-%{version}.tar.xz
BuildRequires:	libpcap-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
crackle cracks BLE Encryption (AKA Bluetooth Smart).

crackle exploits a flaw in the BLE pairing process that allows an attacker to
guess or very quickly brute force the TK (Temporary Key). With the TK and
other data collected from the pairing process, the STK (Short Term Key) and
later the LTK (Long Term Key) can be collected.

With the STK and LTK, all communications between the master and the slave
can be decrypted.

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}/%{_bindir}
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%doc COPYING AUTHORS README.md
%{_bindir}/crackle

%changelog
openSUSE Build Service is sponsored by