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

template.spec 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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-core
  27. Summary: Core Bash modules for Shellfu
  28. Requires: shellfu-bash
  29. %description bash-core
  30. This sub-package contains core Shellfu modules.
  31. %package bash-extras
  32. Summary: Extra Bash modules for Shellfu
  33. Requires: shellfu-bash
  34. Requires: shellfu-bash-core
  35. %description bash-extras
  36. This sub-package contains extra Shellfu modules, most of them under
  37. heavy development.
  38. %package devel
  39. Summary: Essential developer tools
  40. Requires: shellfu-bash-core
  41. %description devel
  42. This sub-package contains tools useful mostly for development of shellfu
  43. scripts; most notably shellfu-doc which provides access to online
  44. (as in traditional man pages) documentation of shellfu modules.
  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-mdfmt
  52. Summary: Markdown formatting helper
  53. Requires: shellfu-sh
  54. %description sh-mdfmt
  55. This sub-package contains Markdown formatting helper, a function that
  56. helps you generate Markdown paragraph elements from your shell scripts.
  57. %prep
  58. %setup -q
  59. %build
  60. # %%configure
  61. make %{?_smp_mflags} PREFIX=/usr
  62. %install
  63. %make_install PREFIX=/usr
  64. %check
  65. make test \
  66. PATH=%{buildroot}/%{_bindir}:$PATH \
  67. SHELLFU_DIR=%{buildroot}/%{_datadir}/%{name}
  68. %files
  69. %config %{_sysconfdir}/bash_completion.d/%{name}.bash
  70. %dir %{_datadir}/%{name}
  71. %dir %{_docdir}/%{name}
  72. %doc %{_docdir}/%{name}/LICENSE.md
  73. %doc %{_docdir}/%{name}/README.md
  74. %{_bindir}/shellfu-get
  75. %{_datadir}/%{name}/shellfu.sh
  76. %files bash
  77. %dir %{_datadir}/%{name}/include-bash
  78. %files bash-core
  79. %{_datadir}/%{name}/include-bash/_pretty_color.sh
  80. %{_datadir}/%{name}/include-bash/_pretty_html.sh
  81. %{_datadir}/%{name}/include-bash/_pretty_journald.sh
  82. %{_datadir}/%{name}/include-bash/_pretty_notify.sh
  83. %{_datadir}/%{name}/include-bash/_pretty_plain.sh
  84. %{_datadir}/%{name}/include-bash/exit.sh
  85. %{_datadir}/%{name}/include-bash/pretty.sh
  86. %{_datadir}/%{name}/include-bash/termcolors.sh
  87. %files bash-extras
  88. %{_datadir}/%{name}/include-bash/charmenu.sh
  89. %{_datadir}/%{name}/include-bash/inigrep.sh
  90. %{_datadir}/%{name}/include-bash/sync.sh
  91. %files devel
  92. %config %{_sysconfdir}/bash_completion.d/shellfu-devel.bash
  93. %{_bindir}/shellfu-doc
  94. %{_bindir}/shellfu-embed
  95. %files sh
  96. %dir %{_datadir}/%{name}/include-sh
  97. %files sh-mdfmt
  98. %{_datadir}/%{name}/include-sh/mdfmt.sh
  99. %changelog
  100. # specfile built with MKit __MKIT_SELF_VERSION__