template.spec 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. 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. Requires: jattool-minimal == %{version}
  13. Requires: jattool-report == %{version}
  14. Requires: jattool-tdk == %{version}
  15. %description
  16. JAT is a testing framework for Shell-based test suites.
  17. This package is intended for test development workstations and requires
  18. all other sub-packages.
  19. %package minimal
  20. Requires: %shellfu_req
  21. Requires: %saturnin_req
  22. Requires: shellfu-bash
  23. Requires: shellfu-bash-jat >= 0.0.0
  24. Requires: shellfu-bash-jat < 0.0.1
  25. Requires: shellfu-bash-pretty
  26. Summary: JAT harness and test discovery
  27. %description minimal
  28. JAT is a testing framework for Shell-based test suites.
  29. This sub-package contains minimal set of tools, just for test discovery and
  30. running.
  31. %package report
  32. Requires: python2-jinja2
  33. Requires: jattool-minimal == %{version}
  34. Summary: JAT result post-processing
  35. %description report
  36. JAT is a testing framework for Shell-based test suites.
  37. This sub-package contains tools for result parsing and post-processing.
  38. %package tdk
  39. Requires: git
  40. Summary: JAT test development kit
  41. %description tdk
  42. JAT is a testing framework for Shell-based test suites.
  43. This sub-package contains files and tools to help with test
  44. development.
  45. %prep
  46. %setup -q
  47. %build
  48. make %{?_smp_mflags} PREFIX=/usr
  49. %install
  50. %make_install PREFIX=/usr
  51. %files
  52. %dir %{_docdir}/%{name}
  53. %doc %{_docdir}/%{name}/README.md
  54. %files minimal
  55. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  56. %dir %{_datadir}/%{name}
  57. %dir %{_datadir}/%{name}/ini.d
  58. %dir %{_datadir}/%{name}/ini.d/main
  59. %dir %{_libexecdir}/%{name}
  60. %{_bindir}/%{name}
  61. %{_datadir}/%{name}/help
  62. %{_datadir}/%{name}/ini.d/main/jattool.ini
  63. %{_libexecdir}/%{name}/%{name}-qrun
  64. %{_libexecdir}/%{name}/%{name}-runtest
  65. %{_libexecdir}/%{name}/%{name}-sessid
  66. %{_libexecdir}/%{name}/%{name}-sfind
  67. %{_libexecdir}/%{name}/%{name}-tfind
  68. %files report
  69. %{_datadir}/jattool/jinja2/html.j2
  70. %{_datadir}/jattool/python/jat.py*
  71. %{_libexecdir}/%{name}/%{name}-export
  72. %files tdk
  73. %dir %{_datadir}/%{name}/tdk/skel
  74. %dir %{_datadir}/%{name}/tdk/skel/packaging
  75. %dir %{_datadir}/%{name}/tdk/skel/packaging/debian
  76. %dir %{_datadir}/%{name}/tdk/skel/packaging/debian/source
  77. %dir %{_datadir}/%{name}/tdk/utils/mkit
  78. %dir %{_datadir}/%{name}/tdk/utils/mkit/include
  79. %{_datadir}/%{name}/tdk/skel/Makefile
  80. %{_datadir}/%{name}/tdk/skel/mkit.ini
  81. %{_datadir}/%{name}/tdk/skel/packaging/debian/changelog
  82. %{_datadir}/%{name}/tdk/skel/packaging/debian/compat
  83. %{_datadir}/%{name}/tdk/skel/packaging/debian/control
  84. %{_datadir}/%{name}/tdk/skel/packaging/debian/copyright
  85. %{_datadir}/%{name}/tdk/skel/packaging/debian/install
  86. %{_datadir}/%{name}/tdk/skel/packaging/debian/rules
  87. %{_datadir}/%{name}/tdk/skel/packaging/debian/source/format
  88. %{_datadir}/%{name}/tdk/skel/packaging/template.spec
  89. %{_datadir}/%{name}/tdk/utils/mkit/include/build.sh
  90. %{_datadir}/%{name}/tdk/utils/mkit/include/deploy.sh
  91. %{_datadir}/%{name}/tdk/utils/mkit/include/facts.sh
  92. %{_datadir}/%{name}/tdk/utils/mkit/include/ini.sh
  93. %{_datadir}/%{name}/tdk/utils/mkit/include/mkit.sh
  94. %{_datadir}/%{name}/tdk/utils/mkit/include/release.sh
  95. %{_datadir}/%{name}/tdk/utils/mkit/include/vars.sh
  96. %{_datadir}/%{name}/tdk/utils/mkit/make
  97. %{_datadir}/%{name}/tdk/utils/mkit/mkit.mk
  98. %{_datadir}/%{name}/tdk/utils/mkit/stub
  99. %changelog
  100. # specfile built with MKit __MKIT_SELF_VERSION__