source: projects/specs/trunk/n/nftables/nftables-vl.spec @ 12170

Revision 12170, 4.8 KB checked in by tomop, 5 years ago (diff)

updated netfilter packages

docbook2X-0.8.8-5
libnftnl-1.1.4-1
iptables-1.8.3-1
nftables-0.9.2-1

Line 
1Name:           nftables
2Version:        0.9.2
3Release:        1%{?_dist_release}
4Summary:        Netfilter Tables userspace utillites
5
6License:        GPLv2
7Group:          System Environment/Base
8URL:            http://netfilter.org/projects/nftables/
9
10Source0:        http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2
11Source1:        nftables.init
12Source2:        nftables.conf
13
14Vendor:         Project Vine
15Distribution:   Vine Linux
16
17#BuildRequires: autogen
18#BuildRequires: autoconf
19#BuildRequires: automake
20#BuildRequires: libtool
21BuildRequires: flex
22BuildRequires: bison
23BuildRequires: libmnl-devel
24BuildRequires: gmp-devel
25BuildRequires: readline-devel
26BuildRequires: libnftnl-devel
27BuildRequires: asciidoc
28BuildRequires: docbook2X
29BuildRequires: jansson-devel
30BuildRequires: iptables-devel
31BuildRequires: python-rpm-macros
32
33%description
34 Netfilter Tables userspace utilities.
35
36%package        devel
37Summary:        Development library for nftables / libnftables
38Requires:       %{name} = %{version}-%{release}
39Requires:       pkgconfig
40
41%description devel
42 Development tools and static libraries and header files for
43the 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
52make %{?_smp_mflags}
53
54%install
55%make_install
56find %{buildroot} -name '*.la' -exec rm -f {} ';'
57chmod 644 %{buildroot}/%{_mandir}/man8/nft*
58
59# Don't ship static lib (for now at least)
60rm -f $RPM_BUILD_ROOT/%{_libdir}/libnftables.a
61
62chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man8/nft*
63
64mkdir -p $RPM_BUILD_ROOT/%{_initdir}
65install -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initdir}/nftables
66
67mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
68cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/
69chmod 600 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/nftables.conf
70
71mkdir -m 700 -p $RPM_BUILD_ROOT/%{_sysconfdir}/nftables
72chmod 600 $RPM_BUILD_ROOT/%{_sysconfdir}/nftables/*.nft
73chmod 700 $RPM_BUILD_ROOT/%{_sysconfdir}/nftables
74
75rm -rf %{buildroot}%{python_sitelib}/*
76
77%post
78/sbin/ldconfig
79/sbin/chkconfig --add nftables
80
81%preun
82if [ "$1" = 0 ]; then
83        /sbin/chkconfig --del nftables
84fi
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
Note: See TracBrowser for help on using the repository browser.