SHA256
1
0
forked from pool/lzma-sdk

3 Commits

Author SHA256 Message Date
83d71a4ed0 Edit lzma-sdk-shlib.patch to produces the same libname as Fedora
Do away with libclzma.so and switch to liblzmasdk.so.
2025-08-24 15:06:48 +02:00
f28534e21b lzma-sdk 25.01 2025-08-05 16:11:23 +02:00
0424e73b8f lzma-sdk 24.09 2024-12-03 00:53:19 +01:00
6 changed files with 74 additions and 46 deletions

View File

@@ -1 +1 @@
libclzma-suse1 liblzmasdk25

View File

@@ -5,51 +5,57 @@ This exports most of LzmaLib (minus code that does not compile because it
requires too much Windows or Windows-like APIs) as a library for use by requires too much Windows or Windows-like APIs) as a library for use by
other packages. other packages.
There is a Fedora patch
<https://src.fedoraproject.org/rpms/lzma-sdk/tree/rawhide> to do something
similar, but lacks generation of a .pc file.
--- ---
Makefile.am | 11 +++++++++++ Makefile.am | 11 +++++++++++
clzma.pc.in | 10 ++++++++++ configure.ac | 9 +++++++++
configure.ac | 6 ++++++ lzma-sdk.pc.in | 10 ++++++++++
3 files changed, 27 insertions(+), 0 deletions(-) 3 files changed, 30 insertions(+)
Index: 1/Makefile.am Index: 7/Makefile.am
=================================================================== ===================================================================
--- /dev/null --- /dev/null
+++ 1/Makefile.am +++ 7/Makefile.am
@@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
+AM_CPPFLAGS = -D_7ZIP_ST -D_7ZIP_PPMD_SUPPPORT +AM_CPPFLAGS = -D_7ZIP_ST -D_7ZIP_PPMD_SUPPPORT
+lib_LTLIBRARIES = libclzma.la +lib_LTLIBRARIES = liblzmasdk.la
+pkgconfigdir = ${libdir}/pkgconfig +pkgconfigdir = ${libdir}/pkgconfig
+pkgconfig_DATA = clzma.pc +pkgconfig_DATA = lzma-sdk.pc
+# source list: C/Util/LzmaLib/makefile +# source list: C/Util/LzmaLib/makefile
+#lzma.dll = C/Alloc.c C/CpuArch.c C/LzFind.c C/LzFindMt.c C/LzFindOpt.c C/LzmaDec.c C/LzmaEnc.c C/LzmaLib.c C/Threads.c +#lzma.dll = C/Alloc.c C/CpuArch.c C/LzFind.c C/LzFindMt.c C/LzFindOpt.c C/LzmaDec.c C/LzmaEnc.c C/LzmaLib.c C/Threads.c
+libclzma_la_SOURCES = C/7zAlloc.c C/7zArcIn.c C/7zBuf.c C/7zBuf2.c C/7zCrc.c C/7zCrcOpt.c C/7zDec.c C/7zFile.c C/7zStream.c C/Aes.c C/AesOpt.c C/Alloc.c C/Bcj2.c C/Bcj2Enc.c C/Bra.c C/Bra86.c C/BraIA64.c C/CpuArch.c C/Delta.c C/DllSecur.c C/LzFind.c C/LzFindMt.c C/LzFindOpt.c C/Lzma2Dec.c C/Lzma2DecMt.c C/Lzma2Enc.c C/Lzma86Dec.c C/Lzma86Enc.c C/LzmaDec.c C/LzmaEnc.c C/LzmaLib.c C/MtCoder.c C/MtDec.c C/Ppmd7.c C/Ppmd7Dec.c C/Ppmd7Enc.c C/Sha256.c C/Sha256Opt.c C/Sort.c C/SwapBytes.c C/Threads.c C/Xz.c C/XzCrc64.c C/XzCrc64Opt.c C/XzDec.c C/XzEnc.c C/XzIn.c +liblzmasdk_la_SOURCES = C/7zAlloc.c C/7zArcIn.c C/7zBuf.c C/7zBuf2.c C/7zCrc.c C/7zCrcOpt.c C/7zDec.c C/7zFile.c C/7zStream.c C/Aes.c C/AesOpt.c C/Alloc.c C/Bcj2.c C/Bcj2Enc.c C/Bra.c C/Bra86.c C/BraIA64.c C/CpuArch.c C/Delta.c C/DllSecur.c C/LzFind.c C/LzFindMt.c C/LzFindOpt.c C/Lzma2Dec.c C/Lzma2DecMt.c C/Lzma2Enc.c C/Lzma86Dec.c C/Lzma86Enc.c C/LzmaDec.c C/LzmaEnc.c C/LzmaLib.c C/MtCoder.c C/MtDec.c C/Ppmd7.c C/Ppmd7Dec.c C/Ppmd7Enc.c C/Sha256.c C/Sha256Opt.c C/Sort.c C/SwapBytes.c C/Threads.c C/Xz.c C/XzCrc64.c C/XzCrc64Opt.c C/XzDec.c C/XzEnc.c C/XzIn.c
+libclzma_la_LDFLAGS = -release suse -version-info 1:0:0 +liblzmasdk_la_LDFLAGS = -version-info ${PACKAGE_MAJOR}:0:0
+clzmadir = ${includedir}/clzma +clzmadir = ${includedir}/lzma-sdk
+clzma_HEADERS = C/7zAlloc.h C/7zBuf.h C/7zCrc.h C/7zFile.h C/7z.h C/7zTypes.h C/7zVersion.h C/Aes.h C/Alloc.h C/Bcj2.h C/Bra.h C/Compiler.h C/CpuArch.h C/Delta.h C/DllSecur.h C/LzFind.h C/LzFindMt.h C/LzHash.h C/Lzma2Dec.h C/Lzma2Enc.h C/Lzma86.h C/LzmaDec.h C/LzmaEnc.h C/LzmaLib.h C/MtCoder.h C/Ppmd7.h C/Ppmd.h C/Precomp.h C/RotateDefs.h C/Sha256.h C/Sort.h C/Threads.h C/XzCrc64.h C/XzEnc.h C/Xz.h +clzma_HEADERS = C/7zAlloc.h C/7zBuf.h C/7zCrc.h C/7zFile.h C/7z.h C/7zTypes.h C/7zVersion.h C/Aes.h C/Alloc.h C/Bcj2.h C/Bra.h C/Compiler.h C/CpuArch.h C/Delta.h C/DllSecur.h C/LzFind.h C/LzFindMt.h C/LzHash.h C/Lzma2Dec.h C/Lzma2Enc.h C/Lzma86.h C/LzmaDec.h C/LzmaEnc.h C/LzmaLib.h C/MtCoder.h C/Ppmd7.h C/Ppmd.h C/Precomp.h C/RotateDefs.h C/Sha256.h C/Sort.h C/Threads.h C/XzCrc64.h C/XzEnc.h C/Xz.h
+clzma.pc: ${top_builddir}/config.status +clzma.pc: ${top_builddir}/config.status
Index: 1/clzma.pc.in Index: 7/configure.ac
=================================================================== ===================================================================
--- /dev/null --- /dev/null
+++ 1/clzma.pc.in +++ 7/configure.ac
@@ -0,0 +1,9 @@
+AC_INIT([lzma-sdk], [0])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
+AC_CONFIG_MACRO_DIRS([m4])
+AC_PROG_CC
+LT_INIT([disable-static])
+PACKAGE_MAJOR=$(echo "$PACKAGE_VERSION" | grep -Eo '^[[0-9]]+')
+AC_SUBST([PACKAGE_MAJOR])
+AC_CONFIG_FILES([Makefile lzma-sdk.pc])
+AC_OUTPUT
Index: 7/lzma-sdk.pc.in
===================================================================
--- /dev/null
+++ 7/lzma-sdk.pc.in
@@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
+prefix=@prefix@ +prefix=@prefix@
+exec_prefix=@exec_prefix@ +exec_prefix=@exec_prefix@
+libdir=@libdir@ +libdir=@libdir@
+includedir=@includedir@ +includedir=@includedir@
+ +
+Name: clzma +Name: lzma-sdk
+Description: 7-Zip implementation of LZMA compression +Description: 7-Zip implementation of LZMA compression
+Version: @PACKAGE_VERSION@ +Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lclzma +Libs: -L${libdir} -llzmasdk
+Cflags: -I${includedir}/clzma +Cflags: -I${includedir}/lzma-sdk
Index: 1/configure.ac
===================================================================
--- /dev/null
+++ 1/configure.ac
@@ -0,0 +1,6 @@
+AC_INIT([lzma-sdk], [0])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
+AC_PROG_CC
+LT_INIT([disable-static])
+AC_CONFIG_FILES([Makefile clzma.pc])
+AC_OUTPUT

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Sun Aug 24 13:06:45 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Edit lzma-sdk-shlib.patch to produces the same libname as Fedora.
-------------------------------------------------------------------
Tue Aug 5 14:10:05 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 25.01
* The code for handling symbolic links has been changed to
provide greater security when extracting files from archives.
Command line switch -snld20 can be used to bypass default
security checks when creating symbolic links.
-------------------------------------------------------------------
Mon Dec 2 23:46:55 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 24.09
* The default dictionary size values for LZMA/LZMA2 compression
methods -mx7, -mx8, -mx9 were increased on 64-bit platforms.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 16 17:46:29 UTC 2024 - Jan Engelhardt <jengelh@inai.de> Thu May 16 17:46:29 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package lzma-sdk # spec file for package lzma-sdk
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,12 @@
# #
%define _sver 2405 %define _sver 2501
%define _maver 24 %define _maver 25
%define _miver 05 %define _miver 01
%define lname liblzmasdk%_maver
Name: lzma-sdk Name: lzma-sdk
Version: 24.05 Version: 25.01
Release: 0 Release: 0
Summary: An implementation of LZMA compression Summary: An implementation of LZMA compression
# Actually the site says "Public Domain". See license file. # Actually the site says "Public Domain". See license file.
@@ -55,16 +56,16 @@ zlib's speed, and around 40%% when trading more time.
%package devel %package devel
Summary: Development libraries and headers for %name Summary: Development libraries and headers for %name
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: libclzma-suse1 = %version Requires: %lname = %version
%description devel %description devel
This package contains development libraries and headers for %name. This package contains development libraries and headers for %name.
%package -n libclzma-suse1 %package -n %lname
Summary: LZMA stream encoding/decoding library from 7-Zip Summary: LZMA stream encoding/decoding library from 7-Zip
Group: System/Libraries Group: System/Libraries
%description -n libclzma-suse1 %description -n %lname
Library for encoding/decoding LZMA streams, using the 7-Zip library Library for encoding/decoding LZMA streams, using the 7-Zip library
implementation. implementation.
@@ -83,18 +84,18 @@ autoreconf -fi
%make_install %make_install
rm -f "%buildroot/%_libdir"/*.la rm -f "%buildroot/%_libdir"/*.la
%ldconfig_scriptlets -n libclzma-suse1 %ldconfig_scriptlets -n %lname
%files -n libclzma-suse1 %files -n %lname
%license lzma-sdk-LICENSE.fedora %license lzma-sdk-LICENSE.fedora
%doc DOC/lzma.txt DOC/lzma-history.txt %_libdir/liblzmasdk.so.*
%_libdir/libclzma-suse.so.*
%files devel %files devel
%license lzma-sdk-LICENSE.fedora %license lzma-sdk-LICENSE.fedora
%doc DOC/7z*.txt DOC/Methods.txt %doc DOC/7z*.txt DOC/Methods.txt
%_includedir/clzma/ %doc DOC/lzma.txt DOC/lzma-history.txt
%_libdir/libclzma.so %_includedir/lzma-sdk/
%_libdir/pkgconfig/clzma.pc %_libdir/liblzmasdk.so
%_libdir/pkgconfig/lzma-sdk.pc
%changelog %changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d42ed51c4d88900b4f0d958d99b16b907cd3cfd629cc3df49495285099a1e291
size 1665313

BIN
lzma2501.7z (Stored with Git LFS) Normal file

Binary file not shown.