File rdist.spec of Package rdist
#
# spec file for package rdist
#
# 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: rdist
Version: 6.1.5
Release: 0
Summary: "Remote File Distribution" Utility
License: BSD-3-Clause
Group: Productivity/Networking/Other
Url: http://magnicomp.com/rdist/
Source: http://www.magnicomp.com/download/rdist/%{name}-%{version}.tar.gz
Patch0: rdist-%{version}.diff
Patch1: rdist-%{version}-bison.diff
Patch2: rdist-%{version}-stdarg.diff
Patch3: rdist-%{version}-proto.diff
Patch4: rdist-6.1.5-cleanup.patch
Patch6: rdist-6.1.5-lfs.patch
Patch7: rdist-6.1.5-links.patch
Patch8: rdist-6.1.5-linux.patch
Patch9: rdist-6.1.5-maxargs.patch
Patch10: rdist-6.1.5-mkstemp.patch
Patch11: rdist-6.1.5-oldpath.patch
Patch12: rdist-6.1.5-ssh.patch
Patch13: rdist-6.1.5-gcc4.patch
BuildRequires: bison
BuildRequires: flex
%description
This utility makes it possible to distribute files to several computers
within a network. If possible, file attributes such as: owner, group,
mode, and mtime are retained. It is even possible to overwrite running
binaries.
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13
%build
make OPT="%{optflags}" %{?_smp_mflags}
%install
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/{man1,man8}}
make MAN_DIR=%{buildroot}%{_mandir} BIN_DIR=%{buildroot}%{_bindir} install
%files
%{_bindir}/rdist
%{_bindir}/rdistd
%{_mandir}/man1/rdist.1%{ext_man}
%{_mandir}/man8/rdistd.8%{ext_man}
%doc Copyright README
%changelog