Compare commits

...

13 Commits

Author SHA1 Message Date
openeuler-ci-bot
5cd5f30a25
!21 [sync] PR-19: reslove the conflict between xz-lzma-compat and LZMA-SDK
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-09-13 07:01:49 +00:00
peijiankang
ff17fc6797 reslove the conflict between xz-lzma-compat and LZMA-SDK
(cherry picked from commit 0458aca8ed9bc0457e136729575fda1d03c79792)
2023-09-13 14:51:32 +08:00
openeuler-ci-bot
65d7018f61
!20 [sync] PR-18: update to 2301
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-09-13 06:50:34 +00:00
dillon_chen
f8b5c1a63f update to 2301
(cherry picked from commit a72a0a27813a979306bb4a95bde3657b2ab18398)
2023-09-13 14:32:54 +08:00
openeuler-ci-bot
8eec725211
!16 [sync] PR-15: fix bug
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-09-01 03:14:45 +00:00
dillon_chen
d10b6cd12b remove -Werror option
build will use -Werror=format-security option

(cherry picked from commit a7cffde5274cf43f68bfdacd93e833bf92d8212e)
2023-09-01 11:09:44 +08:00
openeuler-ci-bot
b186986f8b
!12 add LZMA-SDK.yaml
From: @laotan2 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2023-04-23 03:35:08 +00:00
laotan2
3027dac421 add LZMA-SDK.yaml
Signed-off-by: laotan2 <tanjinghui1@huawei.com>
2023-04-23 10:55:57 +08:00
openeuler-ci-bot
0285df3dff
!7 删除头文件路径版本号
From: @laotan2 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-08-03 09:41:08 +00:00
laotan2
c31c8f5393 change header file path lzma2200 to lzma
remove the version number

Signed-off-by: laotan2 <tanjinghui1@huawei.com>
2022-08-03 17:25:02 +08:00
openeuler-ci-bot
4a2f65a012
!4 LZMA-SDK升级到22.00版本
From: @laotan2 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-07-27 03:03:12 +00:00
openeuler-ci-bot
2ddd7fd3d2
!3 lzma升级到21.07版本
From: @laotan2 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-05-30 11:15:01 +00:00
openeuler-ci-bot
02102c088d !1 初始化LZMA SDK到19.00版本
From: @tangmeng93
Reviewed-by: 
Signed-off-by:
2021-02-03 09:32:09 +08:00
5 changed files with 67 additions and 8 deletions

View File

@ -1,11 +1,13 @@
Name: LZMA-SDK Name: LZMA-SDK
Version: 22.00 Version: 23.01
Release: 1 Release: 2
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/lzma2301.7z
Patch0: remove-Werror.patch
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
@ -30,7 +32,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Development headers for %{name}. Development headers for %{name}.
%prep %prep
%setup -q -c -n lzma2200 %setup -q -c -n lzma2301
%patch -P0 -p1
%define debug_package %{nil} %define debug_package %{nil}
for f in .c .cpp .cs .dsp .dsw .h .java .txt makefile; do for f in .c .cpp .cs .dsp .dsw .h .java .txt makefile; do
@ -72,21 +75,37 @@ 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}/lzma2200/ mkdir -p %{buildroot}/%{_includedir}/lzma/
find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir}/lzma2200/{} find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir}/lzma/{}
%files %files
%{_bindir}/* %{_bindir}/*
%files devel %files devel
%{_includedir}/lzma2200/ %{_includedir}/lzma/
%files doc %files doc
%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
* 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 * 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 * 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 * Fri Dec 4 2020 tangmeng5 <tangmeng5@huawei.com> - 19.00-1
- package init - package init

5
LZMA-SDK.yaml Normal file
View File

@ -0,0 +1,5 @@
version_control: sourceforge.net
src_repo: https://sourceforge.net/projects/sevenzip/files/7-Zip/
tag_prefix: "^v"
separator: "."

Binary file not shown.

BIN
lzma2301.7z Normal file

Binary file not shown.

35
remove-Werror.patch Normal file
View File

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