File rcs.spec of Package rcs

#
# spec file for package rcs
#
# 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 http://bugs.opensuse.org/
#


Name:           rcs
PreReq:         %install_info_prereq
Version:        5.8
Release:        0
Url:            http://www.gnu.org/software/rcs/
Summary:        Revision Control System
License:        GPL-2.0+
Group:          Development/Tools/Version Control
Source:         ftp://ftp.cs.purdue.edu/pub/RCS/rcs-%version.tar.gz
Patch1:         rcs-stdio.in.patch
Patch2:         rcs-rlog-zLT.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.


%prep
%setup
%patch1 -p1
%patch2 -p0

%build
ac_cv_path_SENDMAIL=/usr/sbin/sendmail \
	./configure --prefix=/usr --with-diff-utils
make CFLAGS="$RPM_OPT_FLAGS"

%check
make check

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

%clean
rm -rf $RPM_BUILD_ROOT

%post
%install_info --info-dir=%_infodir %_infodir/%name.info.gz

%postun
%install_info_delete --info-dir=%_infodir %_infodir/%name.info.gz

%files
%defattr(-, root, root)
%{_defaultdocdir}/rcs
/usr/bin/*
%doc AUTHORS README NEWS THANKS ChangeLog COPYING 
%doc %{_mandir}/man?/*.gz 
%doc %{_infodir}/*.*

%changelog
openSUSE Build Service is sponsored by