2013-09-03 16:51:56 +00:00
committed by Git OBS Bridge
parent fe3bb6b9a5
commit 3c9187502e
6 changed files with 136 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package lz4
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -14,30 +14,65 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: lz4
Version: 1.2d+77
%define lname liblz4-0s102
Version: 1.3.3+svn102
Release: 0
Summary: Hash-based Predictive LZ compressor
Summary: Hash-based Predictive Lempel-Ziv compressor
License: GPL-2.0+ and BSD-2-Clause
Group: Productivity/Archiving/Compression
License: BSD-2-Clause
URL: http://code.google.com/p/lz4/
Url: http://code.google.com/p/lz4/
#URL: http://fastcompression.blogspot.com/p/lz4.html
#SVN-Clone: http://lz4.googlecode.com/svn/trunk
# Project offers no source tarballs.
Source: lz4-svn77.tar.xz
Source: %name-svn102.tar.xz
Patch1: lz4-automake.diff
Patch2: lz4-killdate.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf, automake, xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool >= 2
BuildRequires: xz
%description
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
algorithm. Originally a fork from LZP2, it provides better
compression ratio for text files.
algorithm. It is a LZP2 fork and provides better compression ratio
for text files.
This subpackage provides a GPL command-line utility to make use of
the LZ4 algorithm.
%package -n %lname
Summary: Hash-based predictive Lempel-Ziv compressor
License: BSD-2-Clause
Group: System/Libraries
%description -n %lname
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
algorithm. It is a LZP2 fork and provides better compression ratio
for text files.
This subpackage contains the (de)compressor code as a shared library.
%package devel
Summary: Development files for the LZ4 compressor
License: BSD-2-Clause
Group: Development/Libraries/C and C++
%description devel
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
algorithm. It is a LZP2 fork and provides better compression ratio
for text files.
This subpackage contains libraries and header files for developing
applications that want to make use of liblz4.
%prep
%setup -qn %name
%patch -P 1 -p1
%setup -qn trunk
%patch -P 1 -P 2 -p1
%build
autoreconf -fi;
@@ -46,9 +81,19 @@ make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
%files
%defattr(-,root,root)
%_bindir/lz4
%_bindir/lz4c
%files -n %lname
%defattr(-,root,root)
%_libdir/liblz4-*.so
%files devel
%defattr(-,root,root)
%_includedir/lz4*.h
%_libdir/liblz4.so
%changelog