File lzip.spec of Package lzip

#
# spec file for package lzip
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2008-2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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:           lzip
Version:        1.20
Release:        0
Summary:        Lossless Data Compressor based on the LZMA Algorithm
License:        GPL-2.0-or-later
Group:          Productivity/Archiving/Compression
Url:            http://www.nongnu.org/lzip/lzip.html
Source:         https://download.savannah.gnu.org/releases/%name/%name-%version.tar.gz
Source2:        https://download.savannah.gnu.org/releases/%name/%name-%version.tar.gz.sig
Source3:        %name.keyring
BuildRequires:  gcc-c++
PreReq:         %install_info_prereq

%description
Lzip is a lossless data compressor based on the LZMA algorithm, with very safe
integrity checking and a user interface almost identical to the one of
bzip2. Lzip is only a data compressor, not an archiver. It has no facilities
for multiple files, encryption, or archive-splitting, but, in the Unix
tradition, relies instead on separate external utilities such as GNU Tar for
these tasks.

%prep
%setup -q

%build
# not autoconf:
./configure \
    --prefix="%{_prefix}" \
    --bindir="%{_bindir}" \
    --datadir="%{_datadir}" \
    --infodir="%{_infodir}" \
    --mandir="%{_mandir}" \
    --sysconfdir="%{_sysconfdir}" \
    CC="%__cc" \
    CFLAGS="%{optflags}" \
    CXX="%__cxx" \
    CXXFLAGS="%{optflags}"
make %{?_smp_mflags}

%install
%make_install

%check
make %{?_smp_mflags} check

%post
%install_info --info-dir="%_infodir" "%_infodir/lzip.info%ext_info"

%postun
%install_info_delete --info-dir="%_infodir" "%_infodir/lzip.info%ext_info"

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%_bindir/lzip
%_infodir/lzip.info%ext_info
%_mandir/man1/lzip.1%ext_man

%changelog
openSUSE Build Service is sponsored by