SPECS: tscat.spec (NEW) - new, simple tool
matowy
matowy at pld-linux.org
Mon Feb 27 23:39:53 CET 2006
Author: matowy Date: Mon Feb 27 22:39:53 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new, simple tool
---- Files affected:
SPECS:
tscat.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/tscat.spec
diff -u /dev/null SPECS/tscat.spec:1.1
--- /dev/null Mon Feb 27 23:39:53 2006
+++ SPECS/tscat.spec Mon Feb 27 23:39:48 2006
@@ -0,0 +1,51 @@
+# $Revision$, $Date$
+# TODO: proper group, pl desc
+Summary: Simple Filter that adds Timestamps to Stdin
+Name: tscat
+Version: 1.0
+Release: 0.1
+Source0: http://www.gerg.ca/software/tscat/%{name}-%{version}.tar.gz
+# Source0-md5: 1337bd212bbef8f4f9518f1f2d50e088
+License: MIT/X Consortium License
+Group: Productivity/Text/Utilities
+URL: http://www.gerg.ca/software/tscat/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+tscat is a simple filter that reads a line from standard input,
+prepends a timestamp to each line, and writes to standard output.
+Timestamps can be absolute (current time of day), relative to process
+start time, or deltas since the previous line (previous timestamp).
+
+%prep
+%setup -q
+
+%build
+%__make \
+ PREFIX="%{_prefix}" \
+ BIN_DIR="%{_bindir}" \
+ MAN_DIR="%{_mandir}/man1" \
+ CFLAGS="%{optflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install tscat $RPM_BUILD_ROOT%{_bindir}/tscat
+install tscat.1 $RPM_BUILD_ROOT%{_mandir}/man1/tscat.1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/tscat
+%doc %{_mandir}/man1/tscat.1*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
================================================================
More information about the pld-cvs-commit
mailing list