diff --git a/acarsdec-fix-makefile.diff b/acarsdec-fix-makefile.diff new file mode 100644 index 0000000..3f91f1a --- /dev/null +++ b/acarsdec-fix-makefile.diff @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index b69c499..cddd0bd 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,6 @@ + # See README for compiler options +-CFLAGS= -Ofast -pthread -D WITH_RTL -D WITH_ALSA -D WITH_SNDFILE +-LDLIBS= -lm -pthread -lrtlsdr -lasound -lsndfile ++CFLAGS += -Ofast -pthread -D WITH_RTL -D WITH_ALSA -D WITH_SNDFILE ++LDLIBS = -lm -pthread -lasound -lsndfile `pkg-config --libs librtlsdr` + + # Airspy conf + # CFLAGS= -Ofast -pthread -D WITH_AIR -I. `pkg-config --cflags libairspy` diff --git a/acarsdec.changes b/acarsdec.changes new file mode 100644 index 0000000..6a6af6d --- /dev/null +++ b/acarsdec.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jun 26 18:43:13 UTC 2017 - mardnh@gmx.de + +- Initial package, version 3.4 diff --git a/acarsdec.spec b/acarsdec.spec new file mode 100644 index 0000000..27f1144 --- /dev/null +++ b/acarsdec.spec @@ -0,0 +1,58 @@ +# +# spec file for package acarsdec +# +# Copyright (c) 2017, Martin Hauke +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ +# + + +Name: acarsdec +Version: 3.4 +Release: 0 +Summary: ACARS SDR decoder +License: GPL-2.0+ +Group: Productivity/Hamradio/Other +Url: https://github.com/TLeconte/acarsdec +#Git-Clone: https://github.com/TLeconte/acarsdec.git +Source: https://github.com/TLeconte/%{name}/archive/%{name}-%{version}.tar.gz +Patch0: acarsdec-fix-makefile.diff +#BuildRequires: pkgconfig(libairspy) +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(librtlsdr) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(sndfile) +BuildRequires: pkgconfig(sqlite3) + +%description +A multi-channels acars decoder with built-in rtl_sdr front end. +It comes with a database backend : acarsserv to store receved acars messages. + +%prep +%setup -q -n %{name}-%{name}-%{version} +%patch0 -p1 + +%build +export CFLAGS='%{optflags}' +make acarsdec acarsserv %{?_smp_mflags} + +%install +install -Dpm 0755 acarsdec %{buildroot}/%{_bindir}/acarsdec +install -Dpm 0755 acarsserv %{buildroot}/%{_bindir}/acarsserv + +%files +%defattr(-,root,root) +%doc README.md docs/index.md +%{_bindir}/acarsdec +%{_bindir}/acarsserv + +%changelog