forked from hkbakke/bash-insulter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash-insulter.spec
60 lines (47 loc) · 1.35 KB
/
bash-insulter.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This requires either bash or zsh to function.
# Set your favorite to 1 to add a dependency for it.
%define bash 1
%define zsh 1
Name: bash-insulter
Summary: Insults you when you type a wrong command
License: MIT
URL: https://github.com/ItchyBugReporter/bash-insulter
Group: Shells/Games
Version: 0.0
Release: 2
BuildArch: noarch
%if %bash
Requires: /bin/bash
%endif
%if %zsh
Requires: /bin/zsh
%endif
# bash-insulter needs at least some sort of shell.
# Although I haven't tested it, it *should* work
# with anything POSIX-compliant. This is here as a
# "just-in-case" measure in case both of the above
# are false.
Requires: /bin/sh
Source0: %{name}-%{version}.tar.xz
%description
bash-insulter insults you whenever you type a command that does not exist
on your system. It will work from bash or zsh.
%prep
%setup -q -n %{name}
%build
# Nothing to compile
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR="$RPM_BUILD_ROOT"
%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/bash.command-not-found-messages
%config(noreplace) %{_sysconfdir}/profile.d/bash-insulter.sh
# This is the actual script, hence why it isn't marked as
# %%config(noreplace)
%{_sysconfdir}/bash.command-not-found
%changelog
* Fri Feb 16 2018 Kristopher Gamrat <[email protected]> - 0.0-2
- Initial RPM