%global POSTYEAR 2018
%global POSTMONTH 06
%global POSTNUM 1
Name: libbtbb
Version: %{POSTYEAR}.%{POSTMONTH}.R%{POSTNUM}
Release: 1%{?dist}
Summary: A Bluetooth baseband decoding library
License: GPLv2
URL: https://github.com/greatscottgadgets/libbtbb
Source0: https://github.com/greatscottgadgets/libbtbb/archive/%{POSTYEAR}-%{POSTMONTH}-R%{POSTNUM}.tar.gz
BuildRequires: cmake gcc-c++
%description
This is the Bluetooth baseband decoding library, forked from the GR-Bluetooth
project. It can be used to extract Bluetooth packet and piconet information
from Ubertooth devices as well as GR-Bluetooth/USRP.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{name}-%{POSTYEAR}-%{POSTMONTH}-R%{POSTNUM}
%build
%cmake
%make_build
%install
%make_install
%ldconfig_scriptlets
%files
%license LICENSE
%{_libdir}/%{name}.so.*
%files devel
%{_includedir}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Wed Jun 27 2018 Sergey Avseyev <sergey.avseyev@gmail.com> 2018.06.R1-1
- Update to 2018-06-R1
* Tue Apr 17 2018 Sergey Avseyev <sergey.avseyev@gmail.com> 2017.03.R2-1
- Initial import