diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ebc317f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libnftnl-1.0.6.tar.bz2 diff --git a/.libnftnl.metadata b/.libnftnl.metadata new file mode 100644 index 0000000..0758752 --- /dev/null +++ b/.libnftnl.metadata @@ -0,0 +1 @@ +453f1c2d99d219baeca4ba42aa874f02d2ddf2f7 SOURCES/libnftnl-1.0.6.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/libnftnl.spec b/SPECS/libnftnl.spec new file mode 100644 index 0000000..608c7b2 --- /dev/null +++ b/SPECS/libnftnl.spec @@ -0,0 +1,52 @@ +Name: libnftnl +Version: 1.0.6 +Release: 1%{?dist} +Summary: Library for low-level interaction with nftables Netlink's API over libmnl +License: GPLv2+ +URL: http://netfilter.org/projects/libnftnl/ +Source0: http://ftp.netfilter.org/pub/libnftnl/libnftnl-%{version}.tar.bz2 +BuildRequires: libmnl-devel +#BuildRequires: mxml-devel +BuildRequires: jansson-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 + +%build +%configure --disable-static --disable-silent-rules \ + --with-json-parsing --without-xml-parsing +make %{?_smp_mflags} + +%check +make %{?_smp_mflags} check + +%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}/libnft*.so +%{_libdir}/pkgconfig/libnftnl.pc +%{_includedir}/libnftnl + +%changelog +* Wed Jun 29 2016 Phil Sutter 1.0.6-1 +- Rebased from Fedora Rawhide and adjusted for RHEL review.