template.spec 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. %global sfincb %{_datadir}/shellfu/include-bash
  2. %global shellfu_req shellfu >= 0.10.8, 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.1
  29. Requires: shellfu-bash-jat < 0.0.2
  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. Summary: JAT result post-processing
  40. %description report
  41. JAT is a testing framework for Shell-based test suites.
  42. This sub-package contains tools for result parsing and post-processing.
  43. %package tdk
  44. Requires: git
  45. Summary: JAT test development kit
  46. %description tdk
  47. JAT is a testing framework for Shell-based test suites.
  48. This sub-package contains files and tools to help with test
  49. development.
  50. %prep
  51. %setup -q
  52. %build
  53. make %{?_smp_mflags} PREFIX=/usr
  54. %install
  55. %make_install PREFIX=/usr
  56. %files
  57. %dir %{_docdir}/%{name}
  58. %doc %{_docdir}/%{name}/README.md
  59. %files minimal
  60. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  61. %dir %{_datadir}/%{name}
  62. %dir %{_datadir}/%{name}/ini.d
  63. %dir %{_datadir}/%{name}/ini.d/main
  64. %dir %{_libexecdir}/%{name}
  65. %{_bindir}/%{name}
  66. %{_datadir}/%{name}/help
  67. %{_datadir}/%{name}/ini.d/main/jattool.ini
  68. %{_libexecdir}/%{name}/%{name}-qrun
  69. %{_libexecdir}/%{name}/%{name}-runtest
  70. %{_libexecdir}/%{name}/%{name}-sessid
  71. %{_libexecdir}/%{name}/%{name}-sfind
  72. %{_libexecdir}/%{name}/%{name}-tfind
  73. %files report
  74. %{_datadir}/jattool/jinja2/html.j2
  75. %{_datadir}/jattool/python/jat.py*
  76. %{_libexecdir}/%{name}/%{name}-export
  77. %files tdk
  78. %dir %{_datadir}/%{name}/tdk/skel
  79. %dir %{_datadir}/%{name}/tdk/skel/packaging
  80. %dir %{_datadir}/%{name}/tdk/skel/packaging/debian
  81. %dir %{_datadir}/%{name}/tdk/skel/packaging/debian/source
  82. %dir %{_datadir}/%{name}/tdk/utils/mkit
  83. %dir %{_datadir}/%{name}/tdk/utils/mkit/include
  84. %{_datadir}/%{name}/tdk/skel/Makefile
  85. %{_datadir}/%{name}/tdk/skel/mkit.ini
  86. %{_datadir}/%{name}/tdk/skel/packaging/debian/changelog
  87. %{_datadir}/%{name}/tdk/skel/packaging/debian/compat
  88. %{_datadir}/%{name}/tdk/skel/packaging/debian/control
  89. %{_datadir}/%{name}/tdk/skel/packaging/debian/copyright
  90. %{_datadir}/%{name}/tdk/skel/packaging/debian/install
  91. %{_datadir}/%{name}/tdk/skel/packaging/debian/rules
  92. %{_datadir}/%{name}/tdk/skel/packaging/debian/source/format
  93. %{_datadir}/%{name}/tdk/skel/packaging/template.spec
  94. %{_datadir}/%{name}/tdk/utils/mkit/include/build.sh
  95. %{_datadir}/%{name}/tdk/utils/mkit/include/deploy.sh
  96. %{_datadir}/%{name}/tdk/utils/mkit/include/facts.sh
  97. %{_datadir}/%{name}/tdk/utils/mkit/include/ini.sh
  98. %{_datadir}/%{name}/tdk/utils/mkit/include/mkit.sh
  99. %{_datadir}/%{name}/tdk/utils/mkit/include/release.sh
  100. %{_datadir}/%{name}/tdk/utils/mkit/include/vars.sh
  101. %{_datadir}/%{name}/tdk/utils/mkit/make
  102. %{_datadir}/%{name}/tdk/utils/mkit/mkit.mk
  103. %{_datadir}/%{name}/tdk/utils/mkit/stub
  104. %changelog
  105. # specfile built with MKit __MKIT_SELF_VERSION__