2012-04-03 16:21:51 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2014-10-01 11:49:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package lziprecover
|
|
|
|
#
|
2016-11-21 00:42:13 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-04-03 16:21:51 +00:00
|
|
|
# Copyright (c) 2012 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.
|
|
|
|
|
2014-10-01 11:49:05 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: lziprecover
|
2016-11-21 00:42:13 +00:00
|
|
|
Version: 1.18
|
2014-10-01 11:49:05 +00:00
|
|
|
Release: 0
|
2016-11-21 00:42:13 +00:00
|
|
|
Summary: Utility to repair broken lzip files
|
2014-10-01 11:49:05 +00:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
Url: http://www.nongnu.org/lzip/lunzip.html
|
|
|
|
|
|
|
|
Source: http://download.savannah.gnu.org/releases/lzip/lziprecover/%name-%version.tar.gz
|
|
|
|
Source2: http://download.savannah.gnu.org/releases/lzip/lziprecover/%name-%version.tar.gz.sig
|
|
|
|
Source3: %name.keyring
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: gcc-c++
|
2012-04-03 16:21:51 +00:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
|
|
|
|
|
|
|
%description
|
2013-06-11 12:44:01 +00:00
|
|
|
Lziprecover is a data recovery tool and decompressor for files in the
|
|
|
|
lzip compressed data format (.lz) able to repair slightly damaged
|
|
|
|
files, recover badly damaged files from two or more copies, extract
|
|
|
|
undamaged members from multi-member files, decompress files and test
|
|
|
|
integrity of files.
|
2012-04-03 16:21:51 +00:00
|
|
|
|
2013-06-11 12:44:01 +00:00
|
|
|
Lziprecover is able to recover or decompress files produced by any of
|
|
|
|
the compressors in the lzip family; lzip, plzip, minilzip/lzlib,
|
|
|
|
clzip and pdlzip. This recovery capability contributes to make the
|
|
|
|
lzip format one of the best options for long-term data archiving.
|
2012-04-03 16:21:51 +00:00
|
|
|
|
2013-06-11 12:44:01 +00:00
|
|
|
Lziprecover is able to efficiently extract a range of bytes from a
|
|
|
|
multi-member file, because it only decompresses the members
|
|
|
|
containing the desired data.
|
2012-04-03 16:21:51 +00:00
|
|
|
|
2013-06-11 12:44:01 +00:00
|
|
|
Lziprecover can print correct total file sizes and ratios even for
|
|
|
|
multi-member files.
|
2012-04-03 16:21:51 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
# not autoconf
|
|
|
|
%__install -d build
|
|
|
|
pushd build
|
|
|
|
../configure \
|
|
|
|
--srcdir=.. \
|
|
|
|
--prefix="%{_prefix}" \
|
|
|
|
--bindir="%{_bindir}" \
|
|
|
|
--datarootdir="%{_datadir}" \
|
|
|
|
--infodir="%{_infodir}" \
|
|
|
|
--mandir="%{_mandir}" \
|
|
|
|
CC="%__cc" \
|
|
|
|
CFLAGS="%{optflags}"
|
|
|
|
|
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build
|
2013-06-11 12:44:01 +00:00
|
|
|
make install DESTDIR="%buildroot"
|
2012-04-03 16:21:51 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}".info*
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/%{name}".info*
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
|
|
%{_bindir}/lziprecover
|
|
|
|
%doc %{_mandir}/man1/lziprecover.1*
|
|
|
|
%doc %{_infodir}/lziprecover.info*
|
|
|
|
|
|
|
|
%changelog
|