File lzip.spec of Package lzip
# vim: set sw=4 ts=4 et nu:
# 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.14
Release: 1
Summary: Lossless Data Compressor based on the LZMA Algorithm
Source: http://mirrors.zerg.biz/nongnu/lzip/lzip-%{version}.tar.gz
URL: http://www.nongnu.org/lzip/lzip.html
Group: Productivity/Archiving/Compression
License: GPL-3.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc-c++ libstdc++-devel make glibc-devel
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.
%debug_package
%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
%makeinstall
%__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}
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%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