Browse code

iptables: Updated to 1.8.0 and libnftnl: New pkg

iptables update to 1.8.0 needs libnftnl package
for building. So, added new package libnftnl.

Change-Id: I7ad62ff3a2ffaf5df23233b220fbb767c63e15be
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5622
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Ankit Jain authored on 2018/09/11 02:39:39
Showing 2 changed files
... ...
@@ -1,19 +1,22 @@
1 1
 Summary:        Linux kernel packet control tool
2 2
 Name:           iptables
3
-Version:        1.6.1
4
-Release:        4%{?dist}
3
+Version:        1.8.0
4
+Release:        1%{?dist}
5 5
 License:        GPLv2+
6 6
 URL:            http://www.netfilter.org/projects/iptables
7 7
 Group:          System Environment/Security
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2
11
-%define sha1    iptables-=b2592490ca7a6c2cd0f069e167a4337c86acdf91
11
+%define sha1    %{name}-%{version}=04924fd00dbaf8189f0777af90f7bdb73ac7e47c
12 12
 Source1:        iptables.service
13 13
 Source2:        iptables
14 14
 Source3:        iptables.stop
15 15
 Source4:        ip4save
16 16
 Source5:        ip6save
17
+BuildRequires:  jansson-devel
18
+BuildRequires:  libmnl-devel
19
+BuildRequires:  libnftnl-devel
17 20
 BuildRequires:  systemd
18 21
 Requires:       systemd
19 22
 %description
... ...
@@ -97,6 +100,8 @@ rm -rf %{buildroot}/*
97 97
 %{_mandir}/man3/*
98 98
 
99 99
 %changelog
100
+*   Mon Sep 10 2018 Ankit Jain <ankitja@vmware.com> 1.8.0-1
101
+-   Updated to version 1.8.0
100 102
 *   Thu Aug 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.6.1-4
101 103
 -   fix ip4save script for upgrade issues.
102 104
 *   Mon Jul 24 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.6.1-3
103 105
new file mode 100644
... ...
@@ -0,0 +1,60 @@
0
+Summary:        Library for low-level netlink programming interface to the in-kernel nf_tables subsystem
1
+Name:           libnftnl
2
+Version:        1.1.1
3
+Release:        1%{?dist}
4
+Group:          System Environment/Libraries
5
+Vendor:         VMware, Inc.
6
+License:        GPLv2+
7
+URL:            http://netfilter.org/projects/libnftnl/
8
+Source0:        https://netfilter.org/projects/libnftnl/files/%{name}-%{version}.tar.bz2
9
+%define sha1 %{name}-%{version}=d2be642a54e0f105cb5564471ae4aaaed8b97ca6
10
+Distribution:   Photon
11
+BuildRequires:  libmnl-devel
12
+BuildRequires:  jansson-devel
13
+
14
+%description
15
+libnftnl is a userspace library providing a low-level netlink programming interface (API) to the in-kernel nf_tables subsystem.
16
+
17
+%package devel
18
+Summary:    Development files for %{name}
19
+Group:      Development/Libraries
20
+Requires:   %{name} = %{version}-%{release}
21
+%description    devel
22
+Development files for %{name}
23
+
24
+%prep
25
+%setup -q
26
+
27
+%build
28
+./configure \
29
+         --prefix=%{_prefix} \
30
+         --disable-static \
31
+         --disable-silent-rules \
32
+         --with-json-parsing
33
+make %{?_smp_mflags}
34
+
35
+%check
36
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
37
+
38
+%install
39
+make DESTDIR=%{buildroot} install
40
+find %{buildroot} -name '*.la' -delete
41
+
42
+%post -p /sbin/ldconfig
43
+
44
+%postun -p /sbin/ldconfig
45
+
46
+%files
47
+%defattr(-,root,root)
48
+%doc COPYING
49
+%{_libdir}/*.so.*
50
+
51
+%files devel
52
+%defattr(-,root,root)
53
+%{_libdir}/%{name}*.so
54
+%{_libdir}/pkgconfig/%{name}.pc
55
+%{_includedir}/%{name}
56
+
57
+%changelog
58
+* Mon Sep 10 2018 Ankit Jain <ankitja@vmware.com> 1.1.1-1
59
+- Initial version