Working Saturnin-based meta-command

template.spec 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Name: __MKIT_PROJ_PKGNAME__
  2. Version: __MKIT_PROJ_VERSION__
  3. Release: 1%{?dist}
  4. Summary: __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
  5. URL: __MKIT_PROJ_VCS_BROWSER__
  6. License: LGPLv2
  7. Source0: %{name}-%{version}.tar.gz
  8. BuildArch: noarch
  9. Requires: shellfu >= 0.10, shellfu < 0.11
  10. Requires: shellfu-bash-saturnin >= 0.4.7, shellfu-bash-saturnin < 0.5.0
  11. %description
  12. saturnin is Shellfu library that helps you easily build toolkit from
  13. various scripts that you may have lying around. Instead of having a
  14. herd of untamed undocumented and hard-to-share scripts, with help of
  15. saturnin you can easily create and package a meta-command with a set
  16. of discoverable and maintainable sub-commands.
  17. This package contains a demo meta-command built with saturnin; you can
  18. also re-use the source as template for your new toolkit.
  19. %prep
  20. %setup -q
  21. %build
  22. make %{?_smp_mflags} PREFIX=/usr
  23. %install
  24. %make_install PREFIX=/usr
  25. %files
  26. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  27. %dir %{_datadir}/%{name}
  28. %dir %{_datadir}/%{name}/ini.d
  29. %dir %{_datadir}/%{name}/ini.d/main
  30. %dir %{_libexecdir}/%{name}
  31. %doc %{_docdir}/%{name}/README.md
  32. %{_bindir}/%{name}
  33. %{_datadir}/%{name}/ini.d/main/echo.ini
  34. %{_libexecdir}/%{name}/%{name}-dump
  35. %{_libexecdir}/%{name}/%{name}-echo
  36. %changelog
  37. # specfile built with MKit __MKIT_SELF_VERSION__