From: Eric S. Raymond Date: Wed, 13 Oct 2010 09:13:35 +0000 (-0400) Subject: Lift repository from RCS to git. X-Git-Tag: 1.5~9 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=fa1d00abf5cd02fdde3eefd7e7660faaa40c3055;p=showkey.git Lift repository from RCS to git. --- diff --git a/showkey.spec b/showkey.spec new file mode 100644 index 0000000..674ca32 --- /dev/null +++ b/showkey.spec @@ -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 +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 1.4-1 +- RPMs can now be built by non-root user. + +* Tue Aug 27 2002 Eric S. Raymond 1.3-1 +- Change the implementation to use termios(3) for better portability. +- Only reference portable signals.