perl-Socket-GetAddrInfo-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Name: perl-Socket-GetAddrInfo
  2. Version: 0.19
  3. Release: 2%{?_dist_release}
  4. Summary: RFC 2553's "getaddrinfo" and "getnameinfo" functions
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Socket-GetAddrInfo/
  8. Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Socket-GetAddrInfo-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildRequires: perl(Carp)
  11. BuildRequires: perl(Exporter)
  12. BuildRequires: perl(ExtUtils::CBuilder)
  13. BuildRequires: perl(ExtUtils::CChecker)
  14. BuildRequires: perl(Module::Build)
  15. BuildRequires: perl(Module::Build::Compat)
  16. BuildRequires: perl(Scalar::Util)
  17. BuildRequires: perl(Socket)
  18. BuildRequires: perl(Test::Exception)
  19. BuildRequires: perl(Test::More)
  20. BuildRequires: perl(Test::Warn)
  21. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  22. %description
  23. The RFC 2553 functions getaddrinfo and getnameinfo provide an abstracted
  24. way to convert between a pair of host name/service name and socket
  25. addresses, or vice versa. getaddrinfo converts names into a set of
  26. arguments to pass to the socket() and connect() syscalls, and getnameinfo
  27. converts a socket address back into its host name/service name pair.
  28. %prep
  29. %setup -q -n Socket-GetAddrInfo-%{version}
  30. %build
  31. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  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} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  38. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  39. %{_fixperms} %{buildroot}/*
  40. %check
  41. %{?_with_tests:export I_CAN_HAS_INTERNETS=1}
  42. make test
  43. %clean
  44. rm -rf %{buildroot}
  45. %files
  46. %defattr(-,root,root,-)
  47. %doc Changes examples LICENSE README
  48. %{perl_vendorarch}/auto/*
  49. %{perl_vendorarch}/Socket*
  50. %{_mandir}/man3/*.3*
  51. %changelog
  52. * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.19-2
  53. - build with Perl 5.16
  54. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.19-1
  55. - initial build for Vine Linux
  56. * Thu Jan 19 2012 Petr Šabata <contyk@redhat.com> - 0.19-1
  57. - Just updating to 0.19, as it's needed by current POE::* packages
  58. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-5
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  60. * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.16-4
  61. - Perl mass rebuild
  62. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  64. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-2
  65. - 661697 rebuild for fixing problems with vendorach/lib
  66. * Sun Aug 22 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.16-1
  67. - Update to 0.16
  68. * Wed Jun 2 2010 Petr Pisar <ppisar@redhat.com> - 0.15-6
  69. - Rebuild against perl-5.12
  70. * Fri May 07 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.15-5
  71. - Add BR perl(ExtUtils::CChecker)
  72. - Add BR perl(Test::Warn)
  73. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-2
  74. - Mass rebuild with perl-5.12.0
  75. * Mon Apr 19 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.15-1
  76. - Update to 0.15
  77. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.12-2
  78. - rebuild against perl 5.10.1
  79. * Thu Jul 9 2009 kwizart < kwizart at gmail.com > - 0.12-1
  80. - Initial spec