1 | Name: nftables |
---|
2 | Version: 0.9.2 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: Netfilter Tables userspace utillites |
---|
5 | |
---|
6 | License: GPLv2 |
---|
7 | Group: System Environment/Base |
---|
8 | URL: http://netfilter.org/projects/nftables/ |
---|
9 | |
---|
10 | Source0: http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2 |
---|
11 | Source1: nftables.init |
---|
12 | Source2: nftables.conf |
---|
13 | |
---|
14 | Vendor: Project Vine |
---|
15 | Distribution: Vine Linux |
---|
16 | |
---|
17 | #BuildRequires: autogen |
---|
18 | #BuildRequires: autoconf |
---|
19 | #BuildRequires: automake |
---|
20 | #BuildRequires: libtool |
---|
21 | BuildRequires: flex |
---|
22 | BuildRequires: bison |
---|
23 | BuildRequires: libmnl-devel |
---|
24 | BuildRequires: gmp-devel |
---|
25 | BuildRequires: readline-devel |
---|
26 | BuildRequires: libnftnl-devel |
---|
27 | BuildRequires: asciidoc |
---|
28 | BuildRequires: docbook2X |
---|
29 | BuildRequires: jansson-devel |
---|
30 | BuildRequires: iptables-devel |
---|
31 | BuildRequires: python-rpm-macros |
---|
32 | |
---|
33 | %description |
---|
34 | Netfilter Tables userspace utilities. |
---|
35 | |
---|
36 | %package devel |
---|
37 | Summary: Development library for nftables / libnftables |
---|
38 | Requires: %{name} = %{version}-%{release} |
---|
39 | Requires: pkgconfig |
---|
40 | |
---|
41 | %description devel |
---|
42 | Development tools and static libraries and header files for |
---|
43 | the libnftables library. |
---|
44 | |
---|
45 | %prep |
---|
46 | #setup -q -n nftables-%{snapdate} |
---|
47 | %setup -q |
---|
48 | |
---|
49 | %build |
---|
50 | #./autogen.sh |
---|
51 | %configure --disable-silent-rules --with-xtables --with-json --enable-python=no |
---|
52 | make %{?_smp_mflags} |
---|
53 | |
---|
54 | %install |
---|
55 | %make_install |
---|
56 | find %{buildroot} -name '*.la' -exec rm -f {} ';' |
---|
57 | chmod 644 %{buildroot}/%{_mandir}/man8/nft* |
---|
58 | |
---|
59 | # Don't ship static lib (for now at least) |
---|
60 | rm -f $RPM_BUILD_ROOT/%{_libdir}/libnftables.a |
---|
61 | |
---|
62 | chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man8/nft* |
---|
63 | |
---|
64 | mkdir -p $RPM_BUILD_ROOT/%{_initdir} |
---|
65 | install -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initdir}/nftables |
---|
66 | |
---|
67 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig |
---|
68 | cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/ |
---|
69 | chmod 600 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/nftables.conf |
---|
70 | |
---|
71 | mkdir -m 700 -p $RPM_BUILD_ROOT/%{_sysconfdir}/nftables |
---|
72 | chmod 600 $RPM_BUILD_ROOT/%{_sysconfdir}/nftables/*.nft |
---|
73 | chmod 700 $RPM_BUILD_ROOT/%{_sysconfdir}/nftables |
---|
74 | |
---|
75 | rm -rf %{buildroot}%{python_sitelib}/* |
---|
76 | |
---|
77 | %post |
---|
78 | /sbin/ldconfig |
---|
79 | /sbin/chkconfig --add nftables |
---|
80 | |
---|
81 | %preun |
---|
82 | if [ "$1" = 0 ]; then |
---|
83 | /sbin/chkconfig --del nftables |
---|
84 | fi |
---|
85 | |
---|
86 | %postun -p /sbin/ldconfig |
---|
87 | |
---|
88 | %files |
---|
89 | %license COPYING |
---|
90 | %doc TODO |
---|
91 | %config(noreplace) %{_sysconfdir}/nftables/ |
---|
92 | %config(noreplace) %{_sysconfdir}/sysconfig/nftables.conf |
---|
93 | %{_libdir}/*.so.* |
---|
94 | %{_sbindir}/nft |
---|
95 | %{_mandir}/man5/libnftables-json* |
---|
96 | %{_mandir}/man8/nft* |
---|
97 | %{_initdir}/nftables |
---|
98 | |
---|
99 | %files devel |
---|
100 | %{_libdir}/pkgconfig/*.pc |
---|
101 | %{_libdir}/*.so |
---|
102 | %{_includedir}/* |
---|
103 | %{_mandir}/man3/libnftables* |
---|
104 | |
---|
105 | |
---|
106 | %changelog |
---|
107 | * Mon Sep 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.2-1 |
---|
108 | - new upstream release. |
---|
109 | |
---|
110 | * Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-1 |
---|
111 | - new upstream release. |
---|
112 | - dropped Patch0: fixed in upstream. |
---|
113 | |
---|
114 | * Sat Sep 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.4-4 |
---|
115 | - added Group tag |
---|
116 | |
---|
117 | * Wed Jul 8 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-3 |
---|
118 | - initial build for Vine Linux. |
---|
119 | |
---|
120 | * Sat Jan 10 2015 Kevin Fenzi <kevin@scrye.com> 0.4-2 |
---|
121 | - Add patch to fix nft -f dep gen. |
---|
122 | |
---|
123 | * Fri Dec 26 2014 Kevin Fenzi <kevin@scrye.com> 0.4-1 |
---|
124 | - Update to 0.4 |
---|
125 | - Add Epoch to fix versioning. |
---|
126 | |
---|
127 | * Wed Sep 03 2014 Kevin Fenzi <kevin@scrye.com> 0.100-4.20140903git |
---|
128 | - Update to 20140903 snapshot |
---|
129 | |
---|
130 | * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-4.20140704git |
---|
131 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
132 | |
---|
133 | * Fri Jul 04 2014 Kevin Fenzi <kevin@scrye.com> 0.100-3.20140704git |
---|
134 | - Update to new snapshot |
---|
135 | |
---|
136 | * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-2.20140426git |
---|
137 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
138 | |
---|
139 | * Sat Apr 26 2014 Kevin Fenzi <kevin@scrye.com> 0.100-1.20140426git |
---|
140 | - Update t0 20140426 |
---|
141 | |
---|
142 | * Sun Mar 30 2014 Kevin Fenzi <kevin@scrye.com> 0.100-1.20140330git |
---|
143 | - Update to 20140330 snapshot |
---|
144 | - Sync versions to be post 0.100 release. |
---|
145 | |
---|
146 | * Wed Mar 26 2014 Kevin Fenzi <kevin@scrye.com> 0-0.7.20140326git |
---|
147 | - Update to 20140326 snapshot |
---|
148 | - Fix permissions on man pages. |
---|
149 | |
---|
150 | * Mon Mar 24 2014 Kevin Fenzi <kevin@scrye.com> 0-0.6.20140324git |
---|
151 | - Update to 20140324 snapshot |
---|
152 | |
---|
153 | * Fri Mar 07 2014 Kevin Fenzi <kevin@scrye.com> 0-0.5.20140307git |
---|
154 | - Update to 20140307 |
---|
155 | |
---|
156 | * Sat Jan 25 2014 Kevin Fenzi <kevin@scrye.com> 0-0.4.20140125git |
---|
157 | - Update to 20140125 snapshot |
---|
158 | |
---|
159 | * Sat Jan 18 2014 Kevin Fenzi <kevin@scrye.com> 0-0.3.20140118git |
---|
160 | - Update to 20140118 snapshot |
---|
161 | - Fixed License tag to be correct |
---|
162 | - Fixed changelog |
---|
163 | - nft scripts now use full path for nft |
---|
164 | - Fixed man page building |
---|
165 | - Dropped unneeded rm in install |
---|
166 | - Patched build to not be silent. |
---|
167 | |
---|
168 | * Tue Dec 03 2013 Kevin Fenzi <kevin@scrye.com> 0-0.2.20131202git |
---|
169 | - Use upstream snapshots for source. |
---|
170 | - Use 0 for version. |
---|
171 | |
---|
172 | * Sat Nov 30 2013 Kevin Fenzi <kevin@scrye.com> 0-0.1 |
---|
173 | - initial version for Fedora review |
---|