File reptyr.spec of Package reptyr
Name: reptyr
Version: 0.10.0
Release: 1.1
Summary: Utility for reparenting a running program to a new terminal
License: MIT
URL: https://github.com/nelhage/reptyr
Source0: reptyr-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: make
%description
reptyr is a utility for taking an existing running program and attaching it
to a new terminal.
%prep
%setup -q -n reptyr-reptyr-%{version}
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%make_build V=1 VERBOSE=1
%install
%make_install PREFIX=%{_prefix} BASHCOMPDIR=%{_datadir}/bash-completion/completions
%check
# Tests require ptrace permissions not available in the build environment; skip them.
true
%files
%{_bindir}/reptyr
%{_mandir}/man1/reptyr.1%{?ext_man}
%{_mandir}/fr/man1/reptyr.1%{?ext_man}
%{_datadir}/bash-completion/completions/reptyr