|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+%define sfincb %{_datadir}/shellfu/include-bash
|
|
1
|
2
|
%define shellfu_req shellfu >= 0.10.4, shellfu < 0.11
|
|
2
|
3
|
%define saturnin_req shellfu-bash-saturnin >= 0.4.10, shellfu-bash-saturnin < 0.5
|
|
3
|
4
|
|
|
|
@@ -14,6 +15,7 @@ BuildRequires: %shellfu_req
|
|
14
|
15
|
|
|
15
|
16
|
Requires: %shellfu_req
|
|
16
|
17
|
Requires: %saturnin_req
|
|
|
18
|
+Requires: shellfu-bash-saturnin_demo
|
|
17
|
19
|
%description
|
|
18
|
20
|
saturnin is Shellfu library that helps you easily build toolkit from
|
|
19
|
21
|
various scripts that you may have lying around. Instead of having a
|
|
|
@@ -24,6 +26,14 @@ of discoverable and maintainable sub-commands.
|
|
24
|
26
|
This package contains a demo meta-command built with saturnin; you can
|
|
25
|
27
|
also re-use the source as template for your new toolkit.
|
|
26
|
28
|
|
|
|
29
|
+%package -n shellfu-bash-saturnin_demo
|
|
|
30
|
+Summary: Shellfu/Bash modules for saturnin-demo
|
|
|
31
|
+Requires: %saturnin_req
|
|
|
32
|
+Requires: shellfu-bash
|
|
|
33
|
+Requires: shellfu-bash-pretty
|
|
|
34
|
+%description -n shellfu-bash-saturnin_demo
|
|
|
35
|
+This sub-package contains Shellfu/Bash modules used by *saturnin-demo*.
|
|
|
36
|
+
|
|
27
|
37
|
%prep
|
|
28
|
38
|
%setup -q
|
|
29
|
39
|
|
|
|
@@ -35,7 +45,8 @@ make %{?_smp_mflags} PREFIX=/usr
|
|
35
|
45
|
|
|
36
|
46
|
%check
|
|
37
|
47
|
make test \
|
|
38
|
|
- PATH="%{buildroot}/%{_bindir}:$PATH"
|
|
|
48
|
+ PATH="%{buildroot}/%{_bindir}:$PATH" \
|
|
|
49
|
+ SHELLFU_PATH="%{buildroot}/%{sfincb}"
|
|
39
|
50
|
|
|
40
|
51
|
%files
|
|
41
|
52
|
%config %{_sysconfdir}/bash_completion.d/%{name}.bash
|
|
|
@@ -49,7 +60,10 @@ make test \
|
|
49
|
60
|
%{_datadir}/%{name}/ini.d/main/echo.ini
|
|
50
|
61
|
%{_libexecdir}/%{name}/%{name}-dump
|
|
51
|
62
|
%{_libexecdir}/%{name}/%{name}-echo
|
|
|
63
|
+%{_libexecdir}/%{name}/%{name}-greet
|
|
52
|
64
|
|
|
|
65
|
+%files -n shellfu-bash-saturnin_demo
|
|
|
66
|
+%{sfincb}/saturnin_demo_greet.sh
|
|
53
|
67
|
|
|
54
|
68
|
%changelog
|
|
55
|
69
|
|