Sisyphus repository
Last update: 18 october 2017 | SRPMs: 17939 | Visits: 10190160
en ru br
ALT Linux repos
S:1.7.5-alt1

Group :: Archiving/Compression
RPM: lz4

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define sover 1
%def_enable static

Name: lz4
Version: r131
Release: alt1
Summary: Extremely Fast Compression algorithm
License: BSD
Group: Archiving/Compression
Url: http://www.lz4.org

# https://github.com/Cyan4973/lz4

Source: %name-%version.tar

BuildRequires(pre): rpm-macros-make

Requires: lib%name = %EVR

%description
LZ4 is a very fast lossless compression algorithm, providing compression
speed at 400 MB/s per core, scalable with multi-cores CPU. It also
features an extremely fast decoder, with speed in multiple GB/s per
core, typically reaching RAM speed limits on multi-core systems.

A high compression derivative, called LZ4_HC, is also provided. It
trades CPU time for compression ratio.

%package -n lib%name
Summary: Shared libraries of LZ4
Group: System/Libraries

%description -n lib%name
LZ4 is a very fast lossless compression algorithm, providing compression
speed at 400 MB/s per core, scalable with multi-cores CPU. It also
features an extremely fast decoder, with speed in multiple GB/s per
core, typically reaching RAM speed limits on multi-core systems.

A high compression derivative, called LZ4_HC, is also provided. It
trades CPU time for compression ratio.

This package contains shared libraries of LZ4.

%package -n lib%name-devel
Summary: Development files of LZ4
Group: Development/C
Requires: lib%name = %EVR

%description -n lib%name-devel
LZ4 is a very fast lossless compression algorithm, providing compression
speed at 400 MB/s per core, scalable with multi-cores CPU. It also
features an extremely fast decoder, with speed in multiple GB/s per
core, typically reaching RAM speed limits on multi-core systems.

A high compression derivative, called LZ4_HC, is also provided. It
trades CPU time for compression ratio.

This package contains development files of LZ4.

%package -n lib%name-devel-static
Summary: Development files of LZ4
Group: Development/C
Requires: lib%name-devel = %EVR

%description -n lib%name-devel-static
LZ4 is a very fast lossless compression algorithm, providing compression
speed at 400 MB/s per core, scalable with multi-cores CPU. It also
features an extremely fast decoder, with speed in multiple GB/s per
core, typically reaching RAM speed limits on multi-core systems.

A high compression derivative, called LZ4_HC, is also provided. It
trades CPU time for compression ratio.

This package contains static library files of LZ4.

%prep
%setup

%build
%make_build_ext lib
%make_build_ext

%install
%ifarch x86_64
LIB_SUFFIX=64
%endif
%makeinstall_std LIBDIR=%_libdir PREFIX=%_prefix

# Relocate shared libraries from %_libdir/ to /lib/.

mkdir -p %buildroot/%_lib
for f in %buildroot%_libdir/*.so; do
t=$(readlink "$f") || continue
ln -snf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/*.so.* %buildroot/%_lib/

%files
%doc NEWS README.md
%_bindir/*
%_man1dir/*

%files -n lib%name
/%_lib/*.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%else
%exclude %_libdir/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin