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

template.spec 1.4KB

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