Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Fedora Release Engineering
fc014d9302 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 06:29:14 +00:00
Pat Riehecky
0a161df504
Don't run shfmt 2026-03-18 15:00:53 -05:00
Pat Riehecky
1512b5a8b2
Update to 0.3.0 2026-03-18 14:53:13 -05:00
3 changed files with 15 additions and 4 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/shell-timeout-0.2.0.tar.gz
/shell-timeout-0.3.0.tar.gz

View file

@ -2,7 +2,7 @@
%bcond tests 0
Name: shell-timeout
Version: 0.2.0
Version: 0.3.0
Release: %autorelease
BuildArch: noarch
@ -11,8 +11,10 @@ Url: https://github.com/fermitools/shell-timeout
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Requires: coreutils filesystem sed
BuildRequires: make bash grep shellcheck
BuildRequires: (rubygem-asciidoctor or asciidoc)
%if %{with tests}
BuildRequires: make podman
BuildRequires: podman
%endif
Summary: A simple set of scripts for setting shell timeout automatically
@ -27,12 +29,17 @@ after a configured period of inactivity.
%autosetup
%build
make man
%install
# these must be in /etc/profile.d to actually work
install -p -m 644 -D src/shell-timeout.sh %{buildroot}%{_sysconfdir}/profile.d/shell-timeout.sh
install -p -m 644 -D src/shell-timeout.csh %{buildroot}%{_sysconfdir}/profile.d/shell-timeout.csh
mkdir -p %{buildroot}%{_mandir}/man5/
cp -pa man/shell-timeout.conf.5 %{buildroot}%{_mandir}/man5/
# the scripts are hard coded to check
# /etc/default/shell-timeout
# /etc/default/shell-timeout.d
@ -43,11 +50,14 @@ mkdir %{buildroot}/etc/default/shell-timeout.d
%check
%if %{with tests}
make test
%else
make test-shellcheck
%endif
%files
%license LICENSE
%doc README.md
%doc docs/README.md
%doc %{_mandir}/man5/*
%{_sysconfdir}/profile.d/shell-timeout.sh
%{_sysconfdir}/profile.d/shell-timeout.csh
%config(noreplace) /etc/default/shell-timeout

View file

@ -1 +1 @@
SHA512 (shell-timeout-0.2.0.tar.gz) = 592ebff69e62fe016f46ef1b9912d6a0ed4ab6d9fc9215c3f9c1725e09fee1fd9674b59feeac9e1bb0f7244a84be67cbb202da01b9b430a352d5be27be31e799
SHA512 (shell-timeout-0.3.0.tar.gz) = b7c1d1a5c58f183733a838dba9166e87738e2ac3440698e57f4fe16fb0a083514f5b2326079d8709b246cb01ae7bb4de321b56a606d4ed98a5bcb0eea58ae705