rzsz/rzsz.spec
Tomáš Chvátal 0e7ce4d808 - Update to 0.12.21~rc bsc#1086416:
* RC candidate from 1999 containing bunch of trivial fxies that
    most other distributions ship
- Rebase patches:
  * lrzsz-0.12.20-automake-1.13.patch
  * lrzsz-autotools.patch
  * lrzsz-po.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/rzsz?expand=0&rev=24
2018-04-05 08:24:49 +00:00

108 lines
2.5 KiB
RPMSpec

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