2012-03-18 19:08:42 +01:00
|
|
|
#
|
|
|
|
# spec file for package lz4
|
|
|
|
#
|
2014-07-16 16:37:16 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-03-18 19:08:42 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2013-09-03 18:51:56 +02:00
|
|
|
|
|
|
|
|
2012-03-18 19:08:42 +01:00
|
|
|
Name: lz4
|
2014-11-28 20:13:39 +01:00
|
|
|
%define lname liblz4-1_4
|
|
|
|
Version: 1.4.0+svn124
|
2012-03-18 19:08:42 +01:00
|
|
|
Release: 0
|
2013-09-03 18:51:56 +02:00
|
|
|
Summary: Hash-based Predictive Lempel-Ziv compressor
|
|
|
|
License: GPL-2.0+ and BSD-2-Clause
|
2012-03-18 19:08:42 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
2013-09-03 18:51:56 +02:00
|
|
|
Url: http://code.google.com/p/lz4/
|
2012-03-18 19:08:42 +01:00
|
|
|
#URL: http://fastcompression.blogspot.com/p/lz4.html
|
|
|
|
|
|
|
|
#SVN-Clone: http://lz4.googlecode.com/svn/trunk
|
|
|
|
# Project offers no source tarballs.
|
2014-10-01 14:23:22 +02:00
|
|
|
Source: %name-%version.tar.xz
|
2014-07-16 16:42:40 +02:00
|
|
|
Patch1: lz4-use-shlib.diff
|
2013-09-03 18:51:56 +02:00
|
|
|
Patch2: lz4-killdate.diff
|
2014-11-28 20:13:39 +01:00
|
|
|
Patch3: lz4-soversion.diff
|
2012-03-18 19:08:42 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-01 14:23:22 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: xz
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
|
2013-09-03 18:51:56 +02:00
|
|
|
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.
|
|
|
|
|
2013-09-03 19:10:15 +02:00
|
|
|
%package -n liblz4-devel
|
2013-09-03 18:51:56 +02:00
|
|
|
Summary: Development files for the LZ4 compressor
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-09-03 19:10:15 +02:00
|
|
|
Requires: %lname = %version
|
2013-09-03 18:51:56 +02:00
|
|
|
|
2013-09-03 19:10:15 +02:00
|
|
|
%description -n liblz4-devel
|
2013-09-03 18:51:56 +02:00
|
|
|
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.
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
%prep
|
2013-09-03 18:51:56 +02:00
|
|
|
%setup -qn trunk
|
2014-11-28 20:13:39 +01:00
|
|
|
%patch -P 1 -P 2 -P 3 -p1
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
%build
|
2014-07-16 16:37:16 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%optflags"
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
%install
|
2014-07-16 16:37:16 +02:00
|
|
|
make install DESTDIR="%buildroot" LIBDIR="%_libdir"
|
|
|
|
rm -f "%buildroot/%_libdir"/*.a
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:37:16 +02:00
|
|
|
%_bindir/lz4*
|
|
|
|
%_mandir/man1/*.1*
|
2013-09-03 18:51:56 +02:00
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:37:16 +02:00
|
|
|
%_libdir/liblz4.so.1*
|
2013-09-03 18:51:56 +02:00
|
|
|
|
2013-09-03 19:10:15 +02:00
|
|
|
%files -n liblz4-devel
|
2013-09-03 18:51:56 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/lz4*.h
|
|
|
|
%_libdir/liblz4.so
|
2014-10-01 14:23:22 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
%changelog
|