Working Saturnin-based meta-command

template.spec 1.6KB

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