49 lines
1.4 KiB
RPMSpec
49 lines
1.4 KiB
RPMSpec
|
|
Name: wikiman
|
||
|
|
Version: 2.13.2
|
||
|
|
Release: 1%{?dist}
|
||
|
|
Summary: Offline interactive documentation search
|
||
|
|
BuildArch: noarch
|
||
|
|
License: MIT
|
||
|
|
URL: https://github.com/filiparag/%{name}
|
||
|
|
Source0: %{name}-%{version}.tar.gz
|
||
|
|
Source1: %{name}.conf
|
||
|
|
Obsoletes: %{name} <= %{version}-%{release}
|
||
|
|
Provides: %{name} = %{version}-%{release}
|
||
|
|
BuildRequires: make
|
||
|
|
Requires: man fzf ripgrep gawk w3m findutils sed grep parallel
|
||
|
|
AutoReq: no
|
||
|
|
|
||
|
|
%description
|
||
|
|
Offline search engine for manual pages, Arch Wiki, Gentoo Wiki and other documentation.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q
|
||
|
|
|
||
|
|
%install
|
||
|
|
make
|
||
|
|
make prefix=%{buildroot} install
|
||
|
|
install -D %{S:1} %{buildroot}/%{_sysconfdir}/%{name}.conf
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc README.md
|
||
|
|
%license LICENSE
|
||
|
|
/usr/bin/%{name}
|
||
|
|
%{_datarootdir}/%{name}/sources/man.sh
|
||
|
|
%{_datarootdir}/%{name}/sources/arch.sh
|
||
|
|
%{_datarootdir}/%{name}/sources/gentoo.sh
|
||
|
|
%{_datarootdir}/%{name}/sources/fbsd.sh
|
||
|
|
%{_datarootdir}/%{name}/sources/tldr.sh
|
||
|
|
%{_datarootdir}/%{name}/widgets/widget.bash
|
||
|
|
%{_datarootdir}/%{name}/widgets/widget.fish
|
||
|
|
%{_datarootdir}/%{name}/widgets/widget.zsh
|
||
|
|
%{_sysconfdir}/bash_completion.d/%{name}-completion.bash
|
||
|
|
%{_datarootdir}/fish/completions/%{name}.fish
|
||
|
|
%{_datarootdir}/zsh/site-functions/_%{name}
|
||
|
|
%{_datarootdir}/man/man1/%{name}.1.gz
|
||
|
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Sat Jul 20 2024 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||
|
|
- First build.
|
||
|
|
|