diff --git a/README.md b/README.md index ab6ff8d..4870fab 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # time +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. +You can select which information is reported and the format in which it is shown, or have `time' save the information in a file instead of displaying it on the screen. + diff --git a/time-1.7-destdir.patch b/time-1.7-destdir.patch new file mode 100644 index 0000000..926ee77 --- /dev/null +++ b/time-1.7-destdir.patch @@ -0,0 +1,37 @@ +--- time-1.7/Makefile.in.destdir 2007-02-27 12:13:10.000000000 +0100 ++++ time-1.7/Makefile.in 2007-02-27 12:18:07.000000000 +0100 +@@ -114,10 +114,10 @@ + maintainer-clean-binPROGRAMS: + + install-binPROGRAMS: $(bin_PROGRAMS) +- $(mkinstalldirs) $(bindir) ++ $(mkinstalldirs) $(DESTDIR)/$(bindir) + list="$(bin_PROGRAMS)"; for p in $$list; do \ + if test -f $$p; then \ +- $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ ++ $(INSTALL_PROGRAM) $$p $(DESTDIR)/$(bindir)/`echo $$p|sed '$(transform)'`; \ + else :; fi; \ + done + +@@ -176,10 +176,10 @@ + TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $< + + install-info: $(INFO_DEPS) +- $(mkinstalldirs) $(infodir) ++ $(mkinstalldirs) $(DESTDIR)/$(infodir) + for file in $(INFO_DEPS); do \ + for ifile in `cd $(srcdir) && echo $$file*`; do \ +- $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \ ++ $(INSTALL_DATA) $(srcdir)/$$ifile $(DESTDIR)/$(infodir)/$$ifile; \ + done; \ + done + +@@ -279,7 +279,7 @@ + install-strip: + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install + installdirs: +- $(mkinstalldirs) $(bindir) $(infodir) ++ $(mkinstalldirs) $(DESTDIR)/$(bindir) $(DESTDIR)/$(infodir) + + + mostlyclean-generic: diff --git a/time.spec b/time.spec new file mode 100644 index 0000000..3630101 --- /dev/null +++ b/time.spec @@ -0,0 +1,64 @@ +Name: time +Version: 1.7 +Release: 3mamba +Summary: A GNU utility for monitoring a program's use of system resources +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.gnu.org/software/time/time.html +Source: ftp://ftp.gnu.org/gnu/time/time-%{version}.tar.gz +Patch: %{name}-1.7-destdir.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: bash +BuildRequires: glibc-devel +BuildRequires: texinfo +## AUTOBUILDREQ-END +Requires(post):%{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. +You can select which information is reported and the format in which it is shown, or have `time' save the information in a file instead of displaying it on the screen. + +%prep +%setup -q +%patch -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%install_info %{name}.info +: + +%preun +%uninnstall_info %{name}.info +: + +%files +%defattr(-,root,root) +%{_bindir}/time +%{_infodir}/time.info.* +%doc AUTHORS COPYING +#ChangeLog NEWS README + +%changelog +* Fri Sep 06 2013 Automatic Build System 1.7-3mamba +- periodic rebuild (manual edit: fix info page installation) + +* Tue Dec 04 2007 Aleph0 1.7-2mamba +- added missing build requirements +- new package maintainer + +* Fri Mar 23 2007 Aleph0 1.7-1qilnx +- package created by autospec