SHA256
1
0
forked from pool/rtl-sdr

- Add conflict for library package with librtlsdr2

- Small spec file modernisation

OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/rtl-sdr?expand=0&rev=30
This commit is contained in:
Martin Pluskal 2024-07-29 07:47:10 +00:00 committed by Git OBS Bridge
parent 7473819adf
commit 37016034d5
2 changed files with 10 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 29 07:43:09 UTC 2024 - Martin Pluskal <mpluskal@suse.com>
- Add conflict for library package with librtlsdr2
- Small spec file modernisation
-------------------------------------------------------------------
Sat Jun 15 09:19:48 UTC 2024 - Wojciech Kazubski <wk@ire.pw.edu.pl>

View File

@ -25,7 +25,6 @@ Version: 2.0.2
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
#Git-Clone: https://git.osmocom.org/rtl-sdr
Source: https://github.com/steve-m/librtlsdr/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
@ -42,15 +41,14 @@ it can be used as a SDR receiver.
%package -n %{libname}
Summary: SDR driver for RTL2832
Group: System/Libraries
Requires: %{name}-udev
Conflicts: librtlsdr2
%description -n %{libname}
Library to run Realtek RTL2832 based DVB dongle as a SDR receiver.
%package udev
Summary: Udev rules for RTL2832
Group: Hardware/Other
Requires(pre): shadow
%description udev
@ -58,7 +56,6 @@ Udev rules for rtl-sdr driver
%package devel
Summary: Development files for rtl-sdr
Group: Development/Libraries/Other
Requires: %{libname} = %{version}
%description devel
@ -80,8 +77,7 @@ Library headers for rtl-sdr driver.
%cmake_install
rm %{buildroot}%{_libdir}/librtlsdr.a
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{libname}
%pre udev
getent group %{rtlsdr_group} >/dev/null || groupadd -r %{rtlsdr_group}
@ -105,7 +101,8 @@ getent group %{rtlsdr_group} >/dev/null || groupadd -r %{rtlsdr_group}
%{_bindir}/rtl_test
%files -n %{libname}
%{_libdir}/librtlsdr.so.*
%{_libdir}/librtlsdr.so.%{sover}*
%{_libdir}/librtlsdr.so.2*
%files udev
%{_udevrulesdir}/rtl-sdr.rules