SHA256
1
0
forked from pool/plzip
plzip/plzip.spec
Dr. Werner Fink b7224486dc Accepting request 177837 from home:jengelh:branches:Archiving
- Update to new upstream release 1.0
* Scalability of compression (max number of useful worker threads)
  has been increased. Scalability when decompressing from/to
  regular files has been increased.
* The number of worker threads is now limited to the number of
  members in the input file when decompressing from a regular file.
- Do signature verification
- Wrap description at 70 cols
- Remove redundant %clean section

OBS-URL: https://build.opensuse.org/request/show/177837
OBS-URL: https://build.opensuse.org/package/show/Archiving/plzip?expand=0&rev=7
2013-06-07 21:26:12 +00:00

93 lines
2.9 KiB
RPMSpec

# vim: set ts=4 sw=4 et:
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: plzip
Version: 1.0
Release: 0
Summary: Parallel LZMA Data Compressor
URL: http://www.nongnu.org/lzip/plzip.html
Group: Productivity/Archiving/Compression
License: GPL-3.0+
#Freecode-URL: http://freecode.com/projects/plzip
Source: http://download-mirror.savannah.gnu.org/releases/lzip/%name-%version.tar.lz
Source2: http://download-mirror.savannah.gnu.org/releases/lzip/%name-%version.tar.lz.sig
Source3: %name.keyring
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: lzlib-devel lzip
BuildRequires: gcc-c++ libstdc++-devel make glibc-devel
%if 0%{?suse_version} >= 1230
BuildRequires: gpg-offline
%endif
PreReq: %install_info_prereq
%description
Plzip is a parallel version of the lzip data compressor. The files
produced by plzip are fully compatible with lzip-1.4 or newer. Plzip
is intended for faster compression/decompression of big files on
multiprocessor machines.
Lzip is a lossless data compressor based on the LZMA algorithm, with
very safe integrity checking and a user interface similar to the one
of gzip or bzip2. Lzip decompresses almost as fast as gzip and
compresses better than bzip2, which makes it well suited for software
distribution and data archiving.
%prep
%{?gpg_verify: %gpg_verify %{S:2}}
%if 0%{?__lzip:1}
%setup -q
%else
tar --use=lzip -xf "%{S:0}"
%setup -DTq
%endif
%build
./configure \
--prefix="%{_prefix}" \
--bindir="%{_bindir}" \
--datadir="%{_datadir}" \
--includedir="%{_includedir}" \
--infodir="%{_infodir}" \
--libdir="%{_libdir}" \
--mandir="%{_mandir}" \
--sysconfdir="%{_sysconfdir}" \
--enable-shared \
CXX="%__cxx" \
CPPFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}"
%__make %{?_smp_flags}
%install
%__make DESTDIR="%{buildroot}" LDCONFIG=echo install
%check
%__make check
%post
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}".info%{ext_info}
%postun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/%{name}".info%{ext_info}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/plzip
%doc %{_infodir}/plzip.info%{ext_info}
%doc %{_mandir}/man1/plzip.1%{ext_man}
%changelog