nftables-vl.spec 4.8 KB

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