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

template.spec 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Name: __MKIT_PROJ_PKGNAME__
  2. Version: __MKIT_PROJ_VERSION__
  3. Release: 1%{?dist}
  4. Summary: __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
  5. License: GPLv3
  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. %prep
  46. %setup -q
  47. %build
  48. # %%configure
  49. make %{?_smp_mflags}
  50. %install
  51. %make_install
  52. %files
  53. %config %{_sysconfdir}/bash_completion.d/shellfu.bash
  54. %dir /usr/local/share/shellfu
  55. %dir /usr/local/share/doc/shellfu
  56. %doc /usr/local/share/doc/shellfu/LICENSE.md
  57. %doc /usr/local/share/doc/shellfu/README.md
  58. /usr/local/bin/shellfu-get
  59. /usr/local/share/shellfu/shellfu.sh
  60. %files bash
  61. %dir /usr/local/share/shellfu/include-bash
  62. %files bash-core
  63. /usr/local/share/shellfu/include-bash/_pretty_color.sh
  64. /usr/local/share/shellfu/include-bash/_pretty_html.sh
  65. /usr/local/share/shellfu/include-bash/_pretty_notify.sh
  66. /usr/local/share/shellfu/include-bash/_pretty_plain.sh
  67. /usr/local/share/shellfu/include-bash/exit.sh
  68. /usr/local/share/shellfu/include-bash/pretty.sh
  69. /usr/local/share/shellfu/include-bash/termcolors.sh
  70. %files bash-extras
  71. /usr/local/share/shellfu/include-bash/charmenu.sh
  72. /usr/local/share/shellfu/include-bash/inigrep.sh
  73. /usr/local/share/shellfu/include-bash/sync.sh
  74. %files devel
  75. %config %{_sysconfdir}/bash_completion.d/shellfu-devel.bash
  76. /usr/local/bin/shellfu-doc
  77. /usr/local/bin/shellfu-embed
  78. %changelog
  79. # specfile built with MKit __MKIT_SELF_VERSION__