time/time.spec

70 lines
2.0 KiB
RPMSpec

#
# spec file for package time
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: time
Version: 1.9
Release: 0
Summary: Run Programs And Summarize System Resource Usage
License: GPL-3.0-or-later
Group: System/Base
URL: https://www.gnu.org/software/time/
Source: https://ftp.gnu.org/gnu/time/%{name}-%{version}.tar.gz
Source1: %{name}.rpmlintrc
Source2: https://ftp.gnu.org/gnu/time/%{name}-%{version}.tar.gz.sig
Source3: https://savannah.gnu.org/people/viewgpg.php?user_id=94790#/%{name}.keyring
# PATCH-FIX-OPENSUSE disable-time-max-rss-test.patch bsc#1211092
Patch1: disable-time-max-rss-test.patch
Requires(post): %{install_info_prereq}
Requires(preun):%{install_info_prereq}
%description
The "time" command runs another program, then displays information
about the resources used by that program, collected by the system
while the program was running.
%prep
%setup -q
%ifarch ppc ppc64 ppc64le
%patch -P 1 -p1
%endif
%build
%configure
make %{?_smp_mflags}
%install
%make_install
install -d %{buildroot}%{_mandir}/man1
%check
make %{?_smp_mflags} check
%post
%install_info --entry="* time: (time). summarizing used system resources" --info-dir="%{_infodir}" "%{_infodir}/time.info.gz"
%postun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/time.info.gz"
%files
%license COPYING
%doc AUTHORS NEWS README
%{_bindir}/time
%{_infodir}/time.info*%{ext_info}
%changelog