%global commit d85c226118e85c141a9100f7f81f988c0fd70530 %global forgeurl https://gitlab.com/Teuniz/DSRemote %global udev_rules_name 60-dsremote.rules Name: dsremote Version: 0.37_2012070937 Release: 1%{?dist} %forgemeta -i %global tag %{version} Summary: Rigol DS1000Z remote control and waveform viewer License: GPLv3 Url: %{forgeurl} Source0: %{forgesource} Source1: %{udev_rules_name} BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: make BuildRequires: qt5-qtbase BuildRequires: qt5-qtbase-devel BuildRequires: systemd Requires: hicolor-icon-theme %description Rigol DS1000Z remote control and waveform viewer %prep %forgesetup %build %qmake_qt5 \ PREFIX=%{_prefix} \ BINDIR=%{_bindir} %make_build %install %make_install INSTALL_ROOT=%{buildroot} rm -f %{buildroot}%{_sysconfdir}/udev/rules.d/30-usbtmc.rules # own udev rules that use uacess install -D -p -m 644 %{SOURCE1} %{buildroot}%_udevrulesdir/%{udev_rules_name} %post %udev_rules_update %postun %udev_rules_update %files %license LICENSE %{_bindir}/%{name} %_udevrulesdir/%{udev_rules_name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/r_%{name}.png %{_datadir}/icons/hicolor/*/mimetypes/r_%{name}.png %{_datadir}/icons/r_%{name}.png %{_datadir}/pixmaps/r_%{name}.png %changelog * Wed Jan 20 2021 Pavol Babinčák - 0.37_2012070937-1 - Initial version