%undefine __brp_mangle_shebangs %global forgeurl https://github.com/dnglab/dnglab Name: dnglab Version: 0.8.0 Release: 1%{?dist} Summary: Camera RAW to DNG file format converter License: LGPL-2.1-only URL: %{forgeurl} Source0: %{forgeurl}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: anda-srpm-macros BuildRequires: cargo-rpm-macros %description DNGlab is a fast, cross-platform converter for camera RAW images to the Digital Negative (DNG) format, written in Rust. It also supports the reverse operation, extracting the original raw file that is embedded in a DNG. %prep %autosetup -n %{name}-%{version} %build %cargo_prep_online %cargo_build %install install -Dm755 target/rpm/%{name} %{buildroot}%{_bindir}/%{name} install -Dm644 bin/%{name}/manpages/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 for man in bin/%{name}/manpages/%{name}-*.1; do install -Dm644 "$man" %{buildroot}%{_mandir}/man1/"$(basename "$man")" done install -Dm644 bin/%{name}/completions/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} install -Dm644 bin/%{name}/completions/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish install -Dm644 bin/%{name}/completions/_%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name} %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}-*.1* %{_datadir}/bash-completion/completions/%{name} %{_datadir}/fish/vendor_completions.d/%{name}.fish %{_datadir}/zsh/site-functions/_%{name} %changelog * Sun Aug 30 2026 Lachlan Marie - 0.8.0-1 - Initial packaging