%define POSTYEAR 2017 %define POSTMONTH 03 %define POSTNUM 2 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 Patch0: 0000-fix-python-shebang.patch BuildRequires: libusb1-devel cmake libpcap-devel gcc-c++ bluez-libs-devel libbtbb-devel python3-devel Requires: lib%{name}%{?_isa} = %{version}-%{release} Recommends: %{name}-specan-ui = %{version}-%{release} %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 -n lib%{name} Summary: Shared library for Bluetooth experimentation %description -n lib%{name} 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. This package provides the development files for using the ubertooth library. %package devel Summary: Development files for lib%{name} Requires: lib%{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package specan-ui Summary: Graphical spectrum analyzer for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python3-pyside%{?_isa} %description specan-ui The %{name}-specan-ui is a basic spectrum analysis tool for the Ubertooth. %prep %autosetup -p1 -n %{name}-%{POSTYEAR}-%{POSTMONTH}-R%{POSTNUM} %build sed -i -e 's/GROUP="@UBERTOOTH_GROUP@"/ENV{ID_SOFTWARE_RADIO}="1"/g' host/misc/udev/40-ubertooth.rules.in %cmake host \ -DINSTALL_UDEV_RULES=on \ -DUDEV_RULES_GROUP=plugdev \ -DUDEV_RULES_PATH:PATH=%{_udevrulesdir} %make_build ( cd host/python/specan_ui sed -i "s/version\s*=\s*''/version = '%{version}'/" setup.py %py3_build ) %install %make_install ( cd host/python/specan_ui %py3_install install -Dp -m755 ubertooth-specan-ui %{buildroot}%{_bindir} ) %ldconfig_scriptlets %files %license COPYING TRADEMARK %doc README.md %{_bindir}/%{name}* %exclude %{_bindir}/%{name}-specan-ui %{_mandir}/man1/%{name}*.1* %{_mandir}/man7/%{name}.7* %files -n lib%{name} %license COPYING TRADEMARK %doc README.md %{_libdir}/lib%{name}.so.* %{_udevrulesdir}/40-ubertooth.rules %files devel %{_includedir}/* %{_libdir}/lib%{name}.so %files specan-ui %doc host/python/specan_ui/README %{_bindir}/%{name}-specan-ui %{python3_sitelib}/specan %{python3_sitelib}/specan-%{version}-py?.?.egg-info %changelog * Mon Apr 23 2018 Sergey Avseyev 2017.03.R2-1 - Initial import