1Name: libnl3 2Version: 3.7.0 3Release: 4 4Summary: Providing APIs to netlink protocol based Linux kernel interfaces 5License: LGPLv2 6URL: http://www.infradead.org/~tgr/libnl/ 7Source: https://github.com/thom311/libnl/releases/download/libnl3_7_0/libnl-3.7.0.tar.gz 8 9Patch6000: backport-prevent-segfault-in-af_request_type.patch 10Patch6001: backport-fix-bridge-info-parsing.patch 11 12Patch9000: solve-redefinition-of-struct-ipv6_mreq.patch 13 14patch6002: backport-add-some-tests-about-addr-class-rule-neigh-qdisc.patch 15patch6003: backport-clear-XFRM_SP_ATTR_TMPL-when-removing-the-last-template.patch 16patch6004: backport-fix-reference-counters-of-sa-selector-addresses.patch 17patch6005: backport-do-not-use-static-array-indices-for-buffer.patch 18patch6006: backport-fix-leak-in-error-handling-of-rtnl_flower_append_action.patch 19patch6007: backport-fix-signed-overflow-warning-in-nl_object_diff.patch 20patch6008: backport-workaround-coverity-warning-about-time_t-handling.patch 21patch6009: backport-fix-leaking-usertemplate-in-xfrmnl_sp_parse.patch 22patch6010: backport-avoid-integer-overflow-in-rtnl_tc_calc_cell_log.patch 23patch6011: backport-fix-crashes-in-case-of-ENOMEM.patch 24patch6012: backport-accept-NULL-argument-in-nla_nest_cancel-for-robustness.patch 25patch6013: backport-fix-error-handling-in-nl_str2ip_protos.patch 26patch6014: backport-handle-negative-and-zero-size-in-nla_memcpy.patch 27patch6015: backport-use-thread-safe-gmtime_r-instead-of-gmtime.patch 28 29BuildRequires: flex bison libtool autoconf automake swig 30Requires: %{name} = %{version}-%{release} 31 32Provides: %{name}-cli 33Obsoletes: %{name}-cli 34 35%description 36This package contains a collection of libraries providing 37APIs to netlink based Linux kernel sockets interfaces. 38 39%package devel 40Summary: Libraries and headers for libnl3 41Requires: %{name} = %{version}-%{release} kernel-headers 42 43%description devel 44This package provides various libraries and headers for using libnl3 45 46%package help 47Summary: Document for libnl3 48Requires: %{name} = %{version}-%{release} 49 50Provides: %{name}-doc = %{version}-%{release} 51Obsoletes: %{name}-doc < %{version}-%{release} 52 53%description help 54This package contains libnl3 related documentations 55 56%package -n python3-libnl3 57Summary: Python3 binding for libnl3 58BuildRequires: python3-devel 59Requires: %{name} = %{version}-%{release} 60 61%description -n python3-libnl3 62Python3 bindings for libnl3 63 64%prep 65%autosetup -n libnl-%{version} -p1 66 67%build 68autoreconf -vif 69%configure --disable-static 70%make_build 71 72cd python 73CFLAGS="$RPM_OPT_FLAGS" %py3_build 74CFLAGS="$RPM_OPT_FLAGS" %py3_build 75 76%install 77%make_install 78 79find $RPM_BUILD_ROOT -name *.la |xargs rm -f 80 81cd python 82%py3_install 83 84%check 85make check 86 87cd python 88%{__python3} setup.py check 89 90%ldconfig_scriptlets 91 92%files 93%doc COPYING 94%{_libdir}/libnl-*.so.* 95%config(noreplace) %{_sysconfdir}/* 96%{_libdir}/libnl/ 97%{_bindir}/* 98 99%files devel 100%{_includedir}/libnl3/netlink/ 101%{_libdir}/*.so 102%{_libdir}/pkgconfig/*.pc 103 104%files help 105%{_mandir}/man8/* 106 107%files -n python3-libnl3 108%{python3_sitearch}/netlink 109%{python3_sitearch}/netlink-*.egg-info 110 111%changelog 112* Thu Apr 25 2024 sunhai <sunhai10@huawei.com> - 3.7.0-4 113- Type:bugfix 114- ID:NA 115- SUG:NA 116- DESC:sync some pathes from upstream 117 118* Fri Jan 12 2024 chengyechun <chengyechun1@huawei.com> - 3.7.0-3 119- Type:bugfix 120- ID:NA 121- SUG:NA 122- DESC:Use the user-mode IPv6 header file 123 124* Mon Aug 14 2023 chengyechun <chengyechun1@huawei.com> - 3.7.0-2 125- Type:bugfix 126- ID:NA 127- SUG:NA 128- DESC:prevent segfault in af_request_type 129 fix bridge info parsing 130 131* Wed Nov 9 2022 chengyechun <chengyechun1@huawei.com> - 3.7.0-1 132- Type:enhancement 133- ID:NA 134- SUG:NA 135- DESC:update to libnl-3.7.0 136 137* Sat Dec 18 2021 chengyechun <chengyechun1@huawei.com> - 3.5.0-6 138- Type:bugfix 139- ID:NA 140- SUG:NA 141-DES:add seome tests about add and delele addr, 142 add and delete neigh, 143 add and delete qdisc, 144 add link and rule, 145 delete route; 146 147* Thu Dec 16 2021 chengyechun <chengyechun1@huawei.com> - 3.5.0-5 148- Type:bugfix 149- ID:NA 150- SUG:NA 151- DES:add a test:test add route 152 153* Wed Mar 10 2021 zengwefeng <zwfeng@huawei.com> - 3.5.0-4 154- Type:bugfix 155- ID:NA 156- SUG:NA 157- DESC:add missing check for NULL return from allocate_rfd 158 add include netlink private nl-auto-h header 159 use proper int type for id attributes 160 add RTNL_LINK_REASM_OVERLAPS stat 161 check for null pointer in macvlan 162 fix leaking in link msg parser 163 fix NLE_NOMEM handling in parse multipath 164 165* Thu Oct 29 2020 gaihuiying <gaihuiying1@huawei.com> - 3.5.0-3 166- Type:requirement 167- ID:NA 168- SUG:NA 169- DESC:remove python2 170 171* Thu Sep 10 2020 lunankun <lunankun@huawei.com> - 3.5.0-2 172- Type: bugfix 173- ID: NA 174- SUG: NA 175- DESC: fix Source0 url 176 177* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.5.0-1 178- update software to 3.5.0 179 180* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.0-8 181- Type:bugfix 182- Id:NA 183- SUG:NA 184- DESC:provides libnl3-doc 185 186* Sat Sep 7 2019 liyongqiang<liyongqiang10@huawei.com> - 3.4.0-7 187- Package init 188