zutils/zutils.spec
Martin Pluskal 8cd548e2ff Accepting request 827320 from home:dirkmueller:branches:Archiving
- update to 1.9:
  * zcmp.cc zdiff.cc: Read standard input only if requested.
  * zdiff.cc (main): Pass options '-W' and '-y' to diff.
  * zutils.cc (test_format): Detect bzip2 and lzip files better.
  * ztest.cc (main): Continue testing if any input file is a terminal.
  If verbosity >= 1, print number of files that failed the test.
  * zcat.cc zgrep.cc ztest.cc (main): Check return value of close( infd ).
  * zutils.cc (good_status): Ignore trailing data remaining in feeder.
  * zupdate.cc (zupdate_file): Support new and old lzip option '-o'.
  Keep combined extensions: tgz, tbz, tbz2, txz --> tlz.
  Quote file names in zcmp_command to allow file names with spaces.
  * *.cc (main): Set a valid invocation_name even if argc == 0.
  * zutils.texi: Improve descriptions of zcat, zcmp, and zdiff.

OBS-URL: https://build.opensuse.org/request/show/827320
OBS-URL: https://build.opensuse.org/package/show/Archiving/zutils?expand=0&rev=16
2020-08-18 06:53:44 +00:00

83 lines
2.6 KiB
RPMSpec

#
# spec file for package zutils
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: zutils
Version: 1.9
Release: 0
Summary: Collection of utilities for dealing with compressed files
License: GPL-2.0-or-later
Group: Productivity/Archiving/Compression
URL: https://www.nongnu.org/zutils/zutils.html
Source0: https://download.savannah.gnu.org/releases/zutils/zutils-%{version}.tar.lz
Source1: https://download.savannah.gnu.org/releases/zutils/zutils-%{version}.tar.lz.sig
Source2: %{name}.keyring
# PATCH-FIX-OPENSUSE zutils-1.7-noconflict.patch
Patch1: zutils-1.7-noconflict.patch
BuildRequires: gcc-c++
BuildRequires: lzip
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description
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.
%prep
%autosetup -p1
%build
%configure CXXFLAGS="%{optflags}"
%make_build
%install
%make_install
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%doc ChangeLog README
%license COPYING
%config %{_sysconfdir}/zutilsrc
%{_bindir}/zutils-zcat
%{_bindir}/zutils-zcmp
%{_bindir}/zutils-zdiff
%{_bindir}/zutils-zegrep
%{_bindir}/zutils-zfgrep
%{_bindir}/zutils-zgrep
%{_bindir}/ztest
%{_bindir}/zupdate
%{_infodir}/zutils.info%{?ext_info}
%{_mandir}/man1/zutils-zcat.1%{?ext_man}
%{_mandir}/man1/zutils-zcmp.1%{?ext_man}
%{_mandir}/man1/zutils-zdiff.1%{?ext_man}
%{_mandir}/man1/zutils-zgrep.1%{?ext_man}
%{_mandir}/man1/ztest.1%{?ext_man}
%{_mandir}/man1/zupdate.1%{?ext_man}
%changelog