commit libperseus-sdr for openSUSE:Factory
Hello community, here is the log from the commit of package libperseus-sdr for openSUSE:Factory checked in at 2019-05-20 10:30:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libperseus-sdr (Old) and /work/SRC/openSUSE:Factory/.libperseus-sdr.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libperseus-sdr" Mon May 20 10:30:24 2019 rev:2 rq:704061 version:0.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libperseus-sdr/libperseus-sdr.changes 2019-01-11 14:04:55.907833694 +0100 +++ /work/SRC/openSUSE:Factory/.libperseus-sdr.new.5148/libperseus-sdr.changes 2019-05-20 10:30:27.117875405 +0200 @@ -1,0 +2,6 @@ +Sat May 11 20:49:51 UTC 2019 - Martin Hauke <mardnh@gmx.de> + +- Update to version 0.8.1 + * No functional changes - Bugfix release only + +------------------------------------------------------------------- Old: ---- libperseus-sdr-0.8.0.tar.gz New: ---- libperseus-sdr-0.8.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libperseus-sdr.spec ++++++ --- /var/tmp/diff_new_pack.Uvy5D2/_old 2019-05-20 10:30:28.069875089 +0200 +++ /var/tmp/diff_new_pack.Uvy5D2/_new 2019-05-20 10:30:28.077875086 +0200 @@ -1,6 +1,7 @@ # # spec file for package libperseus-sdr # +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017, Martin Hauke <mardnh@gmx.de> # # All modifications and additions to the file contributed by third parties @@ -12,7 +13,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/ # @@ -20,10 +21,10 @@ %define libname %{name}%{sover} %define perseussdr_group perseususb Name: libperseus-sdr -Version: 0.8.0 +Version: 0.8.1 Release: 0 Summary: Perseus Software Defined Radio Control Library -License: GPL-3.0 +License: GPL-3.0-only Group: Productivity/Hamradio/Other URL: https://github.com/Microtelecom/libperseus-sdr #Git-Clone: https://github.com/Microtelecom/libperseus-sdr.git ++++++ libperseus-sdr-0.8.0.tar.gz -> libperseus-sdr-0.8.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libperseus-sdr-0.8.0/.gitignore new/libperseus-sdr-0.8.1/.gitignore --- old/libperseus-sdr-0.8.0/.gitignore 2018-04-09 19:58:18.000000000 +0200 +++ new/libperseus-sdr-0.8.1/.gitignore 2019-04-21 11:37:39.000000000 +0200 @@ -20,6 +20,7 @@ config.sub configure *.o +*.a fpga_data.c install-sh *.la diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libperseus-sdr-0.8.0/Makefile.am new/libperseus-sdr-0.8.1/Makefile.am --- old/libperseus-sdr-0.8.0/Makefile.am 2018-04-09 19:58:18.000000000 +0200 +++ new/libperseus-sdr-0.8.1/Makefile.am 2019-04-21 11:37:39.000000000 +0200 @@ -18,14 +18,20 @@ AM_LIBS = -ldl endif +if OS_MACOS +AM_CFLAGS = -Wall -O3 -mssse3 -DGIT_REVISION=\"@VERSION@\" +AM_LDFLAGS = +AM_LIBS = -ldl +endif + if OS_WINDOWS # # flags you want to pass to the C compiler & linker -# -mno-ms-bitfields needed in order to properly align fields in structures +# -mno-ms-bitfields needed in order to properly align fields in structures # http://stackoverflow.com/questions/7789668/why-would-the-size-of-a-packed-st... # -AM_CFLAGS = -Wall -O3 -DGIT_REVISION=\"@VERSION@\" -mno-ms-bitfields -I../libusb-1.0.last/ -DPTW32_STATIC_LIB -D__CLEANUP_C -AM_LDLIBS = -ldl +AM_CFLAGS = -Wall -O3 -DGIT_REVISION=\"@VERSION@\" -mno-ms-bitfields -I../libusb-1.0.last/ -DPTW32_STATIC_LIB -D__CLEANUP_C +AM_LDLIBS = -ldl AM_LDFLAGS = -ldl endif @@ -40,7 +46,7 @@ hdrdir = $(includedir) -#hdr_HEADERS = perseus-sdr.h perseusfx2.h perseus-in.h +#hdr_HEADERS = perseus-sdr.h perseusfx2.h perseus-in.h hdr_HEADERS = perseus-sdr.h # connvenience library @@ -49,11 +55,29 @@ nodist_libperseus_sdr_a_SOURCES = fpga_data.c libperseus_sdr_a_CFLAGS = $(AM_CFLAGS) +if OS_LINUX # # auxiliary data for udev daemon configuration # have to be distributed in tarball _and_ installed # dist_pkgdata_DATA = $(udev_DATA) +# +# UDEV rule file: to activate it do the following command: +# +# sudo groupadd perseususb +# sudo usermod -a -G perseususb `whoami` +# sudo udevadm control --reload-rules +# +udevrule_DATA = $(top_srcdir)/95-perseus.rules +udevruledir = $(bindir) +EXTRA_DIST = $(top_srcdir)/95-perseus.rules README.Windows $(top_srcdir)/build-aux/git-version-gen + +install-data-hook: + -cp $(bindir)/95-perseus.rules /etc/udev/rules.d/ ; groupadd perseususb ; echo $(INST_USER) ;usermod -a -G perseususb $(INST_USER) ; udevadm control --reload-rules + +uninstall-hook: + -rm /etc/udev/rules.d/95-perseus.rules ; groupdel perseususb ; udevadm control --reload-rules +endif # # FPGA images and scripts used for generate source code @@ -77,26 +101,12 @@ # CLEANFILES = fpga_data.c +if OS_LINUX fpga_data.c: $(srcdir)/generate_fpga_code.sh $(dist_pkgdata_DATA) $(dist_check_DATA) $(srcdir)/generate_fpga_code.sh $(srcdir)/ > $@ - - -# -# UDEV rule file: to activate it do the following command: -# -# sudo groupadd perseususb -# sudo usermod -a -G perseususb `whoami` -# sudo udevadm control --reload-rules -# -udevrule_DATA = $(top_srcdir)/95-perseus.rules -udevruledir = $(bindir) -EXTRA_DIST = $(top_srcdir)/95-perseus.rules README.Windows $(top_srcdir)/build-aux/git-version-gen - -install-data-hook: - -cp $(bindir)/95-perseus.rules /etc/udev/rules.d/ ; groupadd perseususb ; echo $(INST_USER) ;usermod -a -G perseususb $(INST_USER) ; udevadm control --reload-rules - -uninstall-hook: - -rm /etc/udev/rules.d/95-perseus.rules ; groupdel perseususb ; udevadm control --reload-rules - +else +fpga_data.c: $(srcdir)/generate_fpga_code.sh $(dist_check_DATA) + $(srcdir)/generate_fpga_code.sh $(srcdir)/ > $@ +endif distdir = $(PACKAGE)-$(VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libperseus-sdr-0.8.0/README.md new/libperseus-sdr-0.8.1/README.md --- old/libperseus-sdr-0.8.0/README.md 2018-04-09 19:58:18.000000000 +0200 +++ new/libperseus-sdr-0.8.1/README.md 2019-04-21 11:37:39.000000000 +0200 @@ -1,4 +1,4 @@ -[![release](http://github-release-version.herokuapp.com/github/Microtelecom/libperseus-sdr/release.svg?style=flat)](https://github.com/Microtelecom/libperseus-sdr/releases/latest) +[![release](https://github-basic-badges.herokuapp.com/release/Microtelecom/libperseus-sdr.svg)](https://github.com/Microtelecom/libperseus-sdr/releases/latest) # Perseus on Linux/Unix: libperseus-sdr diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libperseus-sdr-0.8.0/configure.ac new/libperseus-sdr-0.8.1/configure.ac --- old/libperseus-sdr-0.8.0/configure.ac 2018-04-09 19:58:18.000000000 +0200 +++ new/libperseus-sdr-0.8.1/configure.ac 2019-04-21 11:37:39.000000000 +0200 @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) -AC_INIT([libperseus_sdr], - [m4_esyscmd([./build-aux/git-version-gen .tarball-version])], +AC_INIT([libperseus_sdr], + [m4_esyscmd([./build-aux/git-version-gen .tarball-version])], [andrew@montefusco.com]) AM_INIT_AUTOMAKE @@ -70,12 +70,12 @@ *linux*) AC_MSG_NOTICE([Platform LINUX: $host]) - AC_DEFINE(OS_LINUX, 1, [Linux backend]) - AC_SUBST(OS_LINUX) - + AC_DEFINE(OS_LINUX, 1, [Linux backend]) + AC_SUBST(OS_LINUX) + XXX_PRFX_DEF="/usr/local" - export XXX_PRFX_DEF - + export XXX_PRFX_DEF + # Checks for libraries. AC_CHECK_LIB([pthread], [pthread_create]) @@ -98,6 +98,8 @@ *darwin*) AC_MSG_NOTICE([Platform MAC OSX: $host]) + AC_DEFINE(OS_MACOS, 1, [macOS backend]) + AC_SUBST(OS_MACOS) OSX_LDFLAGS=" -L/opt/local/lib" OSX_CFLAGS="-I/opt/local/include" LDFLAGS="$LDFLAGS $OSX_LDFLAGS" @@ -105,22 +107,39 @@ export LDFLAGS export CFLAGS XXX_PRFX_DEF="/opt/local" - export XXX_PRFX_DEF + export XXX_PRFX_DEF + + # Checks for libraries. + + AC_CHECK_LIB([pthread], [pthread_create]) + AC_CHECK_LIB([usb-1.0], [libusb_init]) + + AC_CHECK_LIB([usb-1.0], [libusb_init], [], + [ + echo "Error! You need to have libusb-1.0 around." + exit -1 + ]) + AC_CHECK_LIB([dl], [dlopen]) + + # check for specific functions + AC_CHECK_FUNCS([libusb_strerror], [],[]) + + AC_MSG_NOTICE([Platform MAC OSX]) ;; *windows*) - AC_DEFINE(OS_WINDOWS, 1, [Windows backend]) - AC_SUBST(OS_WINDOWS) - #LIBS="" - LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias" - - #CFLAGS="$CFLAGS -I../libusb-1.0.last/" + AC_DEFINE(OS_WINDOWS, 1, [Windows backend]) + AC_SUBST(OS_WINDOWS) + #LIBS="" + LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias" + + #CFLAGS="$CFLAGS -I../libusb-1.0.last/" #CXXFLAGS="$CXXFLAGS -I../libusb-1.0.last/" LDFLAGS="$LDFLAGS -L/usr/lib/ -L/mingw32/bin/" - AC_CHECK_HEADERS([libusb-1.0/libusb.h]) - - #### AC_CHECK_LIB([usb-1.0], [libusb_init]) + AC_CHECK_HEADERS([libusb-1.0/libusb.h]) + + #### AC_CHECK_LIB([usb-1.0], [libusb_init]) AC_CHECK_LIB([usb-1.0], [libusb_init], [], [ echo "Error! You need to have libusb-1.0 around." @@ -130,12 +149,12 @@ # check for specific functions AC_CHECK_FUNCS([libusb_strerror], [],[]) - - - AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument]) + + + AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument]) AC_MSG_NOTICE([Platform Windows]) - ;; - + ;; + *-*-*-*) AC_MSG_NOTICE([Platform unknown: $backend]) ;; @@ -164,7 +183,7 @@ AC_MSG_NOTICE([Platform: ix86 64 bit]) LDFLAGS="$LDFLAGS -L/lib64 -L/usr/lib64" export LDFLAGS - AC_MSG_NOTICE([${LDFLAGS}]) + AC_MSG_NOTICE([${LDFLAGS}]) # checks for platform dependent compiler optimizations AX_CHECK_COMPILE_FLAG(-ffast-math, SIMD_FLAGS="$SIMD_FLAGS -ffast-math", []) AX_CHECK_COMPILE_FLAG(-fopenmp, SIMD_FLAGS="$SIMD_FLAGS -fopenmp", []) @@ -211,6 +230,7 @@ # defines macros to be used in Makefile.am # AM_CONDITIONAL(OS_LINUX, test "x$backend" = xlinux) +AM_CONDITIONAL(OS_MACOS, test "x$backend" = xdarwin) AM_CONDITIONAL(OS_WINDOWS, test "x$backend" = xwindows) @@ -271,5 +291,3 @@ ${corw} -----------------------------------------------------" - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libperseus-sdr-0.8.0/generate_fpga_code.sh new/libperseus-sdr-0.8.1/generate_fpga_code.sh --- old/libperseus-sdr-0.8.0/generate_fpga_code.sh 2018-04-09 19:58:18.000000000 +0200 +++ new/libperseus-sdr-0.8.1/generate_fpga_code.sh 2019-04-21 11:37:39.000000000 +0200 @@ -52,7 +52,11 @@ for x in $RBS do # compute file length - file_size=$(stat -c%s "$x") + if [[ "$OSTYPE" == "darwin"* ]]; then + file_size=$(stat -f%k "$x") + else + file_size=$(stat -c%s "$x") + fi ### -> # removes the shortest match from the beginning @@ -123,7 +127,11 @@ for x in $RBS do - file_size=$(stat -c%s "$x") + if [[ "$OSTYPE" == "darwin"* ]]; then + file_size=$(stat -f%k "$x") + else + file_size=$(stat -c%s "$x") + fi file=${x##*/}
participants (1)
-
root