%define POSTYEAR 2017 %define POSTMONTH 03 %define POSTNUM 2 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: libusb1-devel cmake gcc-c++ python Requires: pyside-tools pyusb numpy %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 -DENABLE_PYTHON=1 %make_build %install %make_install %ldconfig_scriptlets %files %{_libdir}/%{name}.so.* %{_bindir}/btaptap %files devel %{_includedir}/* %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Tue Apr 17 2018 Sergey Avseyev 2017.03.R2-1 - Initial import