• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Name:          libnl3
2Version:       3.5.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_5_0/libnl-3.5.0.tar.gz
8
9Patch6000:     backport-lib-add-include-netlink-private-nl-auto-h-header.patch
10Patch6001:     backport-lib-use-proper-int-type-for-id-attributes-in-nl_object_identical.patch
11Patch6002:     backport-route-link-add-RTNL_LINK_REASM_OVERLAPS-stat.patch
12Patch6003:     backport-route-link-Check-for-null-pointer-in-macvlan.patch
13Patch6004:     backport-rtnl-link-fix-leaking-rtnl_link_af_ops-in-link_msg_parser.patch
14Patch6005:     backport-rtnl-route-fix-NLE_NOMEM-handling-in-parse_multipath.patch
15Patch9000:     solve-redefinition-of-struct-ipv6_mreq.patch
16
17BuildRequires: flex bison libtool autoconf automake swig
18Requires:      %{name} = %{version}-%{release}
19
20Provides:      %{name}-cli
21Obsoletes:     %{name}-cli
22
23%description
24This package contains a collection of libraries providing
25APIs to netlink based Linux kernel sockets interfaces.
26
27%package devel
28Summary: Libraries and headers for libnl3
29Requires: %{name} = %{version}-%{release} kernel-headers
30
31%description devel
32This package provides various libraries and headers for using libnl3
33
34%package help
35Summary: Document for libnl3
36Requires:      %{name} = %{version}-%{release}
37
38Provides:      %{name}-doc = %{version}-%{release}
39Obsoletes:     %{name}-doc < %{version}-%{release}
40
41%description help
42This package contains libnl3 related documentations
43
44%package -n python3-libnl3
45Summary: Python3 binding for libnl3
46BuildRequires: python3-devel
47Requires: %{name} = %{version}-%{release}
48
49%description -n python3-libnl3
50Python3 bindings for libnl3
51
52%prep
53%autosetup -n libnl-%{version} -p1
54
55%build
56autoreconf -vif
57%configure --disable-static
58%make_build
59
60cd python
61CFLAGS="$RPM_OPT_FLAGS" %py3_build
62CFLAGS="$RPM_OPT_FLAGS" %py3_build
63
64%install
65%make_install
66
67find $RPM_BUILD_ROOT -name *.la |xargs rm -f
68
69cd python
70%py3_install
71
72%check
73make check
74
75cd python
76%{__python3} setup.py check
77
78%ldconfig_scriptlets
79
80%files
81%doc COPYING
82%{_libdir}/libnl-*.so.*
83%config(noreplace) %{_sysconfdir}/*
84%{_libdir}/libnl/
85%{_bindir}/*
86
87%files devel
88%{_includedir}/libnl3/netlink/
89%{_libdir}/*.so
90%{_libdir}/pkgconfig/*.pc
91
92%files help
93%{_mandir}/man8/*
94
95%files -n python3-libnl3
96%{python3_sitearch}/netlink
97%{python3_sitearch}/netlink-*.egg-info
98
99%changelog
100* Wed Mar 10 2021 zengwefeng <zwfeng@huawei.com> - 3.5.0-4
101- Type:bugfix
102- ID:NA
103- SUG:NA
104- DESC:add missing check for NULL return from allocate_rfd
105       add include netlink private nl-auto-h header
106       use proper int type for id attributes
107       add RTNL_LINK_REASM_OVERLAPS stat
108       check for null pointer in macvlan
109       fix leaking in link msg parser
110       fix NLE_NOMEM handling in parse multipath
111
112* Thu Oct 29 2020 gaihuiying <gaihuiying1@huawei.com> - 3.5.0-3
113- Type:requirement
114- ID:NA
115- SUG:NA
116- DESC:remove python2
117
118* Thu Sep 10 2020 lunankun <lunankun@huawei.com> - 3.5.0-2
119- Type: bugfix
120- ID: NA
121- SUG: NA
122- DESC: fix Source0 url
123
124* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.5.0-1
125- update software to 3.5.0
126
127* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.0-8
128- Type:bugfix
129- Id:NA
130- SUG:NA
131- DESC:provides libnl3-doc
132
133* Sat Sep 7 2019 liyongqiang<liyongqiang10@huawei.com> - 3.4.0-7
134- Package init
135