perl-IPTables-libiptc-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. %define real_name IPTables-libiptc
  2. Summary: Perl extension for iptables libiptc
  3. Name: perl-IPTables-libiptc
  4. Version: 0.52
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/IPTables-libiptc/
  9. Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAWK/%{real_name}-%{version}.tar.gz
  10. # RT#70639
  11. Patch0: %{name}-0.51-Support-iptables-1.4.12.patch
  12. # RT#70639
  13. Patch1: IPTables-libiptc-0.52-Support-for-1.4.16.2.patch
  14. # RT#70639, bug #992659
  15. Patch2: IPTables-libiptc-0.52-Support-for-1.4.18.patch
  16. # croak() expects formatting string, bug #1106081
  17. Patch3: IPTables-libiptc-0.52-Fix-GCC-format-security-warning.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  19. BuildRequires: iptables-devel >= 1.4
  20. BuildRequires: perl
  21. BuildRequires: perl(AutoLoader)
  22. BuildRequires: perl(Carp)
  23. BuildRequires: perl(ExtUtils::MakeMaker)
  24. BuildRequires: perl(Test::More)
  25. BuildRequires: perl(File::Basename)
  26. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  27. Requires: perl(AutoLoader)
  28. Requires: perl(Carp)
  29. Requires: perl(File::Basename)
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. %{?perl_default_filter}
  33. %description
  34. This package provides a perl interface to the netfilter/iptables
  35. C-code and library C<libiptc>.
  36. %prep
  37. %setup -q -n %{real_name}-%{version}
  38. %patch0 -p1 -b .1412
  39. %patch1 -p1 -b .1416
  40. %patch2 -p1 -b .1418
  41. %patch3 -p1
  42. %build
  43. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX=%{_prefix}
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf %{buildroot}
  47. make pure_install DESTDIR=%{buildroot}
  48. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  49. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  50. %{_fixperms} %{buildroot}
  51. %check
  52. make test
  53. %clean
  54. rm -rf %{buildroot}
  55. %files
  56. %defattr(-, root, root, -)
  57. %doc Changes META.yml README
  58. %{perl_vendorarch}/*
  59. %{_mandir}/man?/*
  60. %changelog
  61. * Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.52-1
  62. - updated to 0.52
  63. - added Patch0, 1, 2 and 3 from Fedora
  64. - built with perl 5.16.3
  65. * Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.51-1
  66. - initial build for Vine Linux