# # spec file for package time # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: time Version: 1.9 Release: 1.13 Summary: Run Programs And Summarize System Resource Usage License: GPL-3.0+ Group: System/Base Url: http://www.gnu.org/software/time/ Source: http://ftp.gnu.org/gnu/time/%{name}-%{version}.tar.gz Source1: %{name}.rpmlintrc Source2: http://ftp.gnu.org/gnu/time/%{name}-%{version}.tar.gz.sig Source3: https://savannah.gnu.org/people/viewgpg.php?user_id=94790#/%{name}.keyring %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 %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 * Mon Mar 12 2018 astieger@suse.com - time 1.9: * reports percent CPU usage for programs lasting less then 1s * "time -p" no longers adds the "Command exited with non-zero status" message (POSIX compliance) - Use %%license (boo#1082318) * Sat Nov 18 2017 astieger@suse.com - time 1.8: * license changed to GPL-3.0+ - incorporate functionality previously carried as patches: * -q/--quiet option to suppresses abnormal program terminal (non-exit codes or signals). Drop time-debian-quiet.patch Drop time-fedora-verbose.patch * use the following exit codes (same as GNU coreutils' env): 125 = Wrong usage or internal error prior to exec attempt. 126 = Program located, but not usable. 127 = Could not find program to exec. * exit with code '128 + Signal number' when the program is terminated by a signal. Drop time-debian-non-normal-exit.patch * report MAX-RSS values correctly on modern systems Drop time-fedora-ru_maxrss-is-in-kilobytes-on-Linux.patch Drop time-fedora-Recompute-CPU-usage-at-microsecond-level.patch * Use gnulib modules and build infrastructure. * New tests infrastructure (make check). - drop unneeded patches: * time-debian-bug-address.patch * time-alpha.patch * time-debian-configure.patch * time-debian-info-direntry.patch * time-debian-info-nav.patch * time-debian-rusage-portability.patch * time-fsf-address.patch - add upstream keyring and verify source signature * Fri May 23 2014 sbrabec@suse.cz - Add time.rpmlint suppressing the missing time man page warning. * Tue May 20 2014 pgajdos@suse.com - remove time.1 [bnc#878057] * Thu Sep 5 2013 sbrabec@suse.cz - Sync patches with Debian and Fedora: * Add man page (time.1). * Less nonverbose output (time-fedora-verbose.patch). * Fix maximal RSS report (time-fedora-ru_maxrss-is-in-kilobytes-on-Linux.patch, bnc#836049, Redhat#702826). * Switch to microsecond accuracy if miliseconds arithmetic rounds to zero (time-fedora-Recompute-CPU-usage-at-microsecond-level.patch, Redhat#527276). * When time exits in a non-normal way, return 128 plus the number of the signal which caused time to stop or abort (time-debian-non-normal-exit.patch). * struct rusage and sys/resource.h portability fix (time-debian-rusage-portability.patch, Debian#144819). * Add -q,--quiet functionality (time-debian-quiet.patch, Debian#56853). * Update bug reporting address (time-debian-bug-address.patch, Debian#542469). * Modernize the configure.in file to current autoconf style (time-debian-configure.patch). * Add a directory entry to the info page (time-debian-info-direntry.patch). - Fix FSF address (time-fsf-address.patch). - Update Summary. - Rename time-1.7.diff to time-alpha.patch. * Sun Jan 20 2013 jengelh@inai.de - Split "time" off util-linux * Tue Feb 21 2012 puzel@suse.com - disabled make check for time (noop) * Wed Oct 30 2002 ro@suse.de - hack time to build on alpha