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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. _PXPATH__BIN=%{buildroot}/%{_libexecdir}/shellfu-bash-pxpath/pxpath
  34. %files
  35. %doc %{_docdir}/%{name}/README.md
  36. %{sfincb}/%{sfmodn}.sh
  37. %{_libexecdir}/shellfu-bash-pxpath/pxpath
  38. %changelog
  39. # specfile built with MKit __MKIT_SELF_VERSION__