2011-05-23 18:09:19 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2013-10-02 01:11:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package clzip
|
|
|
|
#
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-04-01 15:04:56 +00:00
|
|
|
# Copyright (c) 2011-2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
2012-03-29 18:59:20 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-05-23 18:09:19 +00:00
|
|
|
|
2012-03-29 18:59:20 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2013-10-02 01:11:51 +00:00
|
|
|
#
|
|
|
|
|
2012-03-29 18:59:20 +00:00
|
|
|
|
|
|
|
Name: clzip
|
2013-10-02 01:11:51 +00:00
|
|
|
Version: 1.5
|
2012-03-29 18:59:20 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Lossless Data Compressor based on LZMA
|
|
|
|
License: GPL-3.0+
|
2013-10-02 01:11:51 +00:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
Url: http://www.nongnu.org/lzip/clzip.html
|
2013-06-10 11:36:57 +00:00
|
|
|
|
|
|
|
#Freecode-URL: http://freecode.com/projects/clzip
|
2013-10-02 01:11:51 +00:00
|
|
|
Source: http://download.savannah.gnu.org/releases/lzip/%name-%version.tar.lz
|
|
|
|
Source2: http://download.savannah.gnu.org/releases/lzip/%name-%version.tar.lz.sig
|
|
|
|
Source3: %name.keyring
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: lzip
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pkgconfig
|
2013-06-10 11:36:57 +00:00
|
|
|
%if 0%{?suse_version} >= 1230
|
2013-10-02 01:11:51 +00:00
|
|
|
BuildRequires: gpg-offline
|
2013-06-10 11:36:57 +00:00
|
|
|
%endif
|
2012-03-29 18:59:20 +00:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun):info
|
2011-05-23 18:09:19 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-10 11:36:57 +00:00
|
|
|
Clzip is a lossless data compressor based on the LZMA algorithm, with
|
|
|
|
very safe integrity checking and a user interface similar to that of
|
|
|
|
gzip or bzip2. Clzip decompresses almost as fast as gzip and
|
|
|
|
compresses better than bzip2, which makes it well suited for software
|
|
|
|
distribution and data archiving. Clzip uses the lzip file format; the
|
|
|
|
files produced by clzip are fully compatible with lzip-1.4 or newer.
|
|
|
|
Clzip is, in fact, a C language implementation of lzip, intended for
|
|
|
|
embedded devices or systems lacking a C++ compiler.
|
2011-05-23 18:09:19 +00:00
|
|
|
|
|
|
|
%prep
|
2013-06-10 11:36:57 +00:00
|
|
|
%{?gpg_verify: %gpg_verify %{S:2}}
|
|
|
|
%if 0%{?__lzip:1}
|
2011-05-23 18:09:19 +00:00
|
|
|
%setup -q
|
2013-06-10 11:36:57 +00:00
|
|
|
%else
|
|
|
|
tar --use=lzip -xf "%{S:0}"
|
|
|
|
%setup -DTq
|
|
|
|
%endif
|
2011-05-23 18:09:19 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# not autoconf
|
|
|
|
./configure \
|
|
|
|
--srcdir=. \
|
|
|
|
--prefix="%{_prefix}" \
|
|
|
|
--bindir="%{_bindir}" \
|
|
|
|
--datadir="%{_datadir}" \
|
|
|
|
--infodir="%{_infodir}" \
|
|
|
|
--mandir="%{_mandir}" \
|
|
|
|
--sysconfdir="%{_sysconfdir}" \
|
|
|
|
CC="%__cc" \
|
|
|
|
CFLAGS="%{optflags}"
|
|
|
|
|
|
|
|
%__make %{?_smp_flags}
|
|
|
|
|
|
|
|
%install
|
2013-06-10 11:36:57 +00:00
|
|
|
make install DESTDIR="%buildroot"
|
2011-05-23 18:09:19 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir="%{_infodir}" "%{_infodir}/clzip.info%{ext_info}"
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/clzip.info%{ext_info}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
|
|
%{_bindir}/clzip
|
|
|
|
%doc %{_mandir}/man1/clzip.1%{ext_man}
|
|
|
|
%doc %{_infodir}/clzip.info%{ext_info}
|
|
|
|
|
2012-03-29 18:59:20 +00:00
|
|
|
%changelog
|