!16 fix libdnet build error

From: @yangl777 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
This commit is contained in:
openeuler-ci-bot 2023-02-09 09:41:17 +00:00 committed by Gitee
commit dcbe7a2908
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,15 +1,15 @@
Name: libdnet
Version: 1.16.3
Release: 1
Release: 2
Summary: Simple portable interface work with low-level networking routines
License: BSD
URL: https://github.com/ofalk/%{name}
Source: https://github.com/ofalk/libdnet/archive/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: gcc-c++ autoconf automake libtool
BuildRequires: python3-Cython
BuildRequires: make check-devel python3-setuptools libbsd-devel
BuildRequires: make check-devel python3-setuptools
%description
%{name} provides a simplified, portable interface to several low-level networking
@ -49,18 +49,15 @@ Python3 package for python-%{name}
%autosetup -n %{name}-%{name}-%{version} -p1
%build
autoreconf -i
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --disable-static
%disable_rpath
%make_build
pushd python
%{__python3} setup.py build
popd
%install
%{__make} install DESTDIR=%{buildroot}
%make_install
pushd python
%{__python3} setup.py install --skip-build --root %{buildroot}
@ -96,6 +93,12 @@ popd
%{_mandir}/man8/*.8*
%changelog
* Thu Feb 09 2023 yanglu <yanglu72@h-partners.com> - 1.16.3-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix libdnet build error
* Fri Feb 03 2023 xinghe <xinghe2@h-partners.com> - 1.16.3-1
- Type:requirements
- ID:NA