[libnftables] Initial version
Kevin Fenzi
kevin at fedoraproject.org
Mon Dec 2 18:09:09 UTC 2013
commit 6060c7f252c889f493c37de672431d1376472aef
Author: Kevin Fenzi <kevin at scrye.com>
Date: Mon Dec 2 11:08:56 2013 -0700
Initial version
.gitignore | 1 +
libnftables.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1fa0254 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libnftables-0.0-20131130git.tar.gz
diff --git a/libnftables.spec b/libnftables.spec
new file mode 100644
index 0000000..3fe7778
--- /dev/null
+++ b/libnftables.spec
@@ -0,0 +1,72 @@
+%global gitcheckout 20131130
+
+Name: libnftables
+Version: 0
+Release: 0.2.%{gitcheckout}git%{?dist}
+Summary: Library for low-level interaction with nftables Netlink's API over libmnl
+
+License: GPLv2+
+URL: http://netfilter.org/projects/nftables/
+#
+# There is currently no upstream releases yet, so we pull from git
+# git clone git://git.netfilter.org/libnftables
+# git archive -o libnftables-0.0-%{gitcheckout}git.tar.gz --prefix=libnftables-0.0/ master
+#
+Source0: libnftables-0.0-%{gitcheckout}git.tar.gz
+
+BuildRequires: autogen
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: libmnl-devel
+
+%description
+A library for low-level interaction with nftables Netlink's API over libmnl.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q -n libnftables-0.0
+
+
+%build
+./autogen.sh
+%configure --disable-static --disable-silent-rules
+make %{?_smp_mflags}
+
+%check
+make %{?_smp_mflags} check
+cd tests
+./test-script.sh
+
+%install
+%make_install
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc COPYING
+%{_libdir}/*.so.*
+
+%files devel
+%{_libdir}/libnftables*.so
+%{_libdir}/pkgconfig/libnftables.pc
+%{_includedir}/libnftables
+
+%changelog
+* Mon Dec 02 2013 Kevin Fenzi <kevin at scrye.com> 0-0.2
+- Fixes from review.
+
+* Sat Nov 30 2013 Kevin Fenzi <kevin at scrye.com> 0-0.1
+- initial version for Fedora review
diff --git a/sources b/sources
index e69de29..15fc669 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+abfeabcb55982f446fa78d83b80293a0 libnftables-0.0-20131130git.tar.gz
More information about the scm-commits
mailing list