File lzip.spec of Package lzip
# vim: set sw=4 ts=4 et nu:
#
# spec file for package lzip
#
# Copyright (c) 2015 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.17
Release: 0
Summary: Lossless Data Compressor based on the LZMA Algorithm
License: GPL-2.0+
Group: Productivity/Archiving/Compression
Url: http://www.nongnu.org/lzip/lzip.html
Source: http://download.savannah.gnu.org/releases/lzip/%name-%version.tar.gz
Source2: http://download.savannah.gnu.org/releases/lzip/%name-%version.tar.gz.sig
Source3: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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 DESTDIR="%buildroot"
install -D -m0644 doc/lzip.1 "%buildroot/%_mandir/man1/lzip.1"
%check
make 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
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/lzip
%doc %{_infodir}/lzip.info%{ext_info}
%doc %{_mandir}/man1/lzip.1%{ext_man}
%changelog