2019-09-30 10:57:01 -04:00
|
|
|
Name:libmnl
|
2022-11-04 07:46:29 +00:00
|
|
|
Version: 1.0.5
|
|
|
|
|
Release: 1
|
|
|
|
|
License: LGPL-2.1-or-later
|
2019-09-30 10:57:01 -04:00
|
|
|
BuildRequires: gcc
|
|
|
|
|
URL: https://netfilter.org/projects/libmnl
|
|
|
|
|
Source0: https://netfilter.org/projects/libmnl/files/%{name}-%{version}.tar.bz2
|
|
|
|
|
Summary: A minimalistic user-space library oriented to netlink developers.
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
libmnl is a minimalistic user-space library oriented to Netlink developers.
|
|
|
|
|
There are a lot of common tasks in parsing, validating, constructing of both
|
|
|
|
|
the Netlink header and TLVs that are repetitive and easy to get wrong.
|
|
|
|
|
This library aims to provide simple helpers that allows you to re-use code and
|
|
|
|
|
to avoid re-inventing the wheel.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: development library package for libmnl.
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
2020-01-11 10:35:43 +08:00
|
|
|
Provides: libmnl-static
|
|
|
|
|
Obsoletes: libmnl-static
|
2019-09-30 10:57:01 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The devel package provide header files and dynamic libraries for libmnl.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --enable-static
|
|
|
|
|
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find examples -type d -name '.deps' -prune -exec rm -rf {} ';'
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
|
find examples '(' -name 'Makefile.am' ')' -delete
|
|
|
|
|
find examples '(' -name 'Makefile.in' ')' -delete
|
|
|
|
|
mv examples examples-%{_arch}
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc examples-%{_arch}
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-11-04 07:46:29 +00:00
|
|
|
* Fri Nov 04 2022 zhouyihang <zhouyihang3@h-partners.com> - 1.0.5-1
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update libmnl to 1.0.5
|
|
|
|
|
|
2020-01-11 10:35:43 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0.4-10
|
|
|
|
|
- provides libmnl-static
|
|
|
|
|
|
2019-09-30 10:57:01 -04:00
|
|
|
* Mon Aug 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.4-9
|
|
|
|
|
- Package init
|