12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. %global sfincb %{_datadir}/shellfu/include-bash
  2. %global sfmodn __SHELLFU_MODNAME__
  3. %global shellfu_req shellfu >= 0.10.4, shellfu < 0.11
  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: python3
  15. BuildRequires: python3-libs
  16. BuildRequires: shellfu-bash-pretty
  17. Requires: %shellfu_req
  18. Requires: perl
  19. Requires: python3
  20. Requires: python3-libs
  21. Requires: shellfu-bash
  22. Requires: shellfu-bash-pretty
  23. %description
  24. UriPecker is Shellfu/bash module of one function that takes a string on
  25. standard output, and looks for things that look like could be URIs.
  26. Besides real URIs, it can look for set of keywords and identifiers such
  27. as 'build 1234', 'issue#45' or 'bz6789' and translate them based on a
  28. simple INI file.
  29. %prep
  30. %setup -q
  31. %build
  32. make %{?_smp_mflags} PREFIX=/usr
  33. %install
  34. %make_install PREFIX=/usr
  35. %check
  36. make test \
  37. SHELLFU_PATH=%{buildroot}/%{_datadir}/shellfu/include-bash
  38. %files
  39. %doc %{_docdir}/%{name}/README.md
  40. %{sfincb}/%{sfmodn}.sh
  41. %changelog
  42. # specfile built with MKit __MKIT_SELF_VERSION__