libnetfilter_conntrack/libnetfilter_conntrack.spec
xingwei 7f54f75ce0 sync uapi header with nf next
(cherry picked from commit bb02a28daa7eab43fddb43808a3e32f50ed41f8f)
2023-10-27 16:46:42 +08:00

101 lines
2.3 KiB
RPMSpec

#needsrootforbuild
Name: libnetfilter_conntrack
Version: 1.0.8
Release: 6
Summary: A userspace library providing a API
License: GPLv2+
URL: http://netfilter.org
Source0: http://netfilter.org/projects/libnetfilter_conntrack/files/%{name}-%{version}.tar.bz2
Patch0: enable-make-check-tests.patch
Patch1: backport-sync-uapi-header-with-nf-next.patch
BuildRequires: pkgconfig kernel-headers
BuildRequires: libmnl-devel >= 1.0.3 libnfnetlink-devel >= 1.0.1
BuildRequires: make
%description
libnetfilter_conntrack is a userspace library providing a programming
interface (API) to the in-kernel connection tracking state table. This
library is currently used by conntrack-tools among many other applications.
%package devel
Summary: The development files for libnetfilter_conntrack
BuildRequires: gcc
Requires: kernel-headers libnfnetlink-devel >= 1.0.1
Requires: %{name} = %{version}-%{release}
%description devel
This package contains development files.
%prep
%autosetup -p1
%build
%configure --disable-rpath
%make_build
%install
%make_install
%delete_la
%check
%if %{?openEuler:1}0
sed -i '/.\/ct_stress 10000 & .\/test_filter/d' tests/Makefile.in
%endif
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING
%{_libdir}/*.so.*
%files devel
%{_includedir}/libnetfilter_conntrack/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%changelog
* Fri Oct 27 2023 xingwei <xingwei14@h-partners.com> - 1.0.8-6
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:sync uapi header with nf next
* Mon Nov 28 2022 xingwei <xingwei14@h-partners.com> - 1.0.8-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add make as BuildRequires for rpmbuild
* Tue Sep 20 2022 gaihuiying <eaglegai@163.com> - 1.0.8-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove filter tests
* Tue Sep 13 2022 seuzw <930zhaowei@163.com> - 1.0.8-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:enable test
* Thu May 27 2021 lijingyuan <lijingyuan3@huawei.com> - 1.0.8-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Add the compilation dependency of gcc.
* Wed Jul 22 2020 zhangxingliang <zhangxingliang3@huawei.com> - 1.0.8-1
- Type:update
- ID:NA
- SUG:NA
- DESC:update to 1.0.8
* Mon Sep 16 2019 Yiru Wang <wangyiru1@huawei.com> - 1.0.6-7
- Pakcage init