File ttyrec.spec of Package ttyrec

# 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*

openSUSE Build Service is sponsored by