Poor man's XPath library https://pagure.io/shellfu-bash-pxpath

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. %global sfincb %{_datadir}/shellfu/include-bash
  2. %global sfmodn __SHELLFU_MODNAME__
  3. %global shellfu_req shellfu >= 0.10.7, 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: libxml2-python
  14. BuildRequires: shellfu-bash-pretty
  15. Requires: %shellfu_req
  16. Requires: libxml2-python
  17. Requires: shellfu-bash
  18. Requires: shellfu-bash-pretty
  19. %description
  20. pxpath is Shellfu/Bash wrapper around libxml2-python with intent
  21. to enable you to make simple XPath queries from a shell script,
  22. while retaining compatibility with ancient distributions such as
  23. RHEL-5.
  24. %prep
  25. %setup -q
  26. %build
  27. make %{?_smp_mflags} PREFIX=/usr
  28. %install
  29. %make_install PREFIX=/usr
  30. %check
  31. make test \
  32. SHELLFU_PATH=%{buildroot}/%{_datadir}/shellfu/include-bash
  33. %files
  34. %doc %{_docdir}/%{name}/README.md
  35. %{sfincb}/%{sfmodn}.sh
  36. %{_libexecdir}/shellfu-bash-pxpath//pxpath
  37. %changelog
  38. # specfile built with MKit __MKIT_SELF_VERSION__