SHA256
1
0
forked from pool/lz4
lz4/lz4.spec
2013-11-26 04:03:34 +00:00

103 lines
2.9 KiB
RPMSpec

#
# spec file for package lz4
#
# 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
# 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: lz4
%define lname liblz4-0s108
Version: 1.4+svn108
Release: 0
Summary: Hash-based Predictive Lempel-Ziv compressor
License: GPL-2.0+ and BSD-2-Clause
Group: Productivity/Archiving/Compression
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: %name-svn108.tar.xz
Patch1: lz4-automake.diff
Patch2: lz4-killdate.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool >= 2
BuildRequires: xz
%description
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 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 -n liblz4-devel
Summary: Development files for the LZ4 compressor
License: BSD-2-Clause
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description -n liblz4-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 trunk
%patch -P 1 -P 2 -p1
%build
autoreconf -fi;
%configure
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
rm -f "%_bindir"/lz4
%files
%defattr(-,root,root)
%_bindir/lz4c
%_mandir/man1/lz4.1*
%files -n %lname
%defattr(-,root,root)
%_libdir/liblz4-*.so
%files -n liblz4-devel
%defattr(-,root,root)
%_includedir/lz4*.h
%_libdir/liblz4.so
%changelog