# This project uses a strange release numbering system, based on the # year, month, and release number. %define POSTYEAR 2014 %define POSTMONTH 04 %define POSTNUM 1 Name: ubertooth Version: %{POSTYEAR}.%{POSTMONTH}.R%{POSTNUM} Release: 1%{?dist} Summary: A Bluetooth wireless development platform for experimentation License: GPLv2 URL: https://github.com/greatscottgadgets/ubertooth Source0: https://github.com/greatscottgadgets/ubertooth/releases/download/%{POSTYEAR}-%{POSTMONTH}-R%{POSTNUM}/%{name}-%{POSTYEAR}-%{POSTMONTH}-R%{POSTNUM}.tar.xz BuildRequires: libusb1-devel cmake libpcap-devel gcc-c++ bluez-libs-devel Requires: pyside-tools pyusb numpy %description Project Ubertooth is an open source wireless development platform suitable for Bluetooth experimentation. Ubertooth ships with a capable BLE (Bluetooth Smart) sniffer and can sniff some data from Basic Rate (BR) Bluetooth Classic connections. %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 cd host mkdir build cd build %cmake .. make %{?_smp_mflags} %install cd host cd build %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc %{_libdir}/*.so.* %{_bindir}/ubertooth-btle %{_bindir}/ubertooth-debug %{_bindir}/ubertooth-dfu %{_bindir}/ubertooth-dump %{_bindir}/ubertooth-follow %{_bindir}/ubertooth-rx %{_bindir}/ubertooth-scan %{_bindir}/ubertooth-specan-ui %{_bindir}/ubertooth-util %files devel %doc %{_includedir}/* %{_libdir}/*.so %changelog * Thu May 29 2014 Jared Smith 2014.04.R1-1 - Initial import