File reptyr.spec of Package reptyr

# spec file for package reptyr
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           reptyr
Version:        0.3dev_git20120325
Release:        0
Summary:        A tool for "re-ptying" programs
License:        MIT
Group:          System/Console
Source:         reptyr-%{version}.tar.bz2
BuildRequires:  gcc
BuildRequires:  make
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

reptyr is a utility for taking an existing running program and
attaching it to a new terminal. Started a long-running process over
ssh, but have to leave and don't want to interrupt it? Just start a
screen, use reptyr to grab it, and then kill the ssh session and head
on home.

%setup -q

export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"

make PREFIX="%{buildroot}%{_prefix}" install

install -d "%{buildroot}%{_docdir}/%{name}"
install -m0644 ChangeLog COPYING NOTES "%{buildroot}%{_docdir}/%{name}"/

rm -rf %{buildroot}

%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/
%doc %{_docdir}/%{name}/NOTES
%doc %{_mandir}/man1/reptyr.1%{ext_man}
%doc %{_mandir}/fr/man1/reptyr.1%{ext_man}