1 | Name: perl-Socket-GetAddrInfo |
---|
2 | Version: 0.19 |
---|
3 | Release: 2%{?_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 | * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.19-2 |
---|
70 | - build with Perl 5.16 |
---|
71 | |
---|
72 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.19-1 |
---|
73 | - initial build for Vine Linux |
---|
74 | |
---|
75 | * Thu Jan 19 2012 Petr Šabata <contyk@redhat.com> - 0.19-1 |
---|
76 | - Just updating to 0.19, as it's needed by current POE::* packages |
---|
77 | |
---|
78 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-5 |
---|
79 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
80 | |
---|
81 | * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.16-4 |
---|
82 | - Perl mass rebuild |
---|
83 | |
---|
84 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3 |
---|
85 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
86 | |
---|
87 | * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-2 |
---|
88 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
89 | |
---|
90 | * Sun Aug 22 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.16-1 |
---|
91 | - Update to 0.16 |
---|
92 | |
---|
93 | * Wed Jun 2 2010 Petr Pisar <ppisar@redhat.com> - 0.15-6 |
---|
94 | - Rebuild against perl-5.12 |
---|
95 | |
---|
96 | * Fri May 07 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.15-5 |
---|
97 | - Add BR perl(ExtUtils::CChecker) |
---|
98 | - Add BR perl(Test::Warn) |
---|
99 | |
---|
100 | * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-2 |
---|
101 | - Mass rebuild with perl-5.12.0 |
---|
102 | |
---|
103 | * Mon Apr 19 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.15-1 |
---|
104 | - Update to 0.15 |
---|
105 | |
---|
106 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.12-2 |
---|
107 | - rebuild against perl 5.10.1 |
---|
108 | |
---|
109 | * Thu Jul 9 2009 kwizart < kwizart at gmail.com > - 0.12-1 |
---|
110 | - Initial spec |
---|