From 88debfbfca5e90c2498f8b105d891074400fe7012d81b0ad99fd8db02c081b6c Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 28 Aug 2018 08:08:30 +0000 Subject: [PATCH] - Use more of cmake macros - Disable developer output from cmake OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/rtl-sdr?expand=0&rev=19 --- rtl-sdr.changes | 6 ++++++ rtl-sdr.spec | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/rtl-sdr.changes b/rtl-sdr.changes index 95d82e1..1f35c57 100644 --- a/rtl-sdr.changes +++ b/rtl-sdr.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 28 08:07:53 UTC 2018 - mpluskal@suse.com + +- Use more of cmake macros +- Disable developer output from cmake + ------------------------------------------------------------------- Mon Aug 27 21:14:27 UTC 2018 - mardnh@gmx.de diff --git a/rtl-sdr.spec b/rtl-sdr.spec index 005a324..c80ec1c 100644 --- a/rtl-sdr.spec +++ b/rtl-sdr.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,7 +25,7 @@ Release: 0 Summary: Support programs for RTL2832 License: GPL-2.0-or-later Group: Productivity/Hamradio/Other -Url: http://sdr.osmocom.org/trac/wiki/rtl-sdr +URL: http://sdr.osmocom.org/trac/wiki/rtl-sdr #Git-Clone: https://git.osmocom.org/rtl-sdr Source: https://github.com/steve-m/librtlsdr/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: 0001-Better-udev-handling.patch @@ -71,8 +71,9 @@ Library headers for rtl-sdr driver. -DINSTALL_UDEV_RULES=ON \ -DUDEV_RULES_PATH=%{_udevrulesdir} \ -DUDEV_RULES_GROUP=%{rtlsdr_group} \ - -DDETACH_KERNEL_DRIVER=ON -make %{?_smp_mflags} + -DDETACH_KERNEL_DRIVER=ON \ + -Wno-dev +%make_jobs %install %cmake_install @@ -80,6 +81,7 @@ rm %{buildroot}%{_libdir}/librtlsdr.a %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig + %pre udev getent group %{rtlsdr_group} >/dev/null || groupadd -r %{rtlsdr_group} @@ -90,7 +92,8 @@ getent group %{rtlsdr_group} >/dev/null || groupadd -r %{rtlsdr_group} %udev_rules_update %files -%doc AUTHORS COPYING README +%license COPYING +%doc AUTHORS README %{_bindir}/rtl_adsb %{_bindir}/rtl_eeprom %{_bindir}/rtl_fm