Working Saturnin-based meta-command

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. %define sfincb %{_datadir}/shellfu/include-bash
  2. %define shellfu_req shellfu >= 0.10.4, shellfu < 0.11
  3. %define saturnin_req shellfu-bash-saturnin >= 0.4.10, shellfu-bash-saturnin < 0.5
  4. Name: __MKIT_PROJ_PKGNAME__
  5. Version: __MKIT_PROJ_VERSION__
  6. Release: 1%{?dist}
  7. Summary: __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
  8. URL: __MKIT_PROJ_VCS_BROWSER__
  9. License: GPLv2
  10. Source0: %{name}-%{version}.tar.gz
  11. BuildArch: noarch
  12. BuildRequires: %saturnin_req
  13. BuildRequires: %shellfu_req
  14. Requires: %shellfu_req
  15. Requires: %saturnin_req
  16. Requires: shellfu-bash-saturnin_demo
  17. %description
  18. __SDEMO_MAINDESC__
  19. __SDEMO_BINDESC__
  20. %package -n shellfu-bash-saturnin_demo
  21. Summary: Shellfu/Bash modules for saturnin-demo
  22. Requires: %saturnin_req
  23. Requires: shellfu-bash
  24. Requires: shellfu-bash-pretty
  25. %description -n shellfu-bash-saturnin_demo
  26. __SDEMO_MODDESC__
  27. %prep
  28. %setup -q
  29. %build
  30. make %{?_smp_mflags} PREFIX=/usr
  31. %install
  32. %make_install PREFIX=/usr
  33. %check
  34. make test \
  35. PATH="%{buildroot}/%{_bindir}:$PATH" \
  36. SHELLFU_PATH="%{buildroot}/%{sfincb}"
  37. %files
  38. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  39. %dir %{_datadir}/%{name}
  40. %dir %{_datadir}/%{name}/ini.d
  41. %dir %{_datadir}/%{name}/ini.d/main
  42. %dir %{_libexecdir}/%{name}
  43. %doc %{_docdir}/%{name}/README.md
  44. %{_bindir}/%{name}
  45. %{_datadir}/%{name}/help
  46. %{_datadir}/%{name}/ini.d/main/echo.ini
  47. %{_libexecdir}/%{name}/%{name}-dump
  48. %{_libexecdir}/%{name}/%{name}-echo
  49. %{_libexecdir}/%{name}/%{name}-greet
  50. %{_libexecdir}/%{name}/%{name}-yell
  51. %files -n shellfu-bash-saturnin_demo
  52. %{sfincb}/saturnin_demo_greet.sh
  53. %changelog
  54. # specfile built with MKit __MKIT_SELF_VERSION__