%global debug_package %{nil} %define _build_id_links none Name: Typist Version: 1.0.0 Release: 1%{?dist} Summary: A modern Gir.Core implementation of Dactylo for learning typing License: GPL URL: https://github.com/belahcensymow/Typist Source0: %{url}/archive/refs/heads/main.tar.gz BuildRequires: dotnet-sdk-9.0 BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: dotnet-runtime-9.0 Requires: gtk4 Requires: libadwaita %description A modern Gir.Core implementation of the legacy software "Dactylo". Typist provides a clean, native GTK interface for practicing touch typing on Linux. %prep %autosetup -n Typist-main %build dotnet publish -c Release -r linux-x64 --no-self-contained -o out %install mkdir -p %{buildroot}%{_libdir}/%{name} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps cp -r out/* %{buildroot}%{_libdir}/%{name}/ cat < %{buildroot}%{_bindir}/%{name} #!/bin/bash cd %{_libdir}/%{name} exec ./%{name} "\$@" EOF chmod +x %{buildroot}%{_bindir}/%{name} cat < %{buildroot}%{_datadir}/applications/%{name}.desktop [Desktop Entry] Name=Typist Comment=Learn touch typing Exec=%{name} Icon=%{name} Terminal=false Type=Application Categories=Education;Utility; EOF %files %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop %changelog * Sat Mar 21 2026 Belahcensymow - 1.0.0-1 - Initial COPR build