Compare commits

..

No commits in common. "rawhide" and "epel10.1" have entirely different histories.

3 changed files with 4 additions and 15 deletions

1
.gitignore vendored
View file

@ -1,2 +1 @@
/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.3.0
Version: 0.2.0
Release: %autorelease
BuildArch: noarch
@ -11,10 +11,8 @@ 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: podman
BuildRequires: make podman
%endif
Summary: A simple set of scripts for setting shell timeout automatically
@ -29,17 +27,12 @@ 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
@ -50,14 +43,11 @@ mkdir %{buildroot}/etc/default/shell-timeout.d
%check
%if %{with tests}
make test
%else
make test-shellcheck
%endif
%files
%license LICENSE
%doc docs/README.md
%doc %{_mandir}/man5/*
%doc README.md
%{_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.3.0.tar.gz) = b7c1d1a5c58f183733a838dba9166e87738e2ac3440698e57f4fe16fb0a083514f5b2326079d8709b246cb01ae7bb4de321b56a606d4ed98a5bcb0eea58ae705
SHA512 (shell-timeout-0.2.0.tar.gz) = 592ebff69e62fe016f46ef1b9912d6a0ed4ab6d9fc9215c3f9c1725e09fee1fd9674b59feeac9e1bb0f7244a84be67cbb202da01b9b430a352d5be27be31e799