%global debug_package %{nil} Name: sd Version: 1.0.0 Release: 1%{?dist} Summary: Intuitive find & replace CLI (sed alternative) License: MIT URL: https://github.com/chmln/sd Source: %{url}/releases/download/v%{version}/%{name}-v%{version}-x86_64-unknown-linux-gnu.tar.gz %description sd (search & displace) is an intuitive find & replace CLI. * Painless regular expressions. sd uses regex syntax that you already know from JavaScript and Python. Forget about dealing with quirks of sed or awk - get productive immediately. * String-literal mode. Non-regex find & replace. No more backslashes or remembering which characters are special and need to be escaped. * Easy to read, easy to write. Find & replace expressions are split up, which makes them easy to read and write. No more messing with unclosed and escaped slashes. * Smart, common-sense defaults. Defaults follow common sense and are tailored for typical daily use. %prep %autosetup -n %{name}-v%{version}-x86_64-unknown-linux-gnu %build # Compress the manpage gzip %{name}.1 %install install -p -D %{name} %{buildroot}%{_bindir}/%{name} # Shell completions install -pvD -m 0644 completions/%{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -pvD -m 0644 completions/_%{name} %{buildroot}%{zsh_completions_dir}/_%{name} install -pvD -m 0644 completions/%{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish # Man page install -pvD -m 0644 %{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz %files %{_bindir}/%{name} %{bash_completions_dir}/%{name} %{zsh_completions_dir}/_%{name} %{fish_completions_dir}/%{name}.fish %{_mandir}/man1/%{name}.1.gz