Name: SatDump Version: 2.0.0+29e39fe5f3d3e15dfcef24e8376a0c5d27288892 Release: %autorelease Summary: A generic satellite data processing software. %global commit %(r=%{version}; echo ${r:6}) %global shortcommit %(c=%{commit}; echo ${c:0:7}) License: GPL-3.0-only URL: https://satdump.org/ Source0: https://github.com/SatDump/SatDump/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: cmake >= 3.10 g++ fftw-devel volk-devel libpng-devel jemalloc-devel hdf5-devel libtiff-devel nng-devel curl-devel glfw-devel zenity portaudio-devel libzstd-devel rtl-sdr-devel hackrf-devel airspyone_host-devel libomp-devel ocl-icd intel-opencl hydrasdr-host-devel libsqlite3x-devel dbus-devel libad9361-iio-devel libiio-devel Requires: fftw volk libpng jemalloc libtiff nng curl libsqlite3x Recommends: glfw zenity dbus portaudio libzstd libomp ocl-icd Suggests: hdf5 rtl-sdr hackrf airspyone_host intel-opencl hydrasdr-host libad9361-iio libiio %description A generic satellite data processing software. %prep %autosetup -n %{name}-%{commit} %build %undefine _auto_set_build_flags %__cmake -B "redhat-linux-build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr # /usr/bin/cmake --build "redhat-linux-build" -j8 --verbose %cmake_build %install cd ./redhat-linux-build/ # /usr/bin/make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p" %make_install %check %files %{_bindir}/* %{_libdir}/* %{_datadir}/* %exclude %{_includedir}/* %license %doc %changelog %autochangelog