template.spec 910B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. %global sfincb %{_datadir}/shellfu/include-bash
  2. %global sfmodn __SHELLFU_MODNAME__
  3. %global shellfu_req shellfu >= 0.11.0, shellfu < 0.12
  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: LGPLv2
  10. Source0: %{name}-%{version}.tar.gz
  11. BuildArch: noarch
  12. BuildRequires: %shellfu_req
  13. BuildRequires: perl
  14. BuildRequires: shellfu-bash-pretty
  15. Requires: %shellfu_req
  16. Requires: perl
  17. Requires: shellfu-bash
  18. Requires: shellfu-bash-pretty
  19. %description
  20. __SHELLFU_MODDESC__
  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. SHELLFU_PATH=%{buildroot}/%{_datadir}/shellfu/include-bash
  30. %files
  31. %doc %{_docdir}/%{name}/README.md
  32. %{sfincb}/%{sfmodn}.sh
  33. %changelog
  34. # specfile built with MKit __MKIT_SELF_VERSION__