use correct build flags
(cherry picked from commit 4d58cdae2fa13879059ef98402d28ae4046569de)
This commit is contained in:
parent
cca34a74c3
commit
1f99c36d8a
23
p7zip.spec
23
p7zip.spec
@ -1,10 +1,8 @@
|
|||||||
#%global debug_package %{nil}
|
|
||||||
|
|
||||||
Name: p7zip
|
Name: p7zip
|
||||||
Version: 16.02
|
Version: 16.02
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: 7z for Linux system
|
Summary: 7z for Linux system
|
||||||
License: GPLv2
|
License: LGPLv2 and (LGPLv2+ or CPL)
|
||||||
URL: https://sourceforge.net/projects/p7zip/
|
URL: https://sourceforge.net/projects/p7zip/
|
||||||
Source0: https://sourceforge.net/projects/p7zip/files/p7zip/%{version}/%{name}_%{version}_src_all.tar.bz2
|
Source0: https://sourceforge.net/projects/p7zip/files/p7zip/%{version}/%{name}_%{version}_src_all.tar.bz2
|
||||||
Patch0: CVE-2017-17969.patch
|
Patch0: CVE-2017-17969.patch
|
||||||
@ -14,7 +12,7 @@ Patch3: CVE-2018-10115.patch
|
|||||||
Patch4: fix-build-failed-with-gcc-10.patch
|
Patch4: fix-build-failed-with-gcc-10.patch
|
||||||
Patch5: 0001-add-PIE-compiler-options.patch
|
Patch5: 0001-add-PIE-compiler-options.patch
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
|
||||||
%description
|
%description
|
||||||
7za for Linux system to archive file as 7z file format
|
7za for Linux system to archive file as 7z file format
|
||||||
@ -23,7 +21,10 @@ BuildRequires: gcc gcc-c++
|
|||||||
%autosetup -n %{name}_%{version} -p1
|
%autosetup -n %{name}_%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build
|
%make_build OPTFLAGS="%{build_cxxflags}" LDFLAGS="%{build_ldflags}"
|
||||||
|
|
||||||
|
%check
|
||||||
|
%make_build test OPTFLAGS="%{build_cxxflags}" LDFLAGS="%{build_ldflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#
|
#
|
||||||
@ -34,13 +35,6 @@ install -d %{buildroot}/%{_mandir}/man1
|
|||||||
install -m 0755 bin/7za %{buildroot}/%{_bindir}/
|
install -m 0755 bin/7za %{buildroot}/%{_bindir}/
|
||||||
install -m 0644 man1/7za.1 %{buildroot}/%{_mandir}/man1
|
install -m 0644 man1/7za.1 %{buildroot}/%{_mandir}/man1
|
||||||
|
|
||||||
%pre
|
|
||||||
%preun
|
|
||||||
%post
|
|
||||||
%postun
|
|
||||||
|
|
||||||
%check
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license DOC/License.txt
|
%license DOC/License.txt
|
||||||
%doc README
|
%doc README
|
||||||
@ -48,6 +42,9 @@ install -m 0644 man1/7za.1 %{buildroot}/%{_mandir}/man1
|
|||||||
%{_mandir}/*
|
%{_mandir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 31 2024 Funda Wang <fundawang@yeah.net> - 16.02-6
|
||||||
|
- use correct build flags
|
||||||
|
|
||||||
* Tue Jun 06 2023 chenchen <chen_aka_jan@163.com> - 16.02-5
|
* Tue Jun 06 2023 chenchen <chen_aka_jan@163.com> - 16.02-5
|
||||||
- add PIE compiler options
|
- add PIE compiler options
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user