-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathabb.spec
52 lines (46 loc) · 1.23 KB
/
abb.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
name: abb
version: 0.5
release: 10
summary: command-line client for abf.openmandriva.org
group: System/Configuration/Packaging
license: GPLv3+
url: git://github.com/sash-kan/%{name}.git
buildarch: noarch
source0: %{name}
source1: %{name}rc
source2: readme
source3: gpl-3.0.txt
source4: spek.skel
source5: abb.json.sh
source6: license.apache2
source7: license.mit
source8: abb.bash_completion
requires: bash
requires: git-core
requires: curl
requires: wget
requires: rpm-build
requires: dnf-plugins-core
suggests: lynx
%description
abb is command-line client for <https://abf.openmandriva.org>
%prep
%setup -qcT
cp %{SOURCE1} .
cp %{SOURCE2} .
%install
install -d %{buildroot}%{_bindir}
install %{SOURCE0} %{buildroot}%{_bindir}/
install -d %{buildroot}%{_datadir}/%{name}
install %{SOURCE4} %{buildroot}%{_datadir}/%{name}/
install %{SOURCE5} %{buildroot}%{_bindir}/
install -d %{buildroot}%{_datadir}/bash_completion
install %{SOURCE8} %{buildroot}%{_datadir}/bash_completion/abb
install -d %{buildroot}%{_sysconfdir}/bash_completion.d
ln -s %{_datadir}/bash_completion/abb %{buildroot}%{_sysconfdir}/bash_completion.d/abb
%files
%doc abbrc readme
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_datadir}/bash_completion
%{_sysconfdir}/bash_completion.d