Working Saturnin-based meta-command

template.spec 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. BuildRequires: shellfu >= 0.10, shellfu < 0.11
  10. BuildRequires: shellfu-bash-saturnin >= 0.4.8, shellfu-bash-saturnin < 0.5.0
  11. Requires: shellfu >= 0.10, shellfu < 0.11
  12. Requires: shellfu-bash-saturnin >= 0.4.8, shellfu-bash-saturnin < 0.5.0
  13. %description
  14. saturnin is Shellfu library that helps you easily build toolkit from
  15. various scripts that you may have lying around. Instead of having a
  16. herd of untamed undocumented and hard-to-share scripts, with help of
  17. saturnin you can easily create and package a meta-command with a set
  18. of discoverable and maintainable sub-commands.
  19. This package contains a demo meta-command built with saturnin; you can
  20. also re-use the source as template for your new toolkit.
  21. %prep
  22. %setup -q
  23. %build
  24. make %{?_smp_mflags} PREFIX=/usr
  25. %install
  26. %make_install PREFIX=/usr
  27. %check
  28. make test \
  29. PATH="%{buildroot}/%{_bindir}:$PATH" \
  30. SATURNIN_CONF_PATH="%{buildroot}/%{_datadir}/%{name}/ini.d"
  31. %files
  32. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  33. %dir %{_datadir}/%{name}
  34. %dir %{_datadir}/%{name}/ini.d
  35. %dir %{_datadir}/%{name}/ini.d/main
  36. %dir %{_libexecdir}/%{name}
  37. %doc %{_docdir}/%{name}/README.md
  38. %{_bindir}/%{name}
  39. %{_datadir}/%{name}/ini.d/main/echo.ini
  40. %{_libexecdir}/%{name}/%{name}-dump
  41. %{_libexecdir}/%{name}/%{name}-echo
  42. %changelog
  43. # specfile built with MKit __MKIT_SELF_VERSION__