File rzsz.spec of Package rzsz

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


Name:           rzsz
Version:        0.12.20
Release:        0
Summary:        X-, Y-, and Z-Modem Data Transfer Protocols
License:        GPL-2.0+
Group:          Hardware/Modem
Url:            http://www.ohse.de/uwe/software/lrzsz.html
Source:         http://www.ohse.de/uwe/releases/lrzsz-%{version}.tar.bz2
Patch1:         lrzsz-po.patch
Patch2:         lrzsz-0.12.20-use-after-free.patch
Patch4:         lrzsz-autotools.patch
Patch5:         lrzsz-implicit-decl.patch
Patch6:         lrzsz-0.12.20-automake-1.12.patch
Patch7:         lrzsz-0.12.20-automake-1.13.patch
Patch8:         lrzsz-0.12.20-null-pointer.patch
BuildRequires:  autoconf
BuildRequires:  automake
Provides:       lrzsz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%prep
%setup -q -n lrzsz-%{version}
%patch1
%patch2 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

# Missing file
>> config.rpath
# Too old
rm -f missing
# Broken header
rm -f acconfig.h

autoreconf -fvi

%build
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang lrzsz

# Fix various symlinks
for x in {r,s}{b,x,z} ; do
    pushd "%{buildroot}/%{_bindir}"
    ln -s l$x $x
    popd
    pushd "%{buildroot}/%{_mandir}/man1"
    ln -s l${x:0:1}z.1 ${x}.1
    popd
done

%check
make vcheck -j1

%files -f lrzsz.lang
%defattr(-,root,root)
%{_mandir}/man1/*
%doc README.* ABOUT-NLS AUTHORS COMPATABILITY COPYING ChangeLog NEWS THANKS TODO
%{_bindir}/rb
%{_bindir}/rx
%{_bindir}/rz
%{_bindir}/sb
%{_bindir}/sx
%{_bindir}/sz
%{_bindir}/lrb
%{_bindir}/lrx
%{_bindir}/lrz
%{_bindir}/lsb
%{_bindir}/lsx
%{_bindir}/lsz

%changelog
openSUSE Build Service is sponsored by