-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
retry.spec.in
64 lines (52 loc) · 1.96 KB
/
retry.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# RPM Spec file for retry
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: Repeat a command until success
License: ASL 2.0
URL: https://github.com/minfrin/%{name}
Source0: %{URL}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: clang
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
The tool repeats the given command until the command is successful,
backing off with a configurable delay between each attempt.
Retry captures stdin into memory as the data is passed to the repeated
command, and this captured stdin is then replayed should the command
be repeated. This makes it possible to embed the retry tool into shell
pipelines.
Retry captures stdout into memory, and if the command was successful
stdout is passed on to stdout as normal, while if the command was
repeated stdout is passed to stderr instead. This ensures that output
is passed to stdout once and once only.
%prep
%setup -q
%build
%configure
%make_build
%install
%make_install
%files
%{_bindir}/retry
%{_mandir}/man1/retry.1*
%doc AUTHORS ChangeLog README
%license COPYING
%changelog
* Wed Jan 04 2023 Graham Leggett <[email protected]> - 1.0.5-1
- Allow multiple comma separated delay values.
- End getopt parsing on first non-option argument.
* Tue Feb 18 2020 Graham Leggett <[email protected]> - 1.0.4-1
- Fix an issue where the stdout of the retried command
was not correctly captured on the second try.
* Wed Jan 29 2020 Graham Leggett <[email protected]> - 1.0.3-1
- Switch from help2man to txt2man.
* Wed Jan 15 2020 Graham Leggett <[email protected]> - 1.0.2-1
- Add help2man to debian packaging build dependencies.
* Tue Jan 14 2020 Graham Leggett <[email protected]> - 1.0.1-1
- Add the --times option to repeat at most N times.
- Move the close logic to the same place as the open logic.
- Allow zero delay.
* Sun Jan 05 2020 Graham Leggett <[email protected]> - 1.0.0-1
- Initial version of the package