SHA256
1
0
forked from pool/rtl-sdr

Accepting request 1190177 from hardware:sdr

- Add conflict for library package with librtlsdr2 
- Small spec file modernisation

- Update to version (tag) 2.0.2
  * lib: set SOVERSION back to 0
  * r82xx: improve tuner precision and avoid redundant register
    writes for speed
  * fix: round gain input to nearest value
  * fix: set fc0012 gain to low on init
  * use library paths from pkg-config
- version number set in CmakeList.txt is still 2.0.1, workaround added

OBS-URL: https://build.opensuse.org/request/show/1190177
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rtl-sdr?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2024-07-29 19:52:50 +00:00 committed by Git OBS Bridge
commit 4842c6abb9
4 changed files with 29 additions and 14 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e108d3c6a00efcdf55877d1172be538842686c50377043319baffcfdb6b7b9cb
size 135734

3
rtl-sdr-2.0.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d69943eb32df742bc38a00ce6615e41250fd57851174e5ff916ec31e9e9e68e9
size 136512

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
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>
- Update to version (tag) 2.0.2
* lib: set SOVERSION back to 0
* r82xx: improve tuner precision and avoid redundant register
writes for speed
* fix: round gain input to nearest value
* fix: set fc0012 gain to low on init
* use library paths from pkg-config
- version number set in CmakeList.txt is still 2.0.1, workaround added
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 23 11:57:32 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> Fri Feb 23 11:57:32 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
# #
# spec file for package rtl-sdr # spec file for package rtl-sdr
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,16 +16,15 @@
# #
%define sover 2 %define sover 0
%define libname librtlsdr%{sover} %define libname librtlsdr%{sover}
%define rtlsdr_group rtlsdr %define rtlsdr_group rtlsdr
Name: rtl-sdr Name: rtl-sdr
Version: 2.0.1 Version: 2.0.2
Release: 0 Release: 0
Summary: Support programs for RTL2832 Summary: Support programs for RTL2832
License: GPL-2.0-or-later 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 #Git-Clone: https://git.osmocom.org/rtl-sdr
Source: https://github.com/steve-m/librtlsdr/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz 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} %package -n %{libname}
Summary: SDR driver for RTL2832 Summary: SDR driver for RTL2832
Group: System/Libraries
Requires: %{name}-udev Requires: %{name}-udev
Conflicts: librtlsdr2
%description -n %{libname} %description -n %{libname}
Library to run Realtek RTL2832 based DVB dongle as a SDR receiver. Library to run Realtek RTL2832 based DVB dongle as a SDR receiver.
%package udev %package udev
Summary: Udev rules for RTL2832 Summary: Udev rules for RTL2832
Group: Hardware/Other
Requires(pre): shadow Requires(pre): shadow
%description udev %description udev
@ -58,14 +56,13 @@ Udev rules for rtl-sdr driver
%package devel %package devel
Summary: Development files for rtl-sdr Summary: Development files for rtl-sdr
Group: Development/Libraries/Other
Requires: %{libname} = %{version} Requires: %{libname} = %{version}
%description devel %description devel
Library headers for rtl-sdr driver. Library headers for rtl-sdr driver.
%prep %prep
%autosetup -p1 -n librtlsdr-%{version} %autosetup -p1
%build %build
%cmake \ %cmake \
@ -74,14 +71,13 @@ Library headers for rtl-sdr driver.
-DUDEV_RULES_GROUP=%{rtlsdr_group} \ -DUDEV_RULES_GROUP=%{rtlsdr_group} \
-DDETACH_KERNEL_DRIVER=ON \ -DDETACH_KERNEL_DRIVER=ON \
-DENABLE_ZEROCOPY=ON -DENABLE_ZEROCOPY=ON
%make_jobs %cmake_build
%install %install
%cmake_install %cmake_install
rm %{buildroot}%{_libdir}/librtlsdr.a rm %{buildroot}%{_libdir}/librtlsdr.a
%post -n %{libname} -p /sbin/ldconfig %ldconfig_scriptlets -n %{libname}
%postun -n %{libname} -p /sbin/ldconfig
%pre udev %pre udev
getent group %{rtlsdr_group} >/dev/null || groupadd -r %{rtlsdr_group} getent group %{rtlsdr_group} >/dev/null || groupadd -r %{rtlsdr_group}
@ -106,6 +102,7 @@ getent group %{rtlsdr_group} >/dev/null || groupadd -r %{rtlsdr_group}
%files -n %{libname} %files -n %{libname}
%{_libdir}/librtlsdr.so.%{sover}* %{_libdir}/librtlsdr.so.%{sover}*
%{_libdir}/librtlsdr.so.2*
%files udev %files udev
%{_udevrulesdir}/rtl-sdr.rules %{_udevrulesdir}/rtl-sdr.rules