File satdump.spec of Package satdump

#
# spec file for package satdump
#
# Copyright (c) 2021-2022, Martin Hauke <mardnh@gmx.de>
#
# 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 https://bugs.opensuse.org/
#


Name:           satdump
Version:        1.0.0
Release:        0
Summary:        A generic satellite data processing software
License:        GPL-3.0-or-later
Group:          Productivity/Hamradio/Other
URL:            https://www.satdump.org/
#Git-Clone:     https://github.com/altillimity/SatDump.git
Source:         https://github.com/altillimity/SatDump/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        %{name}-rpmlintrc
Patch0:         use-correct-libdir.patch
BuildRequires:  Mesa-libGL-devel
BuildRequires:  cmake
BuildRequires:  fdupes
%if 0%{?sle_version} >= 150200 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
BuildRequires:  gcc9
BuildRequires:  gcc9-c++
%else
BuildRequires:  gcc-c++
%endif
BuildRequires:  libcorrect-devel
BuildRequires:  libjpeg-devel
BuildRequires:  nng-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(LimeSuite)
BuildRequires:  pkgconfig(fftw3f)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(glfw3)
BuildRequires:  pkgconfig(libairspy)
BuildRequires:  pkgconfig(libairspyhf)
BuildRequires:  pkgconfig(libbladeRF)
BuildRequires:  pkgconfig(libhackrf)
%if 0%{?suse_version} >= 1550
### HACK: libiio dependency broken on 15.3/15.4
BuildRequires:  pkgconfig(libiio)
%endif
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(librtlsdr)
BuildRequires:  pkgconfig(libzstd)
BuildRequires:  pkgconfig(opengl)
BuildRequires:  pkgconfig(volk)
BuildRequires:  pkgconfig(zlib)
%if 0%{?sle_version} >= 150200 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
### HACK: additional dependency 15.3/15.4
BuildRequires:  pkgconfig(glu)
%endif

%description
A generic satellite data processing software.

%prep
%setup -q -n SatDump-%{version}
%patch0 -p1

%build
%if 0%{?sle_version} >= 150200 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
export CC="gcc-9"
export CXX="g++-9"
%endif
%cmake
%make_jobs

%install
%cmake_install
%fdupes %{buildroot}/%{_datadir}/satdump/resources

%files
%license LICENSE
%doc README.md
%{_bindir}/satdump
%{_bindir}/satdump-ui
%{_libdir}/libsatdump_core.so
%{_datadir}/satdump/
%{_datadir}/applications/satdump.desktop
%exclude %{_includedir}/satdump

%changelog
openSUSE Build Service is sponsored by