File mingw32-libbtbb.spec of Package mingw32-libbtbb
#
# spec file for package mingw32-libbtbb
#
# 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/
#
%define realname libbtbb
Name: mingw32-%{realname}
Version: 0.0.0.git1442872272.ae84032
Release: 0
Summary: A Bluetooth baseband decoding library
License: GPL-2.0
Group: System/Libraries
Url: https://github.com/greatscottgadgets/libbtbb
Source: %{realname}-%{version}.tar.xz
Patch0: x.diff
BuildRequires: cmake
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-mman-win32
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildArch: noarch
%description
A library for decoding and processing Bluetooth baseband packets.
It can be used with any raw bitstream receiver, such as Ubertooth or
gr-bluetooth.
%package devel
Summary: Development files for the libbtbb library
Group: Development/Libraries/C and C++
Requires: %{realname} = %{version}
%description devel
A library for decoding and processing Bluetooth baseband packets.
It can be used with any raw bitstream receiver, such as ubertooth or
gr-bluetooth.
This subpackage contains libraries and header files for developing
applications that want to make use of libbtbb.
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p1
%build
%{_mingw32_cmake} \
-DDISABLE_PYTHON=ON \
-DUSE_PCAP=OFF
%{_mingw32_make} VERBOSE=1 %{?_smp_mflags}
%install
%{_mingw32_make} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%{_mingw32_includedir}/btbb.h
%{_mingw32_libdir}/pkgconfig/libbtbb.pc
# FIXME: lib should go to %%libdir
%{_mingw32_bindir}/libbtbb_static.a
%changelog