File rzsz.spec of Package rzsz

#
# spec file for package rzsz (Version 0.12.20)
#
# 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:           rzsz
License:        GPL v2 or later
Group:          Hardware/Modem
Provides:       lrzsz 
AutoReqProv:    on
Url:            http://www.ohse.de/uwe/software/lrzsz.html
Version:        0.12.20
Release:        976
Summary:        X-, Y-, and Z-Modem Data Transfer Protocols
Source:         http://www.ohse.de/uwe/releases/lrzsz-%{version}.tar.bz2
Patch:          lrzsz-%{version}.dif
Patch1:         lrzsz-po.patch
Patch2:         lrzsz-0.12.20-use-after-free.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
rzsz allows you to use "sz filename" to send a file to your local
system.



%prep
%setup -n lrzsz-%{version}
%patch
%patch1
%patch2 -p1

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
        --mandir=%{_mandir} \
	--program-transform-name=sx^lxx
make 

%install
make prefix=$RPM_BUILD_ROOT/usr \
     mandir=$RPM_BUILD_ROOT/%{_mandir} install
%find_lang lrzsz

%clean
rm -rf $RPM_BUILD_ROOT

%files -f lrzsz.lang
%defattr(-,root,root)
%{_mandir}/man1/rz.1.gz
%{_mandir}/man1/sz.1.gz
%doc README.* ABOUT-NLS AUTHORS COMPATABILITY COPYING ChangeLog NEWS THANKS TODO
/usr/bin/rb
/usr/bin/rx
/usr/bin/rz
/usr/bin/sb
/usr/bin/sx
/usr/bin/sz

%changelog