-
Notifications
You must be signed in to change notification settings - Fork 0
/
cp_autocomplete.spec
37 lines (29 loc) · 1.11 KB
/
cp_autocomplete.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
Summary: Provide bash autocompletion for cpapi2 uapi and whmapi1
Name: %(echo ${NAME})
Version: %(echo ${VERSION})
Release: %(echo ${BUILD})
License: MIT
Group: Applications/System
BuildRoot: %{_topdir}/%{name}-%{version}-%{release}-build
BuildArch: %(echo ${ARCH})
Requires: coreutils, bash, bash-completion
%description
Provides a simple utility to gett basic information about a domain on a cPanel server.
%prep
%build
# steps to build unattended
%install
mkdir -p %{buildroot}/%{_sysconfdir}/bash_completion.d
install -m 0400 %{_sourcedir}/%{name}/_whmapi1.sh %{buildroot}/%{_sysconfdir}/bash_completion.d/_whmapi1.sh
install -m 0444 %{_sourcedir}/%{name}/_cpapi2.sh %{buildroot}/%{_sysconfdir}/bash_completion.d/_cpapi2.sh
install -m 0444 %{_sourcedir}/%{name}/_uapi.sh %{buildroot}/%{_sysconfdir}/bash_completion.d/_uapi.sh
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
/%{_sysconfdir}/bash_completion.d/_whmapi1.sh
/%{_sysconfdir}/bash_completion.d/_cpapi2.sh
/%{_sysconfdir}/bash_completion.d/_uapi.sh
%changelog
* Tue Sep 11 2018 Mark Cunningham <[email protected]>
- Made initial RPM Specfile.