template.spec 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. %global sfincb %{_datadir}/shellfu/include-bash
  2. %global sfmodn __SHELLFU_MODNAME__
  3. %global shellfu_req shellfu >= 0.10.4, shellfu < 0.11
  4. %if 0%{?rhel} && 0%{?rhel} <= 7
  5. %global py_req python
  6. %global pylibs_req python-libs
  7. %else
  8. %global py_req python3
  9. %global pylibs_req python3-libs
  10. %endif
  11. Name: __MKIT_PROJ_PKGNAME__
  12. Version: __MKIT_PROJ_VERSION__
  13. Release: 1%{?dist}
  14. Summary: __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
  15. URL: __MKIT_PROJ_VCS_BROWSER__
  16. License: LGPLv2
  17. Source0: %{name}-%{version}.tar.gz
  18. BuildArch: noarch
  19. BuildRequires: %shellfu_req
  20. BuildRequires: perl
  21. BuildRequires: %py_req
  22. BuildRequires: %pylibs_req
  23. BuildRequires: shellfu-bash-pretty
  24. Requires: %shellfu_req
  25. Requires: perl
  26. Requires: %py_req
  27. Requires: %pylibs_req
  28. Requires: shellfu-bash
  29. Requires: shellfu-bash-pretty
  30. %description
  31. __SHELLFU_MODDESC__
  32. %prep
  33. %setup -q
  34. %build
  35. make %{?_smp_mflags} PREFIX=/usr
  36. %install
  37. %make_install PREFIX=/usr
  38. %check
  39. make test \
  40. SHELLFU_PATH=%{buildroot}/%{_datadir}/shellfu/include-bash
  41. %files
  42. %doc %{_docdir}/%{name}/README.md
  43. %{sfincb}/%{sfmodn}.sh
  44. %changelog
  45. # specfile built with MKit __MKIT_SELF_VERSION__