!34 Check whether the lcap compilation option needs to be added.
From: @zhoupengcheng11 Reviewed-by: @dillon_chen Signed-off-by: @dillon_chen
This commit is contained in:
commit
f4f4e5b585
17
star.spec
17
star.spec
@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
Name: star
|
Name: star
|
||||||
Version: 1.6
|
Version: 1.6
|
||||||
Release: 2
|
Release: 4
|
||||||
Summary: An archiver supports ACL
|
Summary: An archiver supports ACL
|
||||||
License: CDDL
|
License: CDDL-1.0
|
||||||
URL: http://freecode.com/projects/%{name}
|
URL: http://freecode.com/projects/%{name}
|
||||||
Source: http://downloads.sourceforge.net/s-tar/%{name}-%{version}.tar.bz2
|
Source: http://downloads.sourceforge.net/s-tar/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
@ -55,6 +55,11 @@ for PLAT in %{arm} %{power64} aarch64 %{mips} x86_64; 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= \\\
|
||||||
@ -64,7 +69,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=gcc
|
DEFCCOM=gcc
|
||||||
|
|
||||||
%make_build %make_flags
|
%make_build %make_flags
|
||||||
@ -130,6 +135,12 @@ fi
|
|||||||
%{_mandir}/man1/rmt.*
|
%{_mandir}/man1/rmt.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 9 zhoupengcheng <zhoupengcheng11@huawei.com> - 1.6-4
|
||||||
|
- DESC:Check whether the lcap compilation option needs to be added.
|
||||||
|
|
||||||
|
* Tue Jun 28 2022 Chenyx <chenyixiong3@huawei.com> - 1.6-3
|
||||||
|
- License compliance rectification
|
||||||
|
|
||||||
* Fri Dec 25 2020 Liquor<lirui130@huawei.com> - 1.6-2
|
* Fri Dec 25 2020 Liquor<lirui130@huawei.com> - 1.6-2
|
||||||
- add package star-help to package star
|
- add package star-help to package star
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user