fix libdnet build error
This commit is contained in:
parent
571703a6d9
commit
975dd33de6
21
libdnet.spec
21
libdnet.spec
@ -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: python3-Cython
|
||||
BuildRequires: make check-devel python3-setuptools libbsd-devel
|
||||
BuildRequires: gcc-c++ autoconf automake libtool
|
||||
BuildRequires: python3-Cython
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user