lzma update to 21.07

lzma update to 21.07

Signed-off-by: laotan2 <tanjinghui1@h-partners.com>
This commit is contained in:
laotan2 2022-05-28 17:24:01 +08:00
parent ff558362e0
commit c4dba9d32e
5 changed files with 12 additions and 10 deletions

View File

@ -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 <tanjinghui1@h-partners.com> - 21.07-1
* Fri Dec 4 2020 tangmeng5 <tangmeng5@huawei.com> - 19.00-1
- package init

View File

@ -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.

View File

@ -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命令。

Binary file not shown.

BIN
lzma2107.7z Normal file

Binary file not shown.