Files
ttyrec/ttyrec.spec
OBS User mrdocs 14e023bf39 Accepting request 84760 from home:ajohansson:branches:utilities
Currently ttyrec fails with an error that /dev/ttyXX can't be found. -DSVR4 fixes it

OBS-URL: https://build.opensuse.org/request/show/84760
OBS-URL: https://build.opensuse.org/package/show/utilities/ttyrec?expand=0&rev=2
2011-09-26 18:08:27 +00:00

50 lines
1.3 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
Name: ttyrec
Version: 1.0.8
Release: 0
Summary: Terminal Recorder and Player
Source: http://0xcc.net/ttyrec/ttyrec-%{version}.tar.gz
Patch1: ttyrec-fixes.patch
URL: http://0xcc.net/ttyrec/index.html.en
Group: Productivity/Text/Utilities
License: BSD (original)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel pkgconfig
%description
ttyrec is a tty recorder. Recorded data can be played back with the included
ttyplay command. ttyrec is just a derivative of script command for recording
timing information with microsecond accuracy as well. It can record emacs -nw,
vi, lynx, or any programs running on tty.
%prep
%setup -q
%patch1
%build
%__make %{?_smp_flags} \
CC="%__cc" \
CFLAGS="%{optflags} -DHAVE_getpt -D_GNU_SOURCE -DSVR4" \
VERSION="%{version}"
%install
for x in ttyrec ttyplay ttytime; do
%__install -D -m0755 "$x" "%{buildroot}%{_bindir}/$x"
%__install -D -m0644 "${x}.1" "%{buildroot}%{_mandir}/man1/${x}.1"
done
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README
%{_bindir}/ttyrec
%{_bindir}/ttyplay
%{_bindir}/ttytime
%doc %{_mandir}/man1/ttyrec.1*
%doc %{_mandir}/man1/ttyplay.1*
%doc %{_mandir}/man1/ttytime.1*