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