Working Saturnin-based meta-command

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %global sfincb %{_datadir}/shellfu/include-bash
  2. %global shellfu_req shellfu >= 0.10.4, shellfu < 0.11
  3. %global 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. SATURNIN_LIBEXEC="%{buildroot}/%{_libexecdir}/%{name}" \
  37. SHELLFU_PATH="%{buildroot}/%{sfincb}"
  38. %files
  39. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  40. %dir %{_datadir}/%{name}
  41. %dir %{_datadir}/%{name}/ini.d
  42. %dir %{_datadir}/%{name}/ini.d/main
  43. %dir %{_libexecdir}/%{name}
  44. %doc %{_docdir}/%{name}/README.md
  45. %{_bindir}/%{name}
  46. %{_datadir}/%{name}/help
  47. %{_datadir}/%{name}/ini.d/main/echo.ini
  48. %{_libexecdir}/%{name}/%{name}-dump
  49. %{_libexecdir}/%{name}/%{name}-echo
  50. %{_libexecdir}/%{name}/%{name}-greet
  51. %{_libexecdir}/%{name}/%{name}-yell
  52. %files -n shellfu-bash-saturnin_demo
  53. %{sfincb}/saturnin_demo_greet.sh
  54. %changelog
  55. # specfile built with MKit __MKIT_SELF_VERSION__