From b2cfc4e2e71d0f0a5113ddfbd93c8285cc4d74e4 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 30 Sep 2003 17:47:41 +0000 Subject: Initial revision --- src/libfmt/rpm.spec | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/libfmt/rpm.spec (limited to 'src/libfmt/rpm.spec') diff --git a/src/libfmt/rpm.spec b/src/libfmt/rpm.spec new file mode 100644 index 00000000..2cd51484 --- /dev/null +++ b/src/libfmt/rpm.spec @@ -0,0 +1,34 @@ +Summary: Extensible formatted print library. (Printf with user-defined verbs.) +Name: libfmt +Version: 2.0 +Release: 1 +Group: Development/C +Copyright: BSD-like +Packager: Russ Cox +Source: http://pdos.lcs.mit.edu/~rsc/software/libfmt-2.0.tgz +URL: http://pdos.lcs.mit.edu/~rsc/software/#libfmt +Requires: libutf + +%description +Libfmt is a port of Plan 9's formatted print library. +As a base it provides all the syntax of ANSI printf +but adds the ability for client programs to install +new print verbs. One such print verb (installed by +default) is %r, which prints the system error string. +Instead of perror("foo"), you can write fprint(2, "foo: %r\n"). +This is especially nice when you write verbs to format +the data structures used by your particular program. +%prep +%setup + +%build +make + +%install +make install + +%files +/usr/local/include/fmt.h +/usr/local/lib/libfmt.a +/usr/local/man/man3/print.3 +/usr/local/man/man3/fmtinstall.3 -- cgit v1.2.3