%bcond test 1 %global toolchain gcc # application id: desktop file, icons and AppStream component %global appid io.github.qtdmm.qtdmm Name: qtdmm Version: 26.1 # Für RC's -p -e rcX # Sonst -p -e weglassen Release: %autorelease Summary: DMM Readout Software Including a Configurable Recorder License: GPL-3.0-or-later URL: https://www.qtdmm.de BuildSystem: cmake %if %{with test} BuildOption: -DBUILD_TESTING=ON %endif # Übersetzungen als eigene Dateien für %%find_lang BuildOption: -DQTDMM_EMBED_TRANSLATIONS=OFF Source0: build.tar.gz BuildRequires: appdata-tools desktop-file-utils gcc-c++ BuildRequires: cmake(Qt6Bluetooth) cmake(Qt6Charts) cmake(Qt6LinguistTools) cmake(Qt6SerialPort) cmake(Qt6Svg) BuildRequires: cmake(hidapi) BuildRequires: pkgconfig(cups) Suggests: sigrok-cli %description QtDMM is a graphical multimeter reader and logger based on Qt. It reads more than 150 digital multimeters over serial and USB cables, Bluetooth LE and the network. %install %cmake_install %find_lang %{name} --with-qt %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{appid}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml QT_QPA_PLATFORM=offscreen %ctest %files -f %{name}.lang %license LICENSE %doc AUTHORS README.md CHANGELOG %{_bindir}/%{name} %{_datadir}/applications/%{appid}.desktop %{_datadir}/icons/hicolor/*/apps/%{appid}.png %{_datadir}/icons/hicolor/scalable/apps/%{appid}.svg %{_mandir}/man1/%{name}.1* %{_metainfodir}/*.xml %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/translations %changelog %autochangelog