diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-31 01:13:03 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-31 01:13:03 +0000 |
commit | 50221481d448ba0feed2086aa6ba40175678dbf1 (patch) | |
tree | e0cea56aa137655228e0062f6a20879106d1abb5 | |
parent | 516cf6e779a82b69df1174f79214a58cd0e59834 (diff) |
automatic import of LZMA-SDKopeneuler24.03_LTS
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | LZMA-SDK.spec | 110 | ||||
-rw-r--r-- | remove-Werror.patch | 35 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 147 insertions, 0 deletions
@@ -0,0 +1 @@ +/lzma2301.7z diff --git a/LZMA-SDK.spec b/LZMA-SDK.spec new file mode 100644 index 0000000..44783ec --- /dev/null +++ b/LZMA-SDK.spec @@ -0,0 +1,110 @@ +Name: LZMA-SDK +Version: 23.01 +Release: 2 +Summary: SDK for lzma compression +License: Public Domain +URL: http://sourceforge.net/projects/sevenzip/ +Source0: https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/lzma2301.7z +Patch0: remove-Werror.patch + +BuildRequires: gcc-c++ p7zip +%description +The LZMA SDK provides the documentation, samples, header files, libraries, and +tools you need to develop applications that use LZMA compression. + +LZMA is default and general compression methods of 7z format in the 7-Zip program. +LZMA provides a high compression ratio and fast decompression, so it is very +suitable for embedded applications. + +%package doc +Summary: The help file of %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description doc +The help file of %{name}. + +%package devel +Summary: Development headers for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development headers for %{name}. + +%prep +%setup -q -c -n lzma2301 +%patch -P0 -p1 +%define debug_package %{nil} + +for f in .c .cpp .cs .dsp .dsw .h .java .txt makefile; do + find . -iname "*$f" | xargs chmod -x +done + +# correct end-of-file encoding for txt files in the DOC. +sed -i 's/\r//' DOC/*.txt + +# The following files in lzma belong to the iso-8859-1 character set. +# They are currently converted to utf-8 character set type. +for FILE in \ +DOC/7zC.txt \ +DOC/7zFormat.txt \ +DOC/lzma.txt \ +DOC/lzma-history.txt \ +DOC/Methods.txt \ +C/Util/7z/makefile.gcc \ +C/Util/Lzma/makefile.gcc \ +C/Util/LzmaLib/LzmaLib.def \ +C/Util/LzmaLib/resource.rc \ +CPP/Build.mak \ +CPP/7zip/MyVersionInfo.rc \ +CPP/7zip/Archive/Archive.def \ +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.sln \ +CPP/7zip/Bundles/LzmaCon/makefile.gcc; do + iconv -f iso-8859-1 -t utf-8 $FILE > $FILE.utf8 + touch -r $FILE $FILE.utf8 + mv $FILE.utf8 $FILE +done + +%build +make -f makefile.gcc clean all CXX="g++ %{optflags} -fPIC" CXX_C="gcc %{optflags} -fPIC" LDFLAGS="%{?__global_ldflags}" -C CPP/7zip/Bundles/LzmaCon + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_bindir} +install -m 0755 CPP/7zip/Bundles/LzmaCon/_o/lzma %{buildroot}%{_bindir}/LZMA-SDK +mkdir -p %{buildroot}/%{_includedir}/lzma/ +find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir}/lzma/{} + +%files +%{_bindir}/* + +%files devel +%{_includedir}/lzma/ + +%files doc +%doc DOC/7z*.txt DOC/Methods.txt DOC/lzma.txt DOC/lzma-history.txt + +%changelog +* Wed Sep 13 2023 peijiankang <peijiankang@kylinos.cn> - 23.01-2 +- reslove the conflict between xz-lzma-compat and LZMA-SDK + +* Fri Sep 1 2023 dillon chen <dillon.chen@gmail.com> - 23.01-1 +- upgrade to 23.01 + +* Mon Aug 28 2023 dillon chen <dillon.chen@gmail.com> - 22.00-3 +- remove -Werror under gcc 12.3.1 compiler + +* Wed Aug 03 2022 tanjinghui1 <tanjinghui1@huawei.com> - 22.00-2 +- change header file path lzma2200 to lzma + +* Thu Jul 14 2022 tanjinghui1 <tanjinghui1@huawei.com> - 22.00-1 +- upgrade to 22.00 + +* Fri May 27 2022 tanjinghui1 <tanjinghui1@h-partners.com> - 21.07-1 +- upgrade to 21.07 + +* Fri Dec 4 2020 tangmeng5 <tangmeng5@huawei.com> - 19.00-1 +- package init diff --git a/remove-Werror.patch b/remove-Werror.patch new file mode 100644 index 0000000..5ece0e1 --- /dev/null +++ b/remove-Werror.patch @@ -0,0 +1,35 @@ +diff -urN lzma2301/C/7zip_gcc_c.mak lzma2301.new/C/7zip_gcc_c.mak +--- lzma2301/C/7zip_gcc_c.mak 2023-05-03 21:00:00.000000000 +0800 ++++ lzma2301.new/C/7zip_gcc_c.mak 2023-09-01 12:09:49.814715435 +0800 +@@ -14,7 +14,7 @@ + PROGPATH_STATIC = $(O)/$(PROG)s
+
+ ifneq ($(CC), xlc)
+-CFLAGS_WARN_WALL = -Wall -Werror -Wextra
++CFLAGS_WARN_WALL = -Wall -Wextra
+ endif
+
+ # for object file
+diff -urN lzma2301/CPP/7zip/7zip_gcc.mak lzma2301.new/CPP/7zip/7zip_gcc.mak +--- lzma2301/CPP/7zip/7zip_gcc.mak 2023-05-03 21:00:00.000000000 +0800 ++++ lzma2301.new/CPP/7zip/7zip_gcc.mak 2023-09-01 12:10:26.934926776 +0800 +@@ -24,7 +24,7 @@ +
+
+ ifneq ($(CC), xlc)
+-CFLAGS_WARN_WALL = -Werror -Wall -Wextra
++CFLAGS_WARN_WALL = -Wall -Wextra
+ endif
+
+ # for object file
+diff -urN lzma2301/CPP/Build.mak lzma2301.new/CPP/Build.mak +--- lzma2301/CPP/Build.mak 2023-05-01 18:00:00.000000000 +0800 ++++ lzma2301.new/CPP/Build.mak 2023-09-01 12:10:07.110813908 +0800 +@@ -67,7 +67,6 @@ + !IF "$(CC)" == "clang-cl"
+
+ CFLAGS = $(CFLAGS) \
+- -Werror \
+ -Wall \
+ -Wextra \
+ -Weverything \
@@ -0,0 +1 @@ +e57f6069005ff124bee2721b97aedbc4 lzma2301.7z |