File sharutils.spec of Package sharutils

#
# spec file for package sharutils (Version 4.6.3)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           sharutils
BuildRequires:  mailx
Url:            http://www.gnu.org/software/sharutils/
License:        GPL v2 or later
Group:          Productivity/Archiving/Compression
AutoReqProv:    on
Provides:       sharutil
Obsoletes:      sharutil
Version:        4.6.3
Release:        87
Summary:        GNU shar utilities
Source:         sharutils-%{version}.tar.bz2
Patch:          quoting.diff
Patch1:         testsuite.diff
Patch2:         set-file-mode.diff
Patch3:         dummy.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         /bin/ln /bin/rm %{install_info_prereq}

%description
This is the set of GNU shar utilities.

shar makes shell archives out of many files, preparing them for
transmission by electronic mail services.  Use unshar to unpack shell
archives after reception.

uuencode prepares a file for transmission over an electronic channel
which ignores or otherwise mangles the eight bit (high order bit) of
bytes.	uudecode does the converse transformation.

remsync allows for remote synchronization of directory trees, using
e-mail.  This part of sharutils is still alpha.



%prep
%setup -q
%patch
%patch1
%patch2
%patch3

%build
mkdir -p ../bin
ln -snf /bin/true ../bin/compress
PATH=$PWD/../bin:$PATH
autoreconf --force --install
./configure CFLAGS="$RPM_OPT_FLAGS" --prefix=%{_prefix} --mandir=%{_mandir} \
	    --infodir=%{_infodir}
make
make check

%install
make install DESTDIR="$RPM_BUILD_ROOT"
%find_lang %name

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

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

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-, root, root)
%{_prefix}/bin/*
%{_infodir}/*.gz
%{_mandir}/*/*.gz

%changelog