File dtach.spec of Package dtach

#
# spec file for package dtach
#
# Copyright (c) 2017 SUSE LINUX 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 http://bugs.opensuse.org/
#


Name:           dtach
Version:        v0.9+2.748020b
Release:        0
Summary:        Background processes and reattach to them
License:        GPL-2.0+
Group:          System/Console
Url:            http://%{name}.sourceforge.net/
Source0:        %{name}-%{version}.tar.xz
Patch0:         dtach-remove-date-time-compile-macros.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
dtach wraps a command in a sort of process container with new
terminal device and session, allowing to "detach" from it,
essentially backgrounding the process, and later re-attach to it,
simliar to the eponymous feature of GNU screen.

dtach avoids interpreting most of the input and output between attached
terminals and the program under its control. Though multi display mode (like
screen -x) is available, different terminal types or even sizes are not
handled.

%prep
%setup -q
%patch0 -p1

%build
%configure
make %{?_smp_mflags}

%install
install -D -p -m 755 %{name} \
    %{buildroot}/%{_bindir}/%{name}
install -D -p -m 644 %{name}.1 \
    %{buildroot}/%{_mandir}/man1/%{name}.1

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by