Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create packaging for libnetfilter_conntrack, use version 1.1.0 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
58 changes: 58 additions & 0 deletions rpm/libnetfilter_conntrack.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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

Requires: libnfnetlink >= 1.0.2

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkgconfig requirement is redundant.


%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