2017-08-31 22:33:24 +02:00
|
|
|
#
|
|
|
|
# spec file for package rzsz
|
|
|
|
#
|
2018-01-18 13:44:43 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-08-31 22:33:24 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-04-05 10:24:49 +02:00
|
|
|
%define realver 0.12.21rc
|
2017-08-31 22:33:24 +02:00
|
|
|
Name: rzsz
|
2018-04-05 10:24:49 +02:00
|
|
|
Version: 0.12.21~rc
|
2017-08-31 22:33:24 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: X-, Y-, and Z-Modem Data Transfer Protocols
|
2018-04-05 10:24:49 +02:00
|
|
|
License: GPL-2.0-or-later
|
2017-08-31 22:33:24 +02:00
|
|
|
Group: Hardware/Modem
|
2018-04-05 10:24:49 +02:00
|
|
|
URL: http://www.ohse.de/uwe/software/lrzsz.html
|
|
|
|
Source: http://www.ohse.de/uwe/testing/lrzsz-%{realver}.tar.gz
|
2017-08-31 22:33:24 +02:00
|
|
|
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
|
2018-01-21 14:51:18 +01:00
|
|
|
# PATCH-FIX-UPSTREAM fix getopt optstring boo#1076576
|
|
|
|
Patch9: lrzsz-0.12.20-fix-lsz-getopt.patch
|
2017-08-31 22:33:24 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
Provides: lrzsz
|
|
|
|
|
|
|
|
%description
|
|
|
|
rzsz allows you to use "sz filename" to send a file to your local
|
|
|
|
system.
|
|
|
|
|
|
|
|
%prep
|
2018-04-05 10:24:49 +02:00
|
|
|
%setup -q -n lrzsz-%{realver}
|
2017-08-31 22:33:24 +02:00
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
2018-01-21 14:51:18 +01:00
|
|
|
%patch9 -p1
|
2017-08-31 22:33:24 +02:00
|
|
|
|
|
|
|
# Missing file
|
|
|
|
>> config.rpath
|
|
|
|
# Too old
|
|
|
|
rm -f missing
|
|
|
|
# Broken header
|
|
|
|
rm -f acconfig.h
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2018-04-05 10:24:49 +02:00
|
|
|
autoreconf -fvi
|
2017-08-31 22:33:24 +02:00
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2018-01-18 13:44:43 +01:00
|
|
|
%make_install
|
2017-08-31 22:33:24 +02:00
|
|
|
%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
|
2017-09-04 16:04:22 +02:00
|
|
|
%ifarch ppc64 s390x
|
|
|
|
make vcheck -j1 || echo "Warning: ignore ZMODEMtcp* tests failure for %{_arch}";
|
2017-08-31 22:33:24 +02:00
|
|
|
%else
|
|
|
|
make vcheck -j1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -f lrzsz.lang
|
|
|
|
%{_mandir}/man1/*
|
2018-04-05 10:24:49 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README.* ABOUT-NLS AUTHORS COMPATABILITY ChangeLog NEWS THANKS TODO
|
2017-08-31 22:33:24 +02:00
|
|
|
%{_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
|