!27 添加sw架构

From: @wuzx065891 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
This commit is contained in:
openeuler-ci-bot 2022-11-11 07:07:56 +00:00 committed by Gitee
commit b32ff6167b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Name: ebtables Name: ebtables
Version: 2.0.11 Version: 2.0.11
Release: 5 Release: 6
Summary: A filtering tool for a Linux-based bridging firewall Summary: A filtering tool for a Linux-based bridging firewall
License: GPLv2+ License: GPLv2+
URL: http://ebtables.sourceforge.net/ URL: http://ebtables.sourceforge.net/
@ -34,7 +34,11 @@ f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
%build %build
./autogen.sh ./autogen.sh
%ifarch sw_64
./configure --mandir=/usr/share/man --bindir=/usr/sbin --sbindir=/usr/sbin --libdir=/lib/ebtables --sysconfdir=/etc
%else
./configure --mandir=/usr/share/man --bindir=/usr/sbin --sbindir=/usr/sbin --libdir=/lib64/ebtables --sysconfdir=/etc ./configure --mandir=/usr/share/man --bindir=/usr/sbin --sbindir=/usr/sbin --libdir=/lib64/ebtables --sysconfdir=/etc
%endif
%make_build CFLAGS="${RPM_OPT_FLAGS}" LIBDIR="/%{_lib}/ebtables" BINDIR="%{_sbindir}" MANDIR="%{_mandir}" LDFLAGS="${RPM_LD_FLAGS} -Wl,-z,now" %make_build CFLAGS="${RPM_OPT_FLAGS}" LIBDIR="/%{_lib}/ebtables" BINDIR="%{_sbindir}" MANDIR="%{_mandir}" LDFLAGS="${RPM_LD_FLAGS} -Wl,-z,now"
%install %install
@ -101,6 +105,12 @@ fi
%doc %{_mandir}/man8/ebtables-legacy.8* %doc %{_mandir}/man8/ebtables-legacy.8*
%changelog %changelog
* Thu Nov 3 wuzx<wuzx1226@qq.com> - 2.0.11-6
- Type:feature
- CVE:NA
- SUG:NA
- DESC:change lib64 to lib when in sw64 architecture
* Mon Jul 04 2022 gaihuiying <eaglegai@163.com> - 2.0.11-5 * Mon Jul 04 2022 gaihuiying <eaglegai@163.com> - 2.0.11-5
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA