forked from pool/lzma-sdk
Compare commits
5 Commits
Author | SHA256 | Date | |
---|---|---|---|
1dced67446 | |||
|
04a9191737 | ||
e09d2fd332 | |||
|
4d2568bab1 | ||
34e7b21db4 |
4
_scmsync.obsinfo
Normal file
4
_scmsync.obsinfo
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
mtime: 1754403083
|
||||||
|
commit: f28534e21b67d9fa603677a67206a86dd14afd4da1ccad17ab950efdff6ba6e1
|
||||||
|
url: https://src.opensuse.org/jengelh/lzma-sdk
|
||||||
|
revision: master
|
@@ -1 +1 @@
|
|||||||
liblzmasdk25
|
libclzma-suse1
|
||||||
|
3
build.specials.obscpio
Normal file
3
build.specials.obscpio
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:990b5407e1001bcc4230191bec91877e02a556bcf102f4e01e2845d078d674a7
|
||||||
|
size 256
|
@@ -5,57 +5,51 @@ 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 +++++++++++
|
||||||
configure.ac | 9 +++++++++
|
clzma.pc.in | 10 ++++++++++
|
||||||
lzma-sdk.pc.in | 10 ++++++++++
|
configure.ac | 6 ++++++
|
||||||
3 files changed, 30 insertions(+)
|
3 files changed, 27 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
Index: 7/Makefile.am
|
Index: 1/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ 7/Makefile.am
|
+++ 1/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 = liblzmasdk.la
|
+lib_LTLIBRARIES = libclzma.la
|
||||||
+pkgconfigdir = ${libdir}/pkgconfig
|
+pkgconfigdir = ${libdir}/pkgconfig
|
||||||
+pkgconfig_DATA = lzma-sdk.pc
|
+pkgconfig_DATA = clzma.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
|
||||||
+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_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_LDFLAGS = -version-info ${PACKAGE_MAJOR}:0:0
|
+libclzma_la_LDFLAGS = -release suse -version-info 1:0:0
|
||||||
+clzmadir = ${includedir}/lzma-sdk
|
+clzmadir = ${includedir}/clzma
|
||||||
+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: 7/configure.ac
|
Index: 1/clzma.pc.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ 7/configure.ac
|
+++ 1/clzma.pc.in
|
||||||
@@ -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: lzma-sdk
|
+Name: clzma
|
||||||
+Description: 7-Zip implementation of LZMA compression
|
+Description: 7-Zip implementation of LZMA compression
|
||||||
+Version: @PACKAGE_VERSION@
|
+Version: @PACKAGE_VERSION@
|
||||||
+Libs: -L${libdir} -llzmasdk
|
+Libs: -L${libdir} -lclzma
|
||||||
+Cflags: -I${includedir}/lzma-sdk
|
+Cflags: -I${includedir}/clzma
|
||||||
|
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
|
||||||
|
@@ -1,8 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
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>
|
Tue Aug 5 14:10:05 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@@ -19,7 +19,6 @@
|
|||||||
%define _sver 2501
|
%define _sver 2501
|
||||||
%define _maver 25
|
%define _maver 25
|
||||||
%define _miver 01
|
%define _miver 01
|
||||||
%define lname liblzmasdk%_maver
|
|
||||||
Name: lzma-sdk
|
Name: lzma-sdk
|
||||||
Version: 25.01
|
Version: 25.01
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -56,16 +55,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: %lname = %version
|
Requires: libclzma-suse1 = %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 %lname
|
%package -n libclzma-suse1
|
||||||
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 %lname
|
%description -n libclzma-suse1
|
||||||
Library for encoding/decoding LZMA streams, using the 7-Zip library
|
Library for encoding/decoding LZMA streams, using the 7-Zip library
|
||||||
implementation.
|
implementation.
|
||||||
|
|
||||||
@@ -84,18 +83,18 @@ autoreconf -fi
|
|||||||
%make_install
|
%make_install
|
||||||
rm -f "%buildroot/%_libdir"/*.la
|
rm -f "%buildroot/%_libdir"/*.la
|
||||||
|
|
||||||
%ldconfig_scriptlets -n %lname
|
%ldconfig_scriptlets -n libclzma-suse1
|
||||||
|
|
||||||
%files -n %lname
|
%files -n libclzma-suse1
|
||||||
%license lzma-sdk-LICENSE.fedora
|
%license lzma-sdk-LICENSE.fedora
|
||||||
%_libdir/liblzmasdk.so.*
|
%doc DOC/lzma.txt DOC/lzma-history.txt
|
||||||
|
%_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
|
||||||
%doc DOC/lzma.txt DOC/lzma-history.txt
|
%_includedir/clzma/
|
||||||
%_includedir/lzma-sdk/
|
%_libdir/libclzma.so
|
||||||
%_libdir/liblzmasdk.so
|
%_libdir/pkgconfig/clzma.pc
|
||||||
%_libdir/pkgconfig/lzma-sdk.pc
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user