2012-03-18 19:08:42 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package lz4
|
|
|
|
|
#
|
2019-06-08 21:50:47 +02:00
|
|
|
|
# Copyright (c) 2019 SUSE LINUX 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.
|
|
|
|
|
|
2019-06-08 21:50:47 +02:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-18 19:08:42 +01:00
|
|
|
|
#
|
2013-09-03 18:51:56 +02:00
|
|
|
|
|
|
|
|
|
|
2017-07-06 01:54:59 +02:00
|
|
|
|
%define lname liblz4-1
|
Accepting request 573568 from home:avindra
- Update to new upstream release 1.8.1.2
* Most visible new feature is support for dictionary compression
* Support is now more formally added on the API side within
lib/lz4frame_static.h. It's early days, and this new API is
tagged "experimental" for the time being.
* Support is also added in the command line utility lz4, using
the new command -D. The behavior of this command is identical
to zstd, should you be already familiar.
* lz4 doesn't specify how to build a dictionary. All it says is
that it can be any file up to 64 KB.
* This approach is compatible with zstd dictionary builder, which
can be instructed to create a 64 KB dictionary.
* Improved performance at ultra settings (levels 10+).
* These levels receive a new code, called optimal parser,
available in lib/lz4_opt.h.
* New parser uses less memory (from 384KB to 256KB), performs
faster, compresses a little bit better (not much, as it was
already close to theoretical limit), and resists pathological
patterns which could destroy performance.
* New parser is directly compatible with lower compression levels,
which brings additional benefits:
+ Compatibility with LZ4_*_destSize() variant, which reverses
the logic by trying to fit as much data as possible into a
predefined limited size buffer.
+ Compatibility with Dictionary compression, as it uses the
same tables as regular HC mode
* In the future, this compatibility will also allow dynamic change
of compression level.
* Small set of bug fixes and improvements:
+ perf : faster and stronger ultra modes (levels 10+)
+ perf : slightly faster compression and decompression speed
+ perf : fix bad degenerative case
+ fix : decompression failed when using a combination of
extDict + low memory address
+ cli : support for dictionary compression (-D)
+ cli : fix : lz4 -d --rm preserves timestamp
+ cli : fix : do not modify /dev/null permission as root
+ api : _destSize() variant supported for all compression
levels
+ build : make and make test compatible with parallel build -jX
+ build : can control LZ4LIB_VISIBILITY macro
+ install: fix man page directory
- partial cleanup with spec-cleaner
- rebase lz4-use-shlib.diff
- drop lz4-use-shlib.diff, breaks build
- misc spec cleanups
- remove Makefile fix
- build and install separately
- New URL
OBS-URL: https://build.opensuse.org/request/show/573568
OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=34
2018-02-07 14:33:33 +01:00
|
|
|
|
Name: lz4
|
2019-10-16 09:15:49 +02:00
|
|
|
|
Version: 1.9.2
|
2012-03-18 19:08:42 +01:00
|
|
|
|
Release: 0
|
2016-04-02 21:30:27 +02:00
|
|
|
|
Summary: Hash-based Predictive Lempel–Ziv compressor
|
2018-06-29 23:50:31 +02:00
|
|
|
|
License: GPL-2.0-or-later AND BSD-2-Clause
|
2012-03-18 19:08:42 +01:00
|
|
|
|
Group: Productivity/Archiving/Compression
|
Accepting request 573568 from home:avindra
- Update to new upstream release 1.8.1.2
* Most visible new feature is support for dictionary compression
* Support is now more formally added on the API side within
lib/lz4frame_static.h. It's early days, and this new API is
tagged "experimental" for the time being.
* Support is also added in the command line utility lz4, using
the new command -D. The behavior of this command is identical
to zstd, should you be already familiar.
* lz4 doesn't specify how to build a dictionary. All it says is
that it can be any file up to 64 KB.
* This approach is compatible with zstd dictionary builder, which
can be instructed to create a 64 KB dictionary.
* Improved performance at ultra settings (levels 10+).
* These levels receive a new code, called optimal parser,
available in lib/lz4_opt.h.
* New parser uses less memory (from 384KB to 256KB), performs
faster, compresses a little bit better (not much, as it was
already close to theoretical limit), and resists pathological
patterns which could destroy performance.
* New parser is directly compatible with lower compression levels,
which brings additional benefits:
+ Compatibility with LZ4_*_destSize() variant, which reverses
the logic by trying to fit as much data as possible into a
predefined limited size buffer.
+ Compatibility with Dictionary compression, as it uses the
same tables as regular HC mode
* In the future, this compatibility will also allow dynamic change
of compression level.
* Small set of bug fixes and improvements:
+ perf : faster and stronger ultra modes (levels 10+)
+ perf : slightly faster compression and decompression speed
+ perf : fix bad degenerative case
+ fix : decompression failed when using a combination of
extDict + low memory address
+ cli : support for dictionary compression (-D)
+ cli : fix : lz4 -d --rm preserves timestamp
+ cli : fix : do not modify /dev/null permission as root
+ api : _destSize() variant supported for all compression
levels
+ build : make and make test compatible with parallel build -jX
+ build : can control LZ4LIB_VISIBILITY macro
+ install: fix man page directory
- partial cleanup with spec-cleaner
- rebase lz4-use-shlib.diff
- drop lz4-use-shlib.diff, breaks build
- misc spec cleanups
- remove Makefile fix
- build and install separately
- New URL
OBS-URL: https://build.opensuse.org/request/show/573568
OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=34
2018-02-07 14:33:33 +01:00
|
|
|
|
Url: https://lz4.github.io/lz4/
|
2016-04-02 21:30:27 +02:00
|
|
|
|
|
2017-08-25 16:19:22 +02:00
|
|
|
|
#Git-Clone: https://github.com/lz4/lz4
|
2019-06-08 21:50:47 +02:00
|
|
|
|
Source: https://github.com/lz4/lz4/archive/v%version.tar.gz#/%name-%version.tar.gz
|
2017-01-16 09:58:06 +01:00
|
|
|
|
Source99: baselibs.conf
|
2017-08-25 16:19:22 +02:00
|
|
|
|
Patch2: lz-export.diff
|
Accepting request 573568 from home:avindra
- Update to new upstream release 1.8.1.2
* Most visible new feature is support for dictionary compression
* Support is now more formally added on the API side within
lib/lz4frame_static.h. It's early days, and this new API is
tagged "experimental" for the time being.
* Support is also added in the command line utility lz4, using
the new command -D. The behavior of this command is identical
to zstd, should you be already familiar.
* lz4 doesn't specify how to build a dictionary. All it says is
that it can be any file up to 64 KB.
* This approach is compatible with zstd dictionary builder, which
can be instructed to create a 64 KB dictionary.
* Improved performance at ultra settings (levels 10+).
* These levels receive a new code, called optimal parser,
available in lib/lz4_opt.h.
* New parser uses less memory (from 384KB to 256KB), performs
faster, compresses a little bit better (not much, as it was
already close to theoretical limit), and resists pathological
patterns which could destroy performance.
* New parser is directly compatible with lower compression levels,
which brings additional benefits:
+ Compatibility with LZ4_*_destSize() variant, which reverses
the logic by trying to fit as much data as possible into a
predefined limited size buffer.
+ Compatibility with Dictionary compression, as it uses the
same tables as regular HC mode
* In the future, this compatibility will also allow dynamic change
of compression level.
* Small set of bug fixes and improvements:
+ perf : faster and stronger ultra modes (levels 10+)
+ perf : slightly faster compression and decompression speed
+ perf : fix bad degenerative case
+ fix : decompression failed when using a combination of
extDict + low memory address
+ cli : support for dictionary compression (-D)
+ cli : fix : lz4 -d --rm preserves timestamp
+ cli : fix : do not modify /dev/null permission as root
+ api : _destSize() variant supported for all compression
levels
+ build : make and make test compatible with parallel build -jX
+ build : can control LZ4LIB_VISIBILITY macro
+ install: fix man page directory
- partial cleanup with spec-cleaner
- rebase lz4-use-shlib.diff
- drop lz4-use-shlib.diff, breaks build
- misc spec cleanups
- remove Makefile fix
- build and install separately
- New URL
OBS-URL: https://build.opensuse.org/request/show/573568
OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=34
2018-02-07 14:33:33 +01:00
|
|
|
|
BuildRequires: pkgconfig
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
|
|
%description
|
2016-04-02 21:30:27 +02:00
|
|
|
|
LZ4 is a lossless data compression algorithm that is focused on
|
|
|
|
|
compression and decompression speed. It belongs to the LZ77
|
|
|
|
|
(Lempel–Ziv) family of byte-oriented compression schemes. It is a
|
|
|
|
|
LZP2 fork and provides better compression ratio for text files.
|
2013-09-03 18:51:56 +02:00
|
|
|
|
|
|
|
|
|
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
|
2016-04-02 21:30:27 +02:00
|
|
|
|
LZ4 is a lossless data compression algorithm that is focused on
|
|
|
|
|
compression and decompression speed. It belongs to the LZ77
|
|
|
|
|
(Lempel–Ziv) family of byte-oriented compression schemes. It is a
|
2013-09-03 18:51:56 +02:00
|
|
|
|
|
|
|
|
|
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
|
2016-04-02 21:30:27 +02:00
|
|
|
|
LZ4 is a lossless data compression algorithm that is focused on
|
|
|
|
|
compression and decompression speed. It belongs to the LZ77
|
|
|
|
|
(Lempel–Ziv) family of byte-oriented compression schemes. It is a
|
2013-09-03 18:51:56 +02:00
|
|
|
|
|
|
|
|
|
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
|
2017-07-06 01:54:59 +02:00
|
|
|
|
%setup -q
|
Accepting request 573568 from home:avindra
- Update to new upstream release 1.8.1.2
* Most visible new feature is support for dictionary compression
* Support is now more formally added on the API side within
lib/lz4frame_static.h. It's early days, and this new API is
tagged "experimental" for the time being.
* Support is also added in the command line utility lz4, using
the new command -D. The behavior of this command is identical
to zstd, should you be already familiar.
* lz4 doesn't specify how to build a dictionary. All it says is
that it can be any file up to 64 KB.
* This approach is compatible with zstd dictionary builder, which
can be instructed to create a 64 KB dictionary.
* Improved performance at ultra settings (levels 10+).
* These levels receive a new code, called optimal parser,
available in lib/lz4_opt.h.
* New parser uses less memory (from 384KB to 256KB), performs
faster, compresses a little bit better (not much, as it was
already close to theoretical limit), and resists pathological
patterns which could destroy performance.
* New parser is directly compatible with lower compression levels,
which brings additional benefits:
+ Compatibility with LZ4_*_destSize() variant, which reverses
the logic by trying to fit as much data as possible into a
predefined limited size buffer.
+ Compatibility with Dictionary compression, as it uses the
same tables as regular HC mode
* In the future, this compatibility will also allow dynamic change
of compression level.
* Small set of bug fixes and improvements:
+ perf : faster and stronger ultra modes (levels 10+)
+ perf : slightly faster compression and decompression speed
+ perf : fix bad degenerative case
+ fix : decompression failed when using a combination of
extDict + low memory address
+ cli : support for dictionary compression (-D)
+ cli : fix : lz4 -d --rm preserves timestamp
+ cli : fix : do not modify /dev/null permission as root
+ api : _destSize() variant supported for all compression
levels
+ build : make and make test compatible with parallel build -jX
+ build : can control LZ4LIB_VISIBILITY macro
+ install: fix man page directory
- partial cleanup with spec-cleaner
- rebase lz4-use-shlib.diff
- drop lz4-use-shlib.diff, breaks build
- misc spec cleanups
- remove Makefile fix
- build and install separately
- New URL
OBS-URL: https://build.opensuse.org/request/show/573568
OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=34
2018-02-07 14:33:33 +01:00
|
|
|
|
%patch -P 2 -p1
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2019-10-16 14:10:24 +02:00
|
|
|
|
V=1 make %{?_smp_mflags} CFLAGS="%optflags"
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
|
|
%install
|
Accepting request 573568 from home:avindra
- Update to new upstream release 1.8.1.2
* Most visible new feature is support for dictionary compression
* Support is now more formally added on the API side within
lib/lz4frame_static.h. It's early days, and this new API is
tagged "experimental" for the time being.
* Support is also added in the command line utility lz4, using
the new command -D. The behavior of this command is identical
to zstd, should you be already familiar.
* lz4 doesn't specify how to build a dictionary. All it says is
that it can be any file up to 64 KB.
* This approach is compatible with zstd dictionary builder, which
can be instructed to create a 64 KB dictionary.
* Improved performance at ultra settings (levels 10+).
* These levels receive a new code, called optimal parser,
available in lib/lz4_opt.h.
* New parser uses less memory (from 384KB to 256KB), performs
faster, compresses a little bit better (not much, as it was
already close to theoretical limit), and resists pathological
patterns which could destroy performance.
* New parser is directly compatible with lower compression levels,
which brings additional benefits:
+ Compatibility with LZ4_*_destSize() variant, which reverses
the logic by trying to fit as much data as possible into a
predefined limited size buffer.
+ Compatibility with Dictionary compression, as it uses the
same tables as regular HC mode
* In the future, this compatibility will also allow dynamic change
of compression level.
* Small set of bug fixes and improvements:
+ perf : faster and stronger ultra modes (levels 10+)
+ perf : slightly faster compression and decompression speed
+ perf : fix bad degenerative case
+ fix : decompression failed when using a combination of
extDict + low memory address
+ cli : support for dictionary compression (-D)
+ cli : fix : lz4 -d --rm preserves timestamp
+ cli : fix : do not modify /dev/null permission as root
+ api : _destSize() variant supported for all compression
levels
+ build : make and make test compatible with parallel build -jX
+ build : can control LZ4LIB_VISIBILITY macro
+ install: fix man page directory
- partial cleanup with spec-cleaner
- rebase lz4-use-shlib.diff
- drop lz4-use-shlib.diff, breaks build
- misc spec cleanups
- remove Makefile fix
- build and install separately
- New URL
OBS-URL: https://build.opensuse.org/request/show/573568
OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=34
2018-02-07 14:33:33 +01:00
|
|
|
|
%make_install PREFIX="%_prefix" LIBDIR="%_libdir"
|
2014-07-16 16:37:16 +02:00
|
|
|
|
rm -f "%buildroot/%_libdir"/*.a
|
|
|
|
|
|
2016-04-03 01:45:52 +02:00
|
|
|
|
%check
|
|
|
|
|
LD_LIBRARY_PATH="%buildroot/%_libdir" ldd -r "%buildroot/%_bindir/lz4"
|
2019-10-16 14:10:24 +02:00
|
|
|
|
make %{?_smp_mflags} check
|
2016-04-03 01:45:52 +02:00
|
|
|
|
|
2014-07-16 16:37:16 +02:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2012-03-18 19:08:42 +01:00
|
|
|
|
|
|
|
|
|
%files
|
2014-07-16 16:37:16 +02:00
|
|
|
|
%_bindir/lz4*
|
2016-04-02 21:30:27 +02:00
|
|
|
|
%_bindir/unlz4
|
2014-07-16 16:37:16 +02:00
|
|
|
|
%_mandir/man1/*.1*
|
2013-09-03 18:51:56 +02:00
|
|
|
|
|
|
|
|
|
%files -n %lname
|
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
|
|
|
|
%_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
|