shell dot on steroids https://pagure.io/shellfu

template.spec 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. Name: __MKIT_PROJ_PKGNAME__
  2. Version: __MKIT_PROJ_VERSION__
  3. Release: 1%{?dist}
  4. Summary: __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
  5. License: LGPLv2
  6. Source0: %{name}-%{version}.tar.gz
  7. BuildArch: noarch
  8. BuildRequires: coreutils git
  9. Requires: bash
  10. %description
  11. Shellfu is an attempt to add modularity to your shell scripts.
  12. With Shellfu you can develop your shell modules separately from your
  13. scripts, and test, use, explore or study them without need to be aware
  14. of details such as where the actual files are placed.
  15. Shellfu is mostly intended for cases when there's need for non-trivial
  16. amount of reliable body of shell scripts, and access to advanced modular
  17. languages such as Python or Perl is limited.
  18. This sub-package contains only the Shellfu management system but not
  19. actual modules. Use this if you want to write all modules yourself.
  20. %package bash
  21. Summary: Bash-specific base
  22. Requires: shellfu
  23. %description bash
  24. This sub-package contains Bash-specific parts of library infrastructure.
  25. Shellfu modules written for Bash should depend on this.
  26. %package bash-inigrep
  27. Summary: INI grepping Shellfu/Bash module
  28. Requires: shellfu-bash
  29. Requires: shellfu-bash-pretty
  30. %description bash-inigrep
  31. This sub-package contains 'inigrep', Shellfu/Bash module for reading
  32. INI-like files.
  33. %package bash-pretty
  34. Summary: Logging Shellfu/Bash module
  35. Requires: shellfu-bash
  36. Requires: shellfu-sh-termcolors
  37. %description bash-pretty
  38. This sub-package contains 'pretty', universal Shellfu logging module.
  39. %package devel
  40. Summary: Essential developer tools
  41. Requires: shellfu-bash-pretty
  42. %description devel
  43. This sub-package contains tools useful mostly for development of shellfu
  44. scripts.
  45. %package sh
  46. Summary: Generic base
  47. Requires: shellfu
  48. %description sh
  49. This sub-package contains POSIX-oriented parts of library infrastructure.
  50. Generic Shellfu modules aiming for POSIX compatibility should depend on this.
  51. %package sh-charmenu
  52. Summary: Shellfu/sh module for building interactive terminal menus
  53. Requires: shellfu-sh
  54. %description sh-charmenu
  55. This sub-package contains 'charmenu', a Shellfu/sh module for building
  56. interactive terminal menus
  57. %package sh-exit
  58. Summary: Shellfu/sh module for standard exit statuses
  59. Requires: shellfu-sh
  60. %description sh-exit
  61. This sub-package contains 'exit', Shellfu module containing few
  62. common ANSI color names.
  63. %package sh-mdfmt
  64. Summary: Markdown formatting helper
  65. Requires: shellfu-sh
  66. %description sh-mdfmt
  67. This sub-package contains Markdown formatting helper, a function that
  68. helps you generate Markdown paragraph elements from your shell scripts.
  69. %package sh-termcolors
  70. Summary: Shellfu/sh module for terminal color names
  71. Requires: shellfu-sh
  72. %description sh-termcolors
  73. This sub-package contains 'termcolors', Shellfu module containing most
  74. common ANSI color names.
  75. %prep
  76. %setup -q
  77. %build
  78. make %{?_smp_mflags} PREFIX=/usr
  79. %install
  80. %make_install PREFIX=/usr
  81. %check
  82. make test \
  83. PATH=%{buildroot}/%{_bindir}:$PATH \
  84. SHELLFU_DIR=%{buildroot}/%{_datadir}/%{name}
  85. %files
  86. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  87. %dir %{_datadir}/%{name}
  88. %dir %{_docdir}/%{name}
  89. %doc %{_docdir}/%{name}/LICENSE.md
  90. %doc %{_docdir}/%{name}/README.md
  91. %{_bindir}/sfdoc
  92. %{_bindir}/sfpath
  93. %{_datadir}/%{name}/shellfu.sh
  94. %files bash
  95. %dir %{_datadir}/%{name}/include-bash
  96. %files bash-inigrep
  97. %{_datadir}/%{name}/include-bash/inigrep.sh
  98. %files bash-pretty
  99. %{_datadir}/%{name}/include-bash/_pretty_color.sh
  100. %{_datadir}/%{name}/include-bash/_pretty_html.sh
  101. %{_datadir}/%{name}/include-bash/_pretty_journald.sh
  102. %{_datadir}/%{name}/include-bash/_pretty_notify.sh
  103. %{_datadir}/%{name}/include-bash/_pretty_plain.sh
  104. %{_datadir}/%{name}/include-bash/pretty.sh
  105. %files devel
  106. %{_bindir}/sfembed
  107. %files sh
  108. %dir %{_datadir}/%{name}/include-sh
  109. %files sh-charmenu
  110. %{_datadir}/%{name}/include-sh/charmenu.sh
  111. %files sh-exit
  112. %{_datadir}/%{name}/include-sh/exit.sh
  113. %files sh-mdfmt
  114. %{_datadir}/%{name}/include-sh/mdfmt.sh
  115. %files sh-termcolors
  116. %{_datadir}/%{name}/include-sh/termcolors.sh
  117. %changelog
  118. # specfile built with MKit __MKIT_SELF_VERSION__