diff --git a/argbash-2.10.0.tar.gz b/argbash-2.10.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..49752566bc6bea6fc0f04f3ba7e0f97fa465c451 Binary files /dev/null and b/argbash-2.10.0.tar.gz differ diff --git a/argbash.spec b/argbash.spec new file mode 100644 index 0000000000000000000000000000000000000000..4abcaebe841142448d563ca91a99fcf257fef13c --- /dev/null +++ b/argbash.spec @@ -0,0 +1,59 @@ +Name: argbash +Version: 2.10.0 +Release: 1 +Summary: Bash argument parsing code generator +License: BSD +URL: https://argbash.io +Source0: https://github.com/matejak/argbash/archive/2.10.0/argbash-2.10.0.tar.gz +BuildArch: noarch +BuildRequires: autoconf coreutils make bash bash-completion +BuildRequires: python%{python3_pkgversion}-docutils +Requires: autoconf bash coreutils grep sed +Recommends: bash-completion + +%description +Argbash helps your shell scripts to accept arguments. +You declare what arguments you want your script to accept and Argbash +generates the shell code that parses them from the command-line and exposes +passed values as shell variables. + +%package help +Summary: Man page files for argbash +Requires: argbash = 2.10.0 + +%description help +Man page files for argbash. + +%prep +%autosetup -p1 + +%build + +%install +cd resources && \ + ROOT=%{buildroot} \ + PREFIX=%{_prefix} \ + PREFIXED_LIBDIR=%{_datarootdir} \ + SYSCONFDIR=%{_sysconfdir} \ + INSTALL_COMPLETION=yes \ + BASH_COMPLETION_DIRECTORY=%{_datarootdir}/bash-completion/completions \ + make install + +%check +cd resources && make check + +%files +%license LICENSE +%doc README.md ChangeLog +%{_bindir}/argbash +%{_bindir}/argbash-1to2 +%{_bindir}/argbash-init +%{_datarootdir}/argbash/ +%{_datarootdir}/bash-completion/completions/argbash + +%files help +%{_mandir}/man1/argbash* + +%changelog +* Tue Jul 13 2021 wangziliang - 2.10.0-1 +- Package init.