## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # test suite runs a bunch of podman, can't do that within the buildroot of koji or mock %bcond tests 0 Name: shell-timeout Version: 0.2.0 Release: %autorelease BuildArch: noarch License: GPL-3.0-or-later Url: https://github.com/fermitools/shell-timeout Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Requires: coreutils filesystem sed %if %{with tests} BuildRequires: make podman %endif Summary: A simple set of scripts for setting shell timeout automatically %description These scripts automatically set shell timeout values based on user ID (UID) or group ID (GID) membership in POSIX shells (bash/zsh) and C shells (csh/tcsh). When a matching user logs in, their shell will automatically terminate after a configured period of inactivity. %prep %autosetup %build %install # these must be in /etc/profile.d to actually work install -m 644 -D src/shell-timeout.sh %{buildroot}%{_sysconfdir}/profile.d/shell-timeout.sh install -m 644 -D src/shell-timeout.csh %{buildroot}%{_sysconfdir}/profile.d/shell-timeout.csh # the scripts are hard coded to check # /etc/default/shell-timeout # /etc/default/shell-timeout.d # variables here would be counter-productive as they don't change the code install -m 644 -D conf/shell-timeout %{buildroot}/etc/default/shell-timeout mkdir %{buildroot}/etc/default/shell-timeout.d %check %if %{with tests} make test %endif %files %license LICENSE %doc README.md %{_sysconfdir}/profile.d/shell-timeout.sh %{_sysconfdir}/profile.d/shell-timeout.csh %config(noreplace) /etc/default/shell-timeout %dir /etc/default/shell-timeout.d %changelog ## START: Generated by rpmautospec * Wed Mar 04 2026 Pat Riehecky - 0.2.0-3 - Update spec file based on review comments * Tue Mar 03 2026 Pat Riehecky - 0.2.0-2 - Fix source name for spectool * Sat Feb 14 2026 Pat Riehecky - 0.2.0-1 - Release 0.2.0 * Mon Feb 09 2026 Pat Riehecky - 0.1.0-5 - Finish test plan across all 4 shells * Mon Feb 09 2026 Pat Riehecky - 0.1.0-4 - Actually finish csh code * Mon Jan 12 2026 Pat Riehecky - 0.1.0-3 - Add missing changelog * Mon Jan 12 2026 Pat Riehecky - 0.1.0-2 - Drop unused spelling check * Thu Dec 18 2025 Pat Riehecky - 0.1.0-1 - Initial design/development ## END: Generated by rpmautospec