%global debug_package %{nil} Name: dog Version: 0.1.0 Release: 4%{?dist} Summary: A command-line DNS client License: EUPL 1.2 URL: https://github.com/ogham/dog # Temporarily using my patched fork since the sole owner/maintainer is MIA Source0: https://github.com/cyqsimon/dog/archive/v0.1.0-patched.tar.gz BuildRequires: gcc git pkgconfig(openssl) %if 0%{?rhel} >= 9 BuildRequires: rubygem-ronn-ng %else BuildRequires: rubygem-ronn %endif %description Dogs can look up! dog is a command-line DNS client, like dig. It has colourful output, understands normal command-line argument syntax, supports the DNS-over-TLS and DNS-over-HTTPS protocols, and can emit JSON. %prep # TEMP: remove `-n` when personal fork is no longer used %autosetup -n "dog-0.1.0-patched" # use latest stable version from rustup curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y %build source ~/.cargo/env cargo +stable build --release ronn --roff man/%{name}.1.md %check source ~/.cargo/env cargo +stable test --workspace %install # bin install -Dpm 755 target/release/%{name} %{buildroot}%{_bindir}/%{name} # manpage install -Dpm 644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 # completions install -Dpm 644 completions/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} install -Dpm 644 completions/%{name}.fish %{buildroot}%{_datadir}/fish/completions/%{name}.fish install -Dpm 644 completions/%{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name} %files %license LICENCE %doc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_datadir}/bash-completion/completions/%{name} %{_datadir}/fish/completions/%{name}.fish %{_datadir}/zsh/site-functions/_%{name} %changelog * Tue Aug 13 2024 cyqsimon - 0.1.0-4 - Remove provisions for EL7 * Tue Apr 16 2024 cyqsimon - 0.1.0-3 - Remove explicit stripping (strip enabled by default since 1.77.0) * Sat Mar 18 2023 cyqsimon - 0.1.0-2 - Run tests in debug mode - Enable tests for workspace members * Wed Dec 07 2022 cyqsimon - 0.1.0-1 - Release 0.1.0