2017-04-14 09:43:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package lzma-sdk
|
|
|
|
#
|
2024-04-30 13:04:38 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-04-14 09:43:12 +02: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.
|
|
|
|
|
2018-12-30 11:17:51 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-14 09:43:12 +02:00
|
|
|
#
|
|
|
|
|
2018-01-09 12:12:06 +01:00
|
|
|
|
2024-04-30 13:04:38 +02:00
|
|
|
%define _sver 2301
|
|
|
|
%define _maver 23
|
2023-03-15 16:08:47 +01:00
|
|
|
%define _miver 01
|
2017-04-14 09:43:12 +02:00
|
|
|
Name: lzma-sdk
|
2024-04-30 13:04:38 +02:00
|
|
|
Version: 23.01
|
2017-04-14 09:43:12 +02:00
|
|
|
Release: 0
|
2017-05-16 17:56:24 +02:00
|
|
|
Summary: An implementation of LZMA compression
|
2017-04-14 09:43:12 +02:00
|
|
|
# Actually the site says "Public Domain". See license file.
|
2018-06-11 14:56:40 +02:00
|
|
|
License: LGPL-2.1-only
|
2017-04-14 09:43:12 +02:00
|
|
|
Group: Productivity/Archiving/Compression
|
Accepting request 934524 from home:alois:branches:Archiving
- Update to version 21.06
* Bug in LZMA encoder in file LzmaEnc.c was fixed:
LzmaEnc_MemEncode(), LzmaEncode() and LzmaCompress() could
work incorrectly, if size value for output buffer is smaller
than size required for all compressed data. LzmaEnc_Encode()
could work incorrectly, if callback ISeqOutStream::Write()
doesn't write all compressed data.
NCompress::NLzma::CEncoder::Code() could work incorrectly,
if callback ISequentialOutStream::Write() returns error
code.
* Bug in versions 21.00-21.05 was fixed:
7-Zip didn't set attributes of directories during archive
extracting.
version 21.04 beta:
* 7-Zip now reduces the number of working CPU threads for
compression, if RAM size is not enough for compression with
big LZMA2 dictionary.
* 7-Zip now can create and check "file.sha256" text files that
contain the list of file names and SHA-256 checksums in
format compatible with sha256sum program.
version 21.03 beta:
* The maximum dictionary size for LZMA/LZMA2 compressing was
increased to 4 GB (3840 MiB).
* Minor speed optimizations in LZMA/LZMA2 compressing.
version 21.02 alpha:
* The speed for LZMA and LZMA2 decompression in arm64 versions
was increased by 20%-60%.
version 21.01 alpha:
* The improvements for speed of ARM64 version using hardware
CPU instructions for AES, CRC-32, SHA-1 and SHA-256.
* Some bugs were fixed.
version 20.02 alpha:
* The default number of LZMA2 chunks per solid block in 7z
archive was increased to 64. It allows to increase the
compression speed for big 7z archives, if there is a big
number of CPU cores and threads.
* The speed of PPMd compressing/decompressing was increased
for 7z archives.
* The new -ssp switch. If the switch -ssp is specified, 7-Zip
doesn't allow the system to modify "Last Access Time"
property of source files for archiving and hashing operations.
* Some bugs were fixed.
version 20.00 alpha;
* 7-Zip now supports new optional match finders for LZMA/LZMA2
compression: bt5 and hc5, that can work faster than bt4 and
hc4 match finders for the data with big redundancy.
* The compression ratio was improved for Fast and Fastest
compression levels with the following default settings:
+ Fastest level (-mx1) : hc5 match finder with 256 KB
dictionary.
+ Fast level (-mx3) : hc5 match finder with 4 MB
dictionary.
* Minor speed optimizations in multithreaded LZMA/LZMA2
compression for Normal/Maximum/Ultra compression levels.
OBS-URL: https://build.opensuse.org/request/show/934524
OBS-URL: https://build.opensuse.org/package/show/Archiving/lzma-sdk?expand=0&rev=20
2021-11-29 12:40:58 +01:00
|
|
|
URL: https://www.7-zip.org/sdk.html
|
2024-04-30 23:52:48 +02:00
|
|
|
Source0: https://www.7-zip.org/a/lzma%_sver.7z
|
2017-04-14 09:43:12 +02:00
|
|
|
Source1: lzma-sdk-LICENSE.fedora
|
2023-03-10 15:45:06 +01:00
|
|
|
Source2: baselibs.conf
|
2018-01-09 12:12:06 +01:00
|
|
|
Patch1: lzma-sdk-shlib.patch
|
2024-05-01 00:53:58 +02:00
|
|
|
Patch2: lzma-simd.patch
|
2018-01-09 12:12:06 +01:00
|
|
|
BuildRequires: automake
|
2017-04-14 09:43:12 +02:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2018-01-09 12:12:06 +01:00
|
|
|
BuildRequires: libtool
|
2018-06-11 14:56:40 +02:00
|
|
|
BuildRequires: p7zip-full
|
2017-04-14 09:43:12 +02:00
|
|
|
BuildRequires: pkg-config
|
2023-03-10 15:45:06 +01:00
|
|
|
%{?suse_build_hwcaps_libs}
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%description
|
2017-05-16 17:56:24 +02:00
|
|
|
LZMA SDK provides documentation, samples, header files, libraries,
|
|
|
|
and tools for developing applications with LZMA support.
|
2017-04-14 09:43:12 +02:00
|
|
|
|
2017-05-16 17:56:24 +02:00
|
|
|
LZMA uses a dictionary compression algorithm (a variant of LZ77, with
|
|
|
|
huge dictionary sizes and special support for repeatedly used match
|
|
|
|
distances), whose output is then encoded with a range encoder, using
|
|
|
|
a model to make a probability prediction of each bit.
|
|
|
|
LZMA yields around 20%% better compression when operating at approximately
|
|
|
|
zlib's speed, and around 40%% when trading more time.
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%package devel
|
2024-04-30 23:52:48 +02:00
|
|
|
Summary: Development libraries and headers for %name
|
2017-04-14 09:43:12 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2024-04-30 23:52:48 +02:00
|
|
|
Requires: libclzma-suse1 = %version
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%description devel
|
2024-04-30 23:52:48 +02:00
|
|
|
This package contains development libraries and headers for %name.
|
2017-04-14 09:43:12 +02:00
|
|
|
|
2024-04-30 23:52:48 +02:00
|
|
|
%package -n libclzma-suse1
|
2018-01-09 12:12:06 +01:00
|
|
|
Summary: LZMA stream encoding/decoding library from 7-Zip
|
|
|
|
Group: System/Libraries
|
2017-04-14 09:43:12 +02:00
|
|
|
|
2024-04-30 23:52:48 +02:00
|
|
|
%description -n libclzma-suse1
|
2018-01-09 12:12:06 +01:00
|
|
|
Library for encoding/decoding LZMA streams, using the 7-Zip library
|
|
|
|
implementation.
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%prep
|
2024-05-01 00:53:58 +02:00
|
|
|
%autosetup -c -n lzma%_sver -p1
|
2018-01-09 12:12:06 +01:00
|
|
|
perl -i -pe 's{AC_INIT.*}{AC_INIT([lzma-sdk], [%version])}' configure.ac
|
2017-04-14 09:43:12 +02:00
|
|
|
dos2unix DOC/*.txt
|
2024-04-30 23:52:48 +02:00
|
|
|
install -p -m 0644 %SOURCE1 .
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%build
|
2018-01-09 12:12:06 +01:00
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
2024-04-30 23:52:48 +02:00
|
|
|
%make_build
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%install
|
2018-01-09 12:12:06 +01:00
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
2024-04-30 23:52:48 +02:00
|
|
|
%ldconfig_scriptlets -n libclzma-suse1
|
2018-01-09 12:12:06 +01:00
|
|
|
|
2024-04-30 23:52:48 +02:00
|
|
|
%files -n libclzma-suse1
|
2018-12-30 11:17:51 +01:00
|
|
|
%license lzma-sdk-LICENSE.fedora
|
|
|
|
%doc DOC/lzma.txt DOC/lzma-history.txt
|
2024-04-30 23:52:48 +02:00
|
|
|
%_libdir/libclzma-suse.so.*
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%files devel
|
2018-12-30 11:17:51 +01:00
|
|
|
%license lzma-sdk-LICENSE.fedora
|
|
|
|
%doc DOC/7z*.txt DOC/Methods.txt
|
2024-04-30 23:52:48 +02:00
|
|
|
%_includedir/clzma/
|
|
|
|
%_libdir/libclzma.so
|
|
|
|
%_libdir/pkgconfig/clzma.pc
|
2017-04-14 09:43:12 +02:00
|
|
|
|
|
|
|
%changelog
|