]> thyrsus.com Git - showkey.git/commitdiff
Lift repository from RCS to git.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 09:13:35 +0000 (05:13 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 09:13:35 +0000 (05:13 -0400)
showkey.spec [new file with mode: 0644]

diff --git a/showkey.spec b/showkey.spec
new file mode 100644 (file)
index 0000000..674ca32
--- /dev/null
@@ -0,0 +1,47 @@
+Name: showkey
+Version: 1.4
+Release: 1
+URL: http://www.catb.org/~esr/showkey/
+Source0: %{name}-%{version}.tar.gz
+License: MIT
+Group: Utilities/System
+Summary: echo raw keystrokes in a readable form
+Packager: Eric S. Raymond <esr@thyrsus.com>
+BuildRoot: %{_tmppath}/%{name}-root
+
+%description
+All this program does is read keystrokes and spit them back at you in
+a simple, printable form.  This is one of these silly little utilities
+that you never think you'll need until some unexpected situation pops
+up and you have to have it.  Then you get to be mugged by the details
+of tty-interface code, yippee.  Never again!
+
+%prep
+%setup -q
+
+%build
+make %{?_smp_mflags} showkey showkey.1
+
+%install
+[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
+mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
+mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man1/
+cp showkey "$RPM_BUILD_ROOT"%{_bindir}
+cp showkey.1 "$RPM_BUILD_ROOT"%{_mandir}/man1/
+
+%clean
+[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
+
+%files
+%defattr(-,root,root,-)
+%{_mandir}/man1/showkey.1*
+%{_bindir}/showkey
+%doc README
+
+%changelog
+* Mon Dec 29 2003 Eric S. Raymond <esr@snark.thyrsus.com> 1.4-1
+- RPMs can now be built by non-root user.
+
+* Tue Aug 27 2002 Eric S. Raymond <esr@snark.thyrsus.com> 1.3-1
+- Change the implementation to use termios(3) for better portability.
+- Only reference portable signals.