File zutils.spec of Package zutils

# spec file for package zutils
# 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

Name:           zutils
Version:        1.7
Release:        0
Summary:        Collection of utilities for dealing with compressed files
License:        GPL-2.0+
Group:          Productivity/Archiving/Compression
Source2:        %{name}.keyring
# PATCH-FIX-UPSTREAM zutils-1.7-zcat-buffer-overrun.patch
Patch0:         zutils-1.7-zcat-buffer-overrun.patch
BuildRequires:  gcc-c++
BuildRequires:  lzip
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
Conflicts:      gzip

Zutils is a collection of utilities able to deal with any combination
of compressed and uncompressed files transparently. If any given file,
including standard input, is compressed, its decompressed content is
used. Compressed files are decompressed on the fly; no temporary files
are created.
These utilities are not wrapper scripts but safer and more efficient
C++ programs. In particular the "--recursive" option is very efficient
in those utilities supporting it.

%setup -q
%patch0 -p1

make CXXFLAGS="%{optflags}" %{?_smp_mflags}

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

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

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

%doc ChangeLog README
%license COPYING
%config %{_sysconfdir}/zutilsrc

openSUSE Build Service is sponsored by