2013-03-26 15:44:17 +01:00
#
# spec file for package time
#
2014-05-22 15:34:05 +02:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2013-03-26 15:44:17 +01:00
#
# 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.7
Release : 0
2013-09-12 19:31:14 +02:00
Summary : Run Programs And Summarize System Resource Usage
2013-03-26 15:44:17 +01:00
License : GPL-2.0+
Group : System/Base
Url : http://www.gnu.org/software/time/
2013-09-12 19:31:14 +02:00
Source : %{name} -%{version} .tar.bz2
2014-05-30 21:51:07 +02:00
Source1 : %{name} .rpmlintrc
2013-09-12 19:31:14 +02:00
# Sync with:
# Debian version: 1.7-24, patch naming: s/^/time-debian-/
# Fedora version: 1.7-44, patch naming: s/^time-1.7/^time-fedora/
# PATCH-FIX-OPENSUSE time-alpha.patch ro@suse.de -- Fix compilation on Alpha.
Patch1 : time-alpha.patch
# PATCH-FIX-OPENSUSE time-fsf-address.patch sbrabec@suse.cz -- Fix FSF address.
Patch2 : time-fsf-address.patch
# Patch10 time-fedora-destdir.patch not applied, use Debian patch and autoreconf instead
# PATCH-FEATURE-FEDORA time-fedora-verbose.patch sbrabec@suse.cz -- Roman Rakus <rrakus@redhat.cz> - 1.7-33 - Added patch from JW (redhat@zacglen.com), less nonverbose output.
Patch11 : time-fedora-verbose.patch
# PATCH-FIX-FEDORA time-fedora-ru_maxrss-is-in-kilobytes-on-Linux.patch Redhat#702826 bnc#836049 sbrabec@suse.cz -- Petr Pisar <ppisar@redhat.com> - 1.7-39 - Fix maximal RSS report.
Patch12 : time-fedora-ru_maxrss-is-in-kilobytes-on-Linux.patch
# Bug Redhat#527276 Recompute CPU usage at microsecond level
# PATCH-FEATURE-FEDORA time-fedora-Recompute-CPU-usage-at-microsecond-level.patch Redhat#527276 sbrabec@suse.cz -- H.J. Lu <hongjiu.lu@intel.com> - Switch to microsecond accuracy if miliseconds arithmetic rounds to zero.
Patch13 : time-fedora-Recompute-CPU-usage-at-microsecond-level.patch
# PATCH-FIX-DEBIAN time-debian-non-normal-exit.patch sbrabec@suse.cz -- When time exits in a non-normal way, return 128 plus the number of the signal which caused time to stop or abort.
Patch20 : time-debian-non-normal-exit.patch
# Patch21 time-debian-ru_maxrss.patch not applied, Fedora had it earlier.
# PATCH-FIX-DEBIAN time-debian-rusage-portability.patch Debian#144819 sbrabec@suse.cz -- struct rusage and sys/resource.h portability fix.
Patch22 : time-debian-rusage-portability.patch
# PATCH-FEATURE-DEBIAN time-debian-quiet.patch Debian#56853 sbrabec@suse.cz -- Add -q,--quiet functionality.
Patch23 : time-debian-quiet.patch
# PATCH-FIX-DEBIAN time-debian-bug-address.patch Debian#542469 sbrabec@suse.cz -- Update bug reporting address.
Patch24 : time-debian-bug-address.patch
# PATCH-FIX-DEBIAN time-debian-configure.patch sbrabec@suse.cz -- Modernize the configure.in file to current autoconf style.
Patch25 : time-debian-configure.patch
# PATCH-FEATURE-DEBIAN time-debian-info-direntry.patch sbrabec@suse.cz -- Add a directory entry to the info page.
Patch26 : time-debian-info-direntry.patch
# PATCH-FEATURE-DEBIAN time-debian-info-nav.patch sbrabec@suse.cz -- Fix info navigation structure. Reported by Russ Allbery. Author: Bob Proulx.
Patch27 : time-debian-info-nav.patch
BuildRequires : autoconf
BuildRequires : automake
BuildRequires : makeinfo
2013-03-26 15:44:17 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
PreReq : %install_info_prereq
2013-09-12 19:31:14 +02:00
# Split-provides for openSUSE <= 12.3 and SLE <= 11:
2013-03-26 15:44:17 +01:00
Provides : util-linux:/usr/bin/time
%description
The " t i m e " 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
2013-09-12 19:31:14 +02:00
%patch1 -p1
%patch2 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch20 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
2013-03-26 15:44:17 +01:00
%build
2013-09-12 19:31:14 +02:00
autoreconf -f -i
2013-03-26 15:44:17 +01:00
%configure
make %{?_smp_mflags}
%install
2013-09-12 19:31:14 +02:00
%makeinstall
install -d %{buildroot} %{_mandir} /man1
2013-03-26 15:44:17 +01:00
%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
%defattr (-,root,root)
%doc AUTHORS COPYING NEWS README
2013-09-12 19:31:14 +02:00
%{_bindir} /time
%{_infodir} /time.info*.gz
2013-03-26 15:44:17 +01:00
%changelog