From 1512b5a8b2b72f05d9121dc6c7bcc0d5d461a807 Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Wed, 18 Mar 2026 14:53:13 -0500 Subject: [PATCH 1/3] Update to 0.3.0 --- .gitignore | 1 + shell-timeout.spec | 16 +++++++++++++--- sources | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 05cbaf0..beb42fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /shell-timeout-0.2.0.tar.gz +/shell-timeout-0.3.0.tar.gz diff --git a/shell-timeout.spec b/shell-timeout.spec index 58c0e93..08a0276 100644 --- a/shell-timeout.spec +++ b/shell-timeout.spec @@ -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 shfmt +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 shfmt %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 diff --git a/sources b/sources index 686e495..96e8643 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (shell-timeout-0.2.0.tar.gz) = 592ebff69e62fe016f46ef1b9912d6a0ed4ab6d9fc9215c3f9c1725e09fee1fd9674b59feeac9e1bb0f7244a84be67cbb202da01b9b430a352d5be27be31e799 +SHA512 (shell-timeout-0.3.0.tar.gz) = b7c1d1a5c58f183733a838dba9166e87738e2ac3440698e57f4fe16fb0a083514f5b2326079d8709b246cb01ae7bb4de321b56a606d4ed98a5bcb0eea58ae705 From 0a161df5046a26de17f8909cb3de89b0880bdb8f Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Wed, 18 Mar 2026 15:00:53 -0500 Subject: [PATCH 2/3] Don't run shfmt --- shell-timeout.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-timeout.spec b/shell-timeout.spec index 08a0276..db8cb6a 100644 --- a/shell-timeout.spec +++ b/shell-timeout.spec @@ -11,7 +11,7 @@ Url: https://github.com/fermitools/shell-timeout Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Requires: coreutils filesystem sed -BuildRequires: make bash grep shellcheck shfmt +BuildRequires: make bash grep shellcheck BuildRequires: (rubygem-asciidoctor or asciidoc) %if %{with tests} BuildRequires: podman @@ -29,7 +29,7 @@ after a configured period of inactivity. %autosetup %build -make man shfmt +make man %install # these must be in /etc/profile.d to actually work From fc014d9302eb82ef187af2cd3f9d78408ea17dd9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 06:29:14 +0000 Subject: [PATCH 3/3] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild