Hello community, here is the log from the commit of package libxtrxll for openSUSE:Factory checked in at 2019-01-11 14:03:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libxtrxll (Old) and /work/SRC/openSUSE:Factory/.libxtrxll.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libxtrxll" Fri Jan 11 14:03:42 2019 rev:2 rq:662188 version:0.0.0+git.20181227 Changes: -------- --- /work/SRC/openSUSE:Factory/libxtrxll/libxtrxll.changes 2018-01-10 23:33:52.099682498 +0100 +++ /work/SRC/openSUSE:Factory/.libxtrxll.new.28833/libxtrxll.changes 2019-01-11 14:04:24.843864956 +0100 @@ -1,0 +2,31 @@ +Mon Dec 31 08:07:27 UTC 2018 - Martin Pluskal <[email protected]> + +- Add provides/obsoletes for renamed package with udev rules + +------------------------------------------------------------------- +Thu Dec 27 09:43:16 UTC 2018 - [email protected] + +- Update to version 0.0.0+git.20181227: + * dynamic RX buffer, GPIO & sync + * pcie_linux: fix i2c operations + * pmic: fix initialization sequence + * test_xtrxflash: autodetect device + * rework logging system + * fix recv hang when RX stream was stopped + * linkin all lowlevel plugins by default + * use first device when *_open() is called with NULL + * properly identify PCIe and USB devices + * more fixes for Windows + * no ENOSTR on Windows + * update to xtrxr4 + * build: Better udev handling + * rework of xtrxll + * new lml phy code adoption + * fix crashing in USB3 mode during data overrun + * proper way of handling overflow in USB +- Add patch: + * libxtrxll-fix-udev-permissions.patch +- Remove patch: + * libxtrxll-cmake-disable-test.patch + +------------------------------------------------------------------- Old: ---- libxtrxll-0.0.0+git.20171213.tar.xz libxtrxll-cmake-disable-test.patch New: ---- libxtrxll-0.0.0+git.20181227.tar.xz libxtrxll-fix-udev-permissions.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libxtrxll.spec ++++++ --- /var/tmp/diff_new_pack.hSjMS9/_old 2019-01-11 14:04:25.987863805 +0100 +++ /var/tmp/diff_new_pack.hSjMS9/_new 2019-01-11 14:04:26.011863780 +0100 @@ -1,7 +1,7 @@ # # spec file for package libxtrxll # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -13,21 +13,23 @@ # 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/ # +%define xtrx_group xtrx %define sover 0 %define libname libxtrxll%{sover} Name: libxtrxll -Version: 0.0.0+git.20171213 +Version: 0.0.0+git.20181227 Release: 0 Summary: XTRX Low-level API library -License: LGPL-2.1 +License: LGPL-2.1-only Group: Development/Libraries/C and C++ URL: http://xtrx.io +#Git-Clone: https://github.com/xtrx-sdr/libxtrxll.git Source: %{name}-%{version}.tar.xz -Patch0: libxtrxll-cmake-disable-test.patch +Patch0: libxtrxll-fix-udev-permissions.patch BuildRequires: cmake BuildRequires: git-core BuildRequires: pkgconfig @@ -40,6 +42,7 @@ %package -n %{libname} Summary: XTRX Low-level API library Group: System/Libraries +Requires: xtrx-usb-udev %description -n %{libname} Low level XTRX hardware abstraction library. @@ -55,14 +58,23 @@ This subpackage contains libraries and header files for developing applications that want to make use of libxtrxll. -%package -n xtrx-udev -Summary: Udev rules for XTRX +%package -n xtrxll-tools +Summary: Low level tools for XTRX +Group: Hardware/Other + +%description -n xtrxll-tools +Low level tools for XTRX SDR devices. + +%package -n xtrx-usb-udev +Summary: Udev rules for XTRX USB devices Group: Hardware/Other Requires(pre): pwdutils +Provides: xtrx-udev = %{version} +Obsoletes: xtrx-udev < %{version} BuildArch: noarch -%description -n xtrx-udev -Udev rules for XTRX devices. +%description -n xtrx-usb-udev +Udev rules for XTRX USB devices. %prep %setup -q @@ -70,36 +82,54 @@ %build %cmake \ - -DCMAKE_SHARED_LINKER_FLAGS="" + -DCMAKE_SHARED_LINKER_FLAGS="" \ +%ifarch %{ix86} x86_64 + -DFORCE_ARCH=x86_64 \ +%endif +%ifarch %{arm} aarch64 + -DFORCE_ARCH=arm \ +%endif + -DENABLE_PCIE=ON \ + -DENABLE_USB3380=ON \ + -DINSTALL_UDEV_RULES=ON \ + -DUDEV_RULES_PATH=%{_udevrulesdir} %make_jobs %install %cmake_install - -# FIXME: udev-rules path -mkdir -p %{buildroot}%{_udevrulesdir} -mv %{buildroot}%{_sysconfdir}/udev/rules.d/50-xtrx-usb3380.rules %{buildroot}%{_udevrulesdir} - +install -d %{buildroot}/%{_bindir} +mv %{buildroot}%{_libdir}/xtrxll/test_xtrxflash %{buildroot}/%{_bindir} +mv %{buildroot}%{_libdir}/xtrxll/test_xtrxll %{buildroot}/%{_bindir} %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig +%pre -n xtrx-usb-udev +getent group %{xtrx_group} >/dev/null || groupadd -r %{xtrx_group} + +%post -n xtrx-usb-udev +%udev_rules_update + +%postun -n xtrx-usb-udev +%udev_rules_update + +%files -n xtrx-usb-udev +%{_udevrulesdir}/50-xtrx.rules %files -n %{libname} -%doc LICENSE README.md +%license LICENSE +%doc README.md %{_libdir}/libxtrxll.so.%{sover}* -# -%{_libdir}/libxtrxll_libusb3380.so.%{sover}* -%{_libdir}/libxtrxll_pcie.so.%{sover}* %files devel %{_includedir}/xtrxll_*.h %{_libdir}/libxtrxll.so %{_libdir}/pkgconfig/libxtrxll.pc -# -%{_libdir}/libxtrxll_libusb3380.so -%{_libdir}/libxtrxll_pcie.so -%files -n xtrx-udev +%files -n xtrxll-tools +%{_bindir}/test_xtrxflash +%{_bindir}/test_xtrxll + +%files -n xtrx-usb-udev %{_udevrulesdir}/50-xtrx-usb3380.rules %changelog ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.hSjMS9/_old 2019-01-11 14:04:26.275863515 +0100 +++ /var/tmp/diff_new_pack.hSjMS9/_new 2019-01-11 14:04:26.275863515 +0100 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/xtrx-sdr/libxtrxll.git</param> - <param name="changesrevision">ef1a32285699c1fcefb1b08370a5f33610675d09</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">dedf0e6c17e52c3881f25f51b5e0867aadc07d65</param></service></servicedata> \ No newline at end of file ++++++ libxtrxll-0.0.0+git.20171213.tar.xz -> libxtrxll-0.0.0+git.20181227.tar.xz ++++++ ++++ 7417 lines of diff (skipped) ++++++ libxtrxll-fix-udev-permissions.patch ++++++ diff --git a/mod_usb3380/udev/50-xtrx-usb3380.rules b/mod_usb3380/udev/50-xtrx-usb3380.rules index cee3eb5..fabb16f 100644 --- a/mod_usb3380/udev/50-xtrx-usb3380.rules +++ b/mod_usb3380/udev/50-xtrx-usb3380.rules @@ -1 +1 @@ -SUBSYSTEMS=="usb", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="3380", GROUP="usb", MODE="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="3380", GROUP="xtrx", MODE="0660"
