Name: submatch Version: 0.1.0 Release: 1%{?dist} Summary: Pair subtitle files with media files and rename them into place License: MIT OR Apache-2.0 URL: https://copr.fedorainfracloud.org/ Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.gz Source2: org.submatch.SubMatch.desktop Source3: org.submatch.SubMatch.svg Source4: submatch.1 BuildRequires: cargo BuildRequires: rust BuildRequires: pkgconfig(gtk4) BuildRequires: desktop-file-utils Requires: gtk4%{?_isa} Requires: hicolor-icon-theme # No separate debuginfo package for this personal COPR build (also keeps # the build working without the debugedit/dwz tooling installed). %global debug_package %{nil} %description SubMatch is a native GTK4 utility that pairs subtitle files with media files by episode number and renames/moves them into place. Folder Match works on media files in the chosen folder plus a manual subtitle-then-media Rename workflow. No server, browser, or helper scripts: a single binary launched from the desktop. %prep %setup -q -n %{name}-%{version} -a 1 cp %{SOURCE2} %{SOURCE3} %{SOURCE4} . mkdir -p .cargo cat > .cargo/config.toml <<'EOF' [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" EOF %build cargo build --release --offline --frozen %install install -Dm0755 target/release/submatch %{buildroot}%{_bindir}/submatch install -Dm0644 org.submatch.SubMatch.desktop %{buildroot}%{_datadir}/applications/org.submatch.SubMatch.desktop install -Dm0644 org.submatch.SubMatch.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/org.submatch.SubMatch.svg install -Dm0644 submatch.1 %{buildroot}%{_mandir}/man1/submatch.1 %check desktop-file-validate %{buildroot}%{_datadir}/applications/org.submatch.SubMatch.desktop cargo test --offline --frozen %files %license LICENSE-MIT LICENSE-APACHE-2.0 %doc README.md %{_bindir}/submatch %{_datadir}/applications/org.submatch.SubMatch.desktop %{_datadir}/icons/hicolor/scalable/apps/org.submatch.SubMatch.svg %{_mandir}/man1/submatch.1* %changelog * Sun Oct 11 2026 zakariaelbachiri2000@gmail.com - 0.1.0-1.fc44 - Native GTK4 port: episode scan/match/move/rename core plus Adwaita shell