Check whether the lcap compilation option needs to be added.
(cherry picked from commit 56a0e0b0e263eb18a4da7c690432068080aa3bd0)
This commit is contained in:
parent
5a0dc0fce0
commit
670bf0003c
12
star.spec
12
star.spec
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: star
|
Name: star
|
||||||
Version: 1.6
|
Version: 1.6
|
||||||
Release: 8
|
Release: 9
|
||||||
Summary: An archiver supports ACL
|
Summary: An archiver supports ACL
|
||||||
License: CDDL-1.0
|
License: CDDL-1.0
|
||||||
URL: http://freecode.com/projects/%{name}
|
URL: http://freecode.com/projects/%{name}
|
||||||
@ -59,6 +59,11 @@ for PLAT in %{arm} %{power64} aarch64 %{mips} x86_64 loongarch64 riscv64; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
LCAP_FLAG=""
|
||||||
|
if pkg-config --exists 'libcap'; then
|
||||||
|
LCAP_FLAG="-lcap"
|
||||||
|
fi
|
||||||
|
|
||||||
%global make_flags GMAKE_NOWARN=true \\\
|
%global make_flags GMAKE_NOWARN=true \\\
|
||||||
RUNPATH= \\\
|
RUNPATH= \\\
|
||||||
LDPATH= \\\
|
LDPATH= \\\
|
||||||
@ -68,7 +73,7 @@ done
|
|||||||
INS_RBASE=%{buildroot} \\\
|
INS_RBASE=%{buildroot} \\\
|
||||||
INSTALL='sh $(SRCROOT)/conf/install-sh -c -m $(INSMODEINS)' \\\
|
INSTALL='sh $(SRCROOT)/conf/install-sh -c -m $(INSMODEINS)' \\\
|
||||||
COPTX="$RPM_OPT_FLAGS -DTRY_EXT2_FS" \\\
|
COPTX="$RPM_OPT_FLAGS -DTRY_EXT2_FS" \\\
|
||||||
LDOPTX="$RPM_LD_FLAGS" \\\
|
LDOPTX="$RPM_LD_FLAGS $LCAP_FLAG" \\\
|
||||||
DEFCCOM=%{__cc}
|
DEFCCOM=%{__cc}
|
||||||
|
|
||||||
%make_build %make_flags
|
%make_build %make_flags
|
||||||
@ -134,6 +139,9 @@ fi
|
|||||||
%{_mandir}/man1/rmt.*
|
%{_mandir}/man1/rmt.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 9 zhoupengcheng <zhoupengcheng11@huawei.com> - 1.6-9
|
||||||
|
- DESC:Check whether the lcap compilation option needs to be added.
|
||||||
|
|
||||||
* Thu Feb 22 2024 luofeng <luofeng13@huawei.com> - 1.6-8
|
* Thu Feb 22 2024 luofeng <luofeng13@huawei.com> - 1.6-8
|
||||||
- Type:enhencement
|
- Type:enhencement
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user