perl-IPTables-ChainMgr-vl.spec 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Name: perl-IPTables-ChainMgr
  2. Version: 0.9.9
  3. Release: 1%{?_dist_release}
  4. Summary: Perl extension for manipulating iptables policies
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://www.cipherdyne.org/modules/
  8. Source0: http://www.cipherdyne.org/modules/IPTables-ChainMgr-%{version}.tar.bz2
  9. Source1: http://www.cipherdyne.org/modules/IPTables-ChainMgr-%{version}.tar.bz2.asc
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(IPTables::Parse), perl(NetAddr::IP)
  13. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: shaolin
  17. %description
  18. The IPTables::ChainMgr package provides an interface to manipulate iptables
  19. policies on Linux systems through the direct execution of iptables
  20. commands. Although making a perl extension of libiptc provided by the iptables
  21. project is possible, it is easy to just execute iptables commands directly in
  22. order to both parse and change the configuration of the policy. Further, this
  23. simplifies installation since the only external requirement is (in the spirit
  24. of scripting) to be able to point IPTables::ChainMgr at an installed iptables
  25. binary instead of having to compile against a library.
  26. %prep
  27. %setup -q -n IPTables-ChainMgr-%{version}
  28. %build
  29. %{__perl} Makefile.PL INSTALLDIRS=vendor
  30. make %{?_smp_mflags}
  31. %install
  32. rm -rf %{buildroot}
  33. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  34. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  35. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  36. %{_fixperms} %{buildroot}/*
  37. %check
  38. make test
  39. %clean
  40. rm -rf %{buildroot}
  41. %files
  42. %defattr(-,root,root,-)
  43. %doc Changes README
  44. %{perl_vendorlib}/*
  45. %{_mandir}/man3/*
  46. %changelog
  47. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.9-1
  48. - initial build for Vine Linux
  49. * Mon Feb 27 2012 Miloslav Trmač <mitr@redhat.com> - 0.9.9-1
  50. - Update to IPTables-ChainMgr-0.9.9
  51. * Tue Jan 10 2012 Miloslav Trmač <mitr@redhat.com> - 0.9-9
  52. - Avoid deprecated use of qw()
  53. Resolves: #771781
  54. * Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.9-8
  55. - Perl mass rebuild
  56. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-7
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  58. * Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.9-6
  59. - 661697 rebuild for fixing problems with vendorach/lib
  60. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com>
  61. - Mass rebuild with perl-5.12.0
  62. - Drop no longer required references to BuildRoot
  63. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-4
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  65. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  67. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  69. * Fri Feb 13 2009 Miloslav Trmač <mitr@redhat.com> - 0.9-1
  70. - Update to IPTables-ChainMgr-0.9.
  71. * Tue Oct 21 2008 Miloslav Trmač <mitr@redhat.com> - 0.8-1
  72. - Update to IPTables-ChainMgr-0.8.
  73. * Wed Jul 30 2008 Miloslav Trmač <mitr@redhat.com> 0.7-1
  74. - Initial package.