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

template.spec 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. %dir %{_libexecdir}/shellfu-bash-pxpath
  36. %doc %{_docdir}/%{name}/README.md
  37. %{sfincb}/%{sfmodn}.sh
  38. %{_libexecdir}/shellfu-bash-pxpath/pxpath
  39. %changelog
  40. # specfile built with MKit __MKIT_SELF_VERSION__