File rcs.spec of Package rcs

# spec file for package rcs
# Copyright (c) 2015 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

Name:           rcs
Version:        5.9.4
Release:        0
Summary:        Revision Control System
License:        GPL-3.0+
Group:          Development/Tools/Version Control
Source3:        rcs.keyring
BuildRequires:  ed
BuildRequires:  xz
Requires:       diffutils
Requires(pre):  %{install_info_prereq}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

RCS, the Revision Control System, manages multiple revisions of files.
RCS can store, retrieve, log, identify, and merge revisions. It is
useful for files that are frequently revised, for example: programs,
documentation, graphics, and papers.

%setup -q

ac_cv_path_SENDMAIL=%{_sbindir}/sendmail \
	./configure --prefix=/usr --with-diff-utils
make %{?_smp_mflags} CFLAGS="%{optflags} -std=gnu99"

# t810 is failing
#make %{?_smp_mflags} check

make prefix=%{buildroot}/usr install man1dir=%{buildroot}%{_mandir}/man1 man5dir=%{buildroot}%{_mandir}/man5
mkdir -p %{buildroot}%{_defaultdocdir}/rcs

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%defattr(-, root, root)
%doc %{_mandir}/man?/*.gz
%doc %{_infodir}/*.*