%define _debugsource_template %{nil} %define debug_package %{nil} Name: rill Version: 0.1.9 Release: 1%{?dist} Summary: Minimalistic BitTorrent client for GNOME License: GPL-3.0-or-later URL: https://github.com/sachesi/rill Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: rust >= 1.85 BuildRequires: gcc BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(xkbcommon) BuildRequires: desktop-file-utils BuildRequires: gettext Requires: hicolor-icon-theme %description Rill is a minimalistic BitTorrent client for the GNOME desktop, built with GTK4 and libadwaita. It supports magnet links and .torrent files, a system tray background mode, and per-torrent download folders. %prep %setup -q -n rill-%{version} %build export CARGO_HOME="$PWD/.cargo-home" export RUSTFLAGS="%{?build_rustflags}" %if 0%{?_cargo_target_dir:1} export CARGO_TARGET_DIR="%{_cargo_target_dir}" %endif cargo build --release %install %if 0%{?_cargo_target_dir:1} install -Dpm 0755 "%{_cargo_target_dir}/release/rill" \ %{buildroot}%{_bindir}/rill %else install -Dpm 0755 target/release/rill \ %{buildroot}%{_bindir}/rill %endif # desktop entry install -Dpm 0644 resources/rill.desktop \ %{buildroot}%{_datadir}/applications/com.github.sachesi.rill.desktop # icons install -Dpm 0644 resources/icons/hicolor/scalable/apps/com.github.sachesi.rill.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/com.github.sachesi.rill.svg install -Dpm 0644 resources/icons/hicolor/symbolic/apps/com.github.sachesi.rill-symbolic.svg \ %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/com.github.sachesi.rill-symbolic.svg # translations: compile each po/.po into the system locale tree for po in po/*.po; do lang=$(basename "$po" .po) install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES msgfmt "$po" -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.mo done %find_lang %{name} %check desktop-file-validate %{buildroot}%{_datadir}/applications/com.github.sachesi.rill.desktop test -x %{buildroot}%{_bindir}/rill %files -f %{name}.lang %license LICENSE %doc README.md %{_bindir}/rill %{_datadir}/applications/com.github.sachesi.rill.desktop %{_datadir}/icons/hicolor/scalable/apps/com.github.sachesi.rill.svg %{_datadir}/icons/hicolor/symbolic/apps/com.github.sachesi.rill-symbolic.svg %changelog * Fri Jun 05 2026 sachesi <107267487+sachesi@users.noreply.github.com> - 0.1.9-1 - Update to 0.1.9. * Tue Jun 02 2026 sachesi <107267487+sachesi@users.noreply.github.com> - 0.1.8-1 - Update to 0.1.8. - Package Ukrainian (uk) translation. * Mon Jun 01 2026 sachesi <107267487+sachesi@users.noreply.github.com> - 0.1.4-1 - Update to 0.1.4. * Sun May 31 2026 sachesi <107267487+sachesi@users.noreply.github.com> - 0.1.3-1 - Update to 0.1.3. * Sun May 31 2026 sachesi <107267487+sachesi@users.noreply.github.com> - 0.1.2-1 - Update to 0.1.2. * Sat May 30 2026 sachesi - 0.1.1 - Initial COPR package for rill - Sanitize magnet dn to prevent metainfo write ENOENT