diff --git a/LZMA-SDK.spec b/LZMA-SDK.spec index c05e949754e9064817df331a74d22a551227efc7..4d8ccf37c3de2ee1e436e0591a0daa0e4582c724 100644 --- a/LZMA-SDK.spec +++ b/LZMA-SDK.spec @@ -1,10 +1,11 @@ + Name: LZMA-SDK -Version: 19.00 +Version: 21.07 Release: 1 Summary: SDK for lzma compression License: Public Domain URL: http://sourceforge.net/projects/sevenzip/ -Source0: https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/lzma1900.7z +Source0: https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/lzma2107.7z BuildRequires: gcc-c++ p7zip %description The LZMA SDK provides the documentation, samples, header files, libraries, and @@ -29,7 +30,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Development headers for %{name}. %prep -%setup -q -c -n lzma1900 +%setup -q -c -n lzma2107 +%define debug_package %{nil} for f in .c .cpp .cs .dsp .dsw .h .java .txt makefile; do find . -iname "*$f" | xargs chmod -x @@ -57,7 +59,6 @@ CPP/7zip/Archive/Archive2.def \ CPP/7zip/Bundles/Alone7z/resource.rc \ CPP/7zip/Bundles/Format7zR/resource.rc \ CPP/7zip/Bundles/Format7zExtractR/resource.rc \ -CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj \ CS/7zip/Compress/LzmaAlone/LzmaAlone.sln \ CPP/7zip/Bundles/LzmaCon/makefile.gcc; do iconv -f iso-8859-1 -t utf-8 $FILE > $FILE.utf8 @@ -71,19 +72,20 @@ make -f makefile.gcc clean all CXX="g++ %{optflags} -fPIC" CXX_C="gcc %{optflags %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} -install -m0755 CPP/7zip/Bundles/LzmaCon/lzma %{buildroot}%{_bindir} -mkdir -p %{buildroot}/%{_includedir}/lzma1900/ -find -iname '*.h' | xargs -I {} install -m0644 -D {} %{buildroot}/%{_includedir}/lzma1900/{} +install -m 0755 CPP/7zip/Bundles/LzmaCon/_o/lzma %{buildroot}%{_bindir} +mkdir -p %{buildroot}/%{_includedir}/lzma2107/ +find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir}/lzma2107/{} %files %{_bindir}/* %files devel -%{_includedir}/lzma1900/ +%{_includedir}/lzma2107/ %files doc %doc DOC/7z*.txt DOC/Methods.txt DOC/lzma.txt DOC/lzma-history.txt %changelog +* Fri May 27 2022 tanjinghui1 - 21.07-1 * Fri Dec 4 2020 tangmeng5 - 19.00-1 - package init diff --git a/README.en.md b/README.en.md index 17f978afdc2dd9bcb272dab04a5c170c9a6a2aef..670c64ec2a22086516118fcb6d238240e2fe3cf0 100644 --- a/README.en.md +++ b/README.en.md @@ -8,7 +8,7 @@ Software architecture description #### Installation -1. Based on LZMA SDK version 19.00. +1. Based on LZMA SDK version 21.07. 2. Based on lzmacon directory code part of 7zip module, provide lzma command. diff --git a/README.md b/README.md index d8fde05145ccdf32f8d7dee3d509a35559247343..075adba5a6c235cce5281181710bbe853f2b18ae 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The LZMA SDK provides the documentation, samples, header files, libraries, and t #### 安装教程 -1. 基于LZMA SDK 19.00版本构建。 +1. 基于LZMA SDK 21.07 版本构建。 2. 基于7zip模块的LzmaCon目录代码部分,提供lzma命令。 diff --git a/lzma1900.7z b/lzma1900.7z deleted file mode 100644 index d0f20aa31f2ee22fbcb4a6ff751da51f4bad9359..0000000000000000000000000000000000000000 Binary files a/lzma1900.7z and /dev/null differ diff --git a/lzma2107.7z b/lzma2107.7z new file mode 100644 index 0000000000000000000000000000000000000000..e652e26d44476b1d958d8cdf921b156c99af7a8a Binary files /dev/null and b/lzma2107.7z differ