%global POSTYEAR 2017 %global POSTMONTH 03 %global 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: 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 %{_libdir}/%{name}.so.* %files devel %{_includedir}/* %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Tue Apr 17 2018 Sergey Avseyev 2017.03.R2-1 - Initial import