123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. %global sfincb %{_datadir}/shellfu/include-bash
  2. %global shellfu_req shellfu >= 0.10.9, shellfu < 0.11
  3. %global saturnin_req shellfu-bash-saturnin >= 0.4.12, shellfu-bash-saturnin < 0.5
  4. %if 0%{?rhel} && 0%{?rhel} <= 7
  5. %global jinja_req python-jinja2
  6. %else
  7. %global jinja_req python2-jinja2
  8. %endif
  9. Name: __MKIT_PROJ_PKGNAME__
  10. Version: __MKIT_PROJ_VERSION__
  11. Release: 1%{?dist}
  12. Summary: __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
  13. URL: __MKIT_PROJ_VCS_BROWSER__
  14. License: LGPLv2
  15. Source0: %{name}-%{version}.tar.gz
  16. BuildArch: noarch
  17. Requires: jattool-minimal == %{version}
  18. Requires: jattool-report == %{version}
  19. Requires: jattool-tdk == %{version}
  20. %description
  21. JAT is a testing framework for Shell-based test suites.
  22. This package is intended for test development workstations and requires
  23. all other sub-packages.
  24. %package minimal
  25. Requires: %shellfu_req
  26. Requires: %saturnin_req
  27. Requires: shellfu-bash
  28. Requires: shellfu-bash-jat >= 0.0.2
  29. Requires: shellfu-bash-jat < 0.0.3
  30. Requires: shellfu-bash-pretty
  31. Summary: JAT harness and test discovery
  32. %description minimal
  33. JAT is a testing framework for Shell-based test suites.
  34. This sub-package contains minimal set of tools, just for test discovery and
  35. running.
  36. %package report
  37. Requires: %jinja_req
  38. Requires: jattool-minimal == %{version}
  39. Requires: PyYAML
  40. Summary: JAT result post-processing
  41. %description report
  42. JAT is a testing framework for Shell-based test suites.
  43. This sub-package contains tools for result parsing and post-processing.
  44. %package tdk
  45. Requires: git
  46. Summary: JAT test development kit
  47. %description tdk
  48. JAT is a testing framework for Shell-based test suites.
  49. This sub-package contains files and tools to help with test
  50. development.
  51. %prep
  52. %setup -q
  53. %build
  54. make %{?_smp_mflags} PREFIX=/usr
  55. %install
  56. %make_install PREFIX=/usr
  57. %files
  58. %dir %{_docdir}/%{name}
  59. %doc %{_docdir}/%{name}/README.md
  60. %files minimal
  61. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  62. %dir %{_datadir}/%{name}
  63. %dir %{_datadir}/%{name}/ini.d
  64. %dir %{_datadir}/%{name}/ini.d/main
  65. %dir %{_libexecdir}/%{name}
  66. %{_bindir}/%{name}
  67. %{_datadir}/%{name}/help
  68. %{_datadir}/%{name}/ini.d/main/jattool.ini
  69. %{_libexecdir}/%{name}/%{name}-qrun
  70. %{_libexecdir}/%{name}/%{name}-runtest
  71. %{_libexecdir}/%{name}/%{name}-sessid
  72. %{_libexecdir}/%{name}/%{name}-sfind
  73. %{_libexecdir}/%{name}/%{name}-tfind
  74. %files report
  75. %{_datadir}/jattool/jinja2/html.j2
  76. %{_datadir}/jattool/jinja2/jat2rl.j2
  77. %{_datadir}/jattool/python/jat.py*
  78. %{_libexecdir}/%{name}/%{name}-export
  79. %files tdk
  80. %dir %{_datadir}/%{name}/tdk/skel
  81. %dir %{_datadir}/%{name}/tdk/skel/packaging
  82. %dir %{_datadir}/%{name}/tdk/skel/packaging/debian
  83. %dir %{_datadir}/%{name}/tdk/skel/packaging/debian/source
  84. %dir %{_datadir}/%{name}/tdk/utils/mkit
  85. %dir %{_datadir}/%{name}/tdk/utils/mkit/include
  86. %{_datadir}/%{name}/tdk/skel/Makefile
  87. %{_datadir}/%{name}/tdk/skel/mkit.ini
  88. %{_datadir}/%{name}/tdk/skel/packaging/debian/changelog
  89. %{_datadir}/%{name}/tdk/skel/packaging/debian/compat
  90. %{_datadir}/%{name}/tdk/skel/packaging/debian/control
  91. %{_datadir}/%{name}/tdk/skel/packaging/debian/copyright
  92. %{_datadir}/%{name}/tdk/skel/packaging/debian/install
  93. %{_datadir}/%{name}/tdk/skel/packaging/debian/rules
  94. %{_datadir}/%{name}/tdk/skel/packaging/debian/source/format
  95. %{_datadir}/%{name}/tdk/skel/packaging/template.spec
  96. %{_datadir}/%{name}/tdk/utils/mkit/include/build.sh
  97. %{_datadir}/%{name}/tdk/utils/mkit/include/deploy.sh
  98. %{_datadir}/%{name}/tdk/utils/mkit/include/facts.sh
  99. %{_datadir}/%{name}/tdk/utils/mkit/include/ini.sh
  100. %{_datadir}/%{name}/tdk/utils/mkit/include/mkit.sh
  101. %{_datadir}/%{name}/tdk/utils/mkit/include/release.sh
  102. %{_datadir}/%{name}/tdk/utils/mkit/include/vars.sh
  103. %{_datadir}/%{name}/tdk/utils/mkit/make
  104. %{_datadir}/%{name}/tdk/utils/mkit/mkit.mk
  105. %{_datadir}/%{name}/tdk/utils/mkit/stub
  106. %changelog
  107. # specfile built with MKit __MKIT_SELF_VERSION__