-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libnetfilter-conntrack] Create packaging, use version 1.0.9. JB#60770
Create initial packaging, use the latest tagged version 1.1.0. Update README.md.
- Loading branch information
1 parent
e5ae4f7
commit 3054f85
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |