%bcond check 1 Name: hyfetch Version: 2.0.5 Release: %autorelease Summary: Neofetch with LGBTQ+ pride flags! License: MIT URL: https://github.com/hykilpikonna/hyfetch Source0: https://github.com/hykilpikonna/hyfetch/archive/%{version}/hyfetch-%{version}.tar.gz # To create the below sources: # * wget https://github.com/hykilpikonna/hyfetch/archive/%%{version}/hyfetch-%%{version}.tar.gz # * cargo vendor > vendor-config-%%{version}.toml # * tar -pczf hyfetch-vendor-%%{version}.tar.gz vendor Source1: hyfetch-vendor-%{version}.tar.gz # * mv hyfetch-vendor-config-%%{version}.toml .. Source2: hyfetch-vendor-config-%{version}.toml BuildRequires: cargo-rpm-macros %global _description %{expand: Neofetch with LGBTQ+ pride flags!.} %description %{_description} %prep %autosetup -n %{name}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install install -pDm755 target/release/hyfetch %{buildroot}%{_bindir}/hyfetch install -pDm644 docs/hyfetch.1 %{buildroot}%{_mandir}/man1/hyfetch.1 install -pDm644 scripts/autocomplete.bash %{buildroot}%{_datadir}/bash-completion/completions/hyfetch install -pDm644 scripts/autocomplete.zsh %{buildroot}%{_datadir}/zsh/site-functions/_hyfetch %if %{with check} %check %cargo_test %endif %files %license LICENSE.dependencies %{_bindir}/hyfetch %{_mandir}/man1/hyfetch.1 %{_datadir}/bash-completion/completions/hyfetch %{_datadir}/zsh/site-functions/_hyfetch %changelog %autochangelog