2014-12-26 18:52:35 +00:00
|
|
|
#global snapdate 20140903
|
2014-03-26 20:11:00 +00:00
|
|
|
|
|
|
|
Name: nftables
|
2018-05-05 02:28:51 +00:00
|
|
|
Version: 0.8.4
|
2017-10-23 00:47:19 +00:00
|
|
|
#Release: 0.1.%%{snapdate}git%%{?dist}
|
2018-03-03 23:31:20 +00:00
|
|
|
Release: 1%{?dist}
|
2014-12-26 18:52:35 +00:00
|
|
|
# Upstream released a 0.100 version, then 0.4. Need Epoch to get back on track.
|
|
|
|
Epoch: 1
|
2014-03-26 20:11:00 +00:00
|
|
|
Summary: Netfilter Tables userspace utillites
|
|
|
|
|
|
|
|
License: GPLv2
|
|
|
|
URL: http://netfilter.org/projects/nftables/
|
2014-12-26 18:52:35 +00:00
|
|
|
#Source0: http://ftp.netfilter.org/pub/nftables/snapshot/nftables-%{snapdate}.tar.bz2
|
|
|
|
Source0: http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2
|
2016-03-25 19:20:49 +00:00
|
|
|
Source1: nftables.service
|
2016-04-10 19:58:34 +00:00
|
|
|
Source2: nftables.conf
|
2014-03-26 20:11:00 +00:00
|
|
|
|
2014-12-26 18:52:35 +00:00
|
|
|
#BuildRequires: autogen
|
|
|
|
#BuildRequires: autoconf
|
|
|
|
#BuildRequires: automake
|
|
|
|
#BuildRequires: libtool
|
2014-03-26 20:11:00 +00:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: libmnl-devel
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: libnftnl-devel
|
|
|
|
BuildRequires: docbook2X
|
2016-03-25 19:20:49 +00:00
|
|
|
BuildRequires: systemd
|
2014-03-26 20:11:00 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Netfilter Tables userspace utilities.
|
|
|
|
|
2018-05-05 02:28:51 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development library for nftables / libnftables
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development tools and static libraries and header files for the libnftables library.
|
|
|
|
|
2014-03-26 20:11:00 +00:00
|
|
|
%prep
|
2014-12-26 18:52:35 +00:00
|
|
|
#setup -q -n nftables-%{snapdate}
|
|
|
|
%setup -q
|
2014-03-26 20:11:00 +00:00
|
|
|
|
|
|
|
%build
|
2014-12-26 18:52:35 +00:00
|
|
|
#./autogen.sh
|
|
|
|
%configure --disable-silent-rules
|
2014-03-26 20:11:00 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
2018-05-05 02:28:51 +00:00
|
|
|
|
|
|
|
# Don't ship static lib (for now at least)
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libnftables.a
|
|
|
|
|
2014-03-26 20:11:00 +00:00
|
|
|
chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man8/nft*
|
|
|
|
|
2016-03-25 19:20:49 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
|
|
|
cp -a %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/
|
|
|
|
|
2016-04-10 19:58:34 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
|
|
|
|
cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/
|
|
|
|
|
2018-03-03 23:31:20 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/nftables
|
|
|
|
|
2016-03-25 19:20:49 +00:00
|
|
|
%post
|
|
|
|
%systemd_post nftables.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun nftables.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart nftables.service
|
|
|
|
|
2018-05-05 02:28:51 +00:00
|
|
|
%post devel
|
|
|
|
%ldconfig_post
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ldconfig_postun
|
|
|
|
|
2014-03-26 20:11:00 +00:00
|
|
|
%files
|
2018-05-05 02:28:51 +00:00
|
|
|
%license COPYING
|
2014-03-26 20:11:00 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/nftables/
|
2016-04-10 19:58:34 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/nftables.conf
|
2014-03-26 20:11:00 +00:00
|
|
|
%{_sbindir}/nft
|
2018-05-05 02:28:51 +00:00
|
|
|
%{_libdir}/libnftables.so
|
2014-03-26 20:11:00 +00:00
|
|
|
%{_mandir}/man8/nft*
|
2016-03-25 19:20:49 +00:00
|
|
|
%{_unitdir}/nftables.service
|
2014-03-26 20:11:00 +00:00
|
|
|
|
2018-05-05 02:28:51 +00:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/libnftables.so.*
|
|
|
|
%{_libdir}/pkgconfig/libnftables.pc
|
|
|
|
|
2014-03-26 20:11:00 +00:00
|
|
|
%changelog
|
2018-05-05 02:28:51 +00:00
|
|
|
* Fri May 04 2018 Kevin Fenzi <kevin@scrye.com> - 0.8.4-1
|
|
|
|
- Update to 0.8.4. Fixes bug #1574096
|
|
|
|
|
2018-03-03 23:31:20 +00:00
|
|
|
* Sat Mar 03 2018 Kevin Fenzi <kevin@scrye.com> - 0.8.3-1
|
|
|
|
- Update to 0.8.3. Fixes bug #1551207
|
|
|
|
|
2018-02-08 04:12:05 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.8.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-05 19:36:28 +00:00
|
|
|
* Mon Feb 05 2018 Kevin Fenzi <kevin@scrye.com> - 0.8.2-1
|
|
|
|
- Update to 0.8.2. Fixes bug #1541582
|
|
|
|
|
2018-01-16 21:03:35 +00:00
|
|
|
* Tue Jan 16 2018 Kevin Fenzi <kevin@scrye.com> - 0.8.1-1
|
|
|
|
- Update to 0.8.1. Fixes bug #1534982
|
|
|
|
|
2017-10-23 00:47:19 +00:00
|
|
|
* Sun Oct 22 2017 Kevin Fenzi <kevin@scrye.com> - 0.8-1
|
|
|
|
- Update to 0.8.
|
|
|
|
|
2017-08-03 03:58:02 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.7-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 22:56:09 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 22:17:26 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-12 16:30:34 +00:00
|
|
|
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:0.7-2
|
|
|
|
- Rebuild for readline 7.x
|
|
|
|
|
2016-12-23 00:01:45 +00:00
|
|
|
* Thu Dec 22 2016 Kevin Fenzi <kevin@scrye.com> - 0.7-1
|
|
|
|
- Update to 0.7
|
|
|
|
|
2016-07-15 17:29:29 +00:00
|
|
|
* Fri Jul 15 2016 Kevin Fenzi <kevin@scrye.com> - 0.6-2
|
|
|
|
- Rebuild for new glibc symbols
|
|
|
|
|
2016-06-02 20:12:21 +00:00
|
|
|
* Thu Jun 02 2016 Kevin Fenzi <kevin@scrye.com> - 0.6-1
|
|
|
|
- Update to 0.6.
|
|
|
|
|
2016-04-10 19:58:34 +00:00
|
|
|
* Sun Apr 10 2016 Kevin Fenzi <kevin@scrye.com> - 0.5-4
|
|
|
|
- Add example config files and move config to /etc/sysconfig. Fixes bug #1313936
|
|
|
|
|
2016-03-25 19:20:49 +00:00
|
|
|
* Fri Mar 25 2016 Kevin Fenzi <kevin@scrye.com> - 0.5-3
|
|
|
|
- Add systemd unit file. Fixes bug #1313936
|
|
|
|
|
2016-02-04 09:20:28 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-09-18 00:06:33 +00:00
|
|
|
* Thu Sep 17 2015 Kevin Fenzi <kevin@scrye.com> 0.5-1
|
|
|
|
- Update to 0.5
|
|
|
|
|
2015-06-17 21:48:40 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-10 18:11:51 +00:00
|
|
|
* Sat Jan 10 2015 Kevin Fenzi <kevin@scrye.com> 0.4-2
|
|
|
|
- Add patch to fix nft -f dep gen.
|
|
|
|
|
2014-12-26 18:52:35 +00:00
|
|
|
* Fri Dec 26 2014 Kevin Fenzi <kevin@scrye.com> 0.4-1
|
|
|
|
- Update to 0.4
|
|
|
|
- Add Epoch to fix versioning.
|
|
|
|
|
2014-09-03 20:23:23 +00:00
|
|
|
* Wed Sep 03 2014 Kevin Fenzi <kevin@scrye.com> 0.100-4.20140903git
|
|
|
|
- Update to 20140903 snapshot
|
|
|
|
|
2014-08-17 11:48:47 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-4.20140704git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-04 17:56:16 +00:00
|
|
|
* Fri Jul 04 2014 Kevin Fenzi <kevin@scrye.com> 0.100-3.20140704git
|
|
|
|
- Update to new snapshot
|
|
|
|
|
2014-06-07 12:46:49 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-2.20140426git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-26 17:34:30 +00:00
|
|
|
* Sat Apr 26 2014 Kevin Fenzi <kevin@scrye.com> 0.100-1.20140426git
|
|
|
|
- Update t0 20140426
|
|
|
|
|
2014-03-30 18:17:33 +00:00
|
|
|
* Sun Mar 30 2014 Kevin Fenzi <kevin@scrye.com> 0.100-1.20140330git
|
|
|
|
- Update to 20140330 snapshot
|
|
|
|
- Sync versions to be post 0.100 release.
|
|
|
|
|
2014-03-26 20:11:00 +00:00
|
|
|
* Wed Mar 26 2014 Kevin Fenzi <kevin@scrye.com> 0-0.7.20140326git
|
|
|
|
- Update to 20140326 snapshot
|
|
|
|
- Fix permissions on man pages.
|
|
|
|
|
|
|
|
* Mon Mar 24 2014 Kevin Fenzi <kevin@scrye.com> 0-0.6.20140324git
|
|
|
|
- Update to 20140324 snapshot
|
|
|
|
|
|
|
|
* Fri Mar 07 2014 Kevin Fenzi <kevin@scrye.com> 0-0.5.20140307git
|
|
|
|
- Update to 20140307
|
|
|
|
|
|
|
|
* Sat Jan 25 2014 Kevin Fenzi <kevin@scrye.com> 0-0.4.20140125git
|
|
|
|
- Update to 20140125 snapshot
|
|
|
|
|
|
|
|
* Sat Jan 18 2014 Kevin Fenzi <kevin@scrye.com> 0-0.3.20140118git
|
|
|
|
- Update to 20140118 snapshot
|
|
|
|
- Fixed License tag to be correct
|
|
|
|
- Fixed changelog
|
|
|
|
- nft scripts now use full path for nft
|
|
|
|
- Fixed man page building
|
|
|
|
- Dropped unneeded rm in install
|
|
|
|
- Patched build to not be silent.
|
|
|
|
|
|
|
|
* Tue Dec 03 2013 Kevin Fenzi <kevin@scrye.com> 0-0.2.20131202git
|
|
|
|
- Use upstream snapshots for source.
|
|
|
|
- Use 0 for version.
|
|
|
|
|
|
|
|
* Sat Nov 30 2013 Kevin Fenzi <kevin@scrye.com> 0-0.1
|
|
|
|
- initial version for Fedora review
|