Skip to content

Commit

Permalink
[libnetfilter-conntrack] Create packaging, use version 1.0.9. JB#60770
Browse files Browse the repository at this point in the history
Create initial packaging, use the latest tagged version 1.1.0.

Update README.md.
  • Loading branch information
LaakkonenJussi committed Nov 20, 2024
1 parent e5ae4f7 commit 3054f85
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "upstream"]
path = upstream
url = https://github.com/sailfishos-mirror/libnetfilter_conntrack
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# libnetfilter_conntrack

libnetfilter_conntrack is a userspace library providing a programming
interface (API) to the in-kernel connection tracking state table.

https://netfilter.org/projects/libnetfilter_conntrack
56 changes: 56 additions & 0 deletions rpm/libnetfilter_conntrack.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Name: libnetfilter_conntrack
Version: 1.1.0
Release: 1
Summary: Netfilter conntrack userspace library
License: GPLv2
URL: https://github.com/sailfishos/libnetfilter_conntrack
Source0: %{name}-%{version}.tar.bz2

BuildRequires: gcc
BuildRequires: gnupg2
BuildRequires: kernel-headers
BuildRequires: libmnl-devel >= 1.0.3
BuildRequires: libnfnetlink-devel >= 1.0.1
BuildRequires: make autoconf automake libtool
BuildRequires: pkgconfig

%description
libnetfilter_conntrack is a userspace library providing a programming
interface (API) to the in-kernel connection tracking state table.

%package devel
Summary: Netfilter conntrack userspace library
Requires: %{name} = %{version}-%{release}, libnfnetlink-devel >= 1.0.1
Requires: kernel-headers

%description devel
libnetfilter_conntrack is a userspace library providing a programming
interface (API) to the in-kernel connection tracking state table.

%prep
%autosetup -p1 -n %{name}-%{version}/upstream

%build
%autogen
autoreconf -vi
%configure --disable-static --disable-rpath

%{make_build}

%install
%{make_install}
find $RPM_BUILD_ROOT -type f -name "*.la" -delete

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%license COPYING
%{_libdir}/*.so.*

%files devel
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/libnetfilter_conntrack
%{_includedir}/libnetfilter_conntrack/*.h
1 change: 1 addition & 0 deletions upstream
Submodule upstream added at a722c6

0 comments on commit 3054f85

Please sign in to comment.