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