perl-IPTables-ChainMgr-vl.spec 3.5 KB

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