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..ea0994df052a44fd68426f4c1d7bf7bd7bc9e52e --- /dev/null +++ b/argbash.spec @@ -0,0 +1,72 @@ +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/%{name}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: autoconf +BuildRequires: coreutils +BuildRequires: make +BuildRequires: bash +BuildRequires: bash-completion +BuildRequires: python%{python3_pkgversion}-docutils + +%if 0%{?fedora} >= 27 +BuildRequires: ShellCheck +%endif + +Requires: autoconf +Requires: bash +Requires: coreutils +Requires: grep +Requires: sed + +%if !0%{?rhel} || 0%{?rhel} > 7 +Recommends: bash-completion +%endif + +%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. + +Help message is also generated, and helpful error messages are dispatched +if the script is called with arguments that conflict with the interface. + +%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 +%{_mandir}/man1/argbash* + +%{_bindir}/argbash +%{_bindir}/argbash-1to2 +%{_bindir}/argbash-init +%{_datarootdir}/argbash/ +%{_datarootdir}/bash-completion/completions/argbash + +%changelog +* Fri Jun 10 2022 Wen Zhiwei - 2.10.0-1 +- Init package diff --git a/argbash.yaml b/argbash.yaml new file mode 100644 index 0000000000000000000000000000000000000000..83e9754bedbbddb098c377958d7a4100a32370bb --- /dev/null +++ b/argbash.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: matejak/matejak +tag_prefix: "" +separator: "."