reslove the conflict between xz-lzma-compat and LZMA-SDK

(cherry picked from commit 68a9b047e0b0cb55d64d4f3b5983e082f64e8baa)
This commit is contained in:
peijiankang 2023-03-06 17:57:48 +08:00 committed by openeuler-sync-bot
parent f86ea60afe
commit a2e894b869

View File

@ -1,12 +1,13 @@
Name: LZMA-SDK Name: LZMA-SDK
Version: 22.00 Version: 22.00
Release: 2 Release: 3
Summary: SDK for lzma compression Summary: SDK for lzma compression
License: Public Domain License: Public Domain
URL: http://sourceforge.net/projects/sevenzip/ URL: http://sourceforge.net/projects/sevenzip/
Source0: https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/lzma2200.7z Source0: https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/lzma2200.7z
BuildRequires: gcc-c++ p7zip BuildRequires: gcc-c++ p7zip
%description %description
The LZMA SDK provides the documentation, samples, header files, libraries, and The LZMA SDK provides the documentation, samples, header files, libraries, and
tools you need to develop applications that use LZMA compression. tools you need to develop applications that use LZMA compression.
@ -72,7 +73,7 @@ make -f makefile.gcc clean all CXX="g++ %{optflags} -fPIC" CXX_C="gcc %{optflags
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
install -m 0755 CPP/7zip/Bundles/LzmaCon/_o/lzma %{buildroot}%{_bindir} install -m 0755 CPP/7zip/Bundles/LzmaCon/_o/lzma %{buildroot}%{_bindir}/LZMA-SDK
mkdir -p %{buildroot}/%{_includedir}/lzma/ mkdir -p %{buildroot}/%{_includedir}/lzma/
find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir}/lzma/{} find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir}/lzma/{}
@ -86,6 +87,9 @@ find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir
%doc DOC/7z*.txt DOC/Methods.txt DOC/lzma.txt DOC/lzma-history.txt %doc DOC/7z*.txt DOC/Methods.txt DOC/lzma.txt DOC/lzma-history.txt
%changelog %changelog
* Mon Mar 06 2023 peijiankang <peijiankang@kylinos.cn> - 22.00-3
- reslove the conflict between xz-lzma-compat and LZMA-SDK
* Wed Aug 03 2022 tanjinghui1 <tanjinghui1@huawei.com> - 22.00-2 * Wed Aug 03 2022 tanjinghui1 <tanjinghui1@huawei.com> - 22.00-2
- change header file path lzma2200 to lzma - change header file path lzma2200 to lzma