commit 968423cc2c6f2ea9962e36a068f3c7daabd8784f Author: Emmanuel Seyman <emmanuel@xxxxxxxxx> Date: Sun Jun 9 23:56:19 2013 +0200 Update to 0.22 and clean up spec file .gitignore | 1 + perl-Socket-GetAddrInfo.spec | 36 +++++++++++++++++++----------------- sources | 2 +- 3 files changed, 21 insertions(+), 18 deletions(-) --- diff --git a/.gitignore b/.gitignore index 585f117..96bc8ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ Socket-GetAddrInfo-0.15.tar.gz /Socket-GetAddrInfo-0.16.tar.gz /Socket-GetAddrInfo-0.19.tar.gz +/Socket-GetAddrInfo-0.22.tar.gz diff --git a/perl-Socket-GetAddrInfo.spec b/perl-Socket-GetAddrInfo.spec index 9c11d8f..bb503eb 100644 --- a/perl-Socket-GetAddrInfo.spec +++ b/perl-Socket-GetAddrInfo.spec @@ -1,14 +1,13 @@ Name: perl-Socket-GetAddrInfo -Version: 0.19 -Release: 4%{?dist} +Version: 0.22 +Release: 1%{?dist} Summary: RFC 2553's "getaddrinfo" and "getnameinfo" functions -Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Socket-GetAddrInfo/ Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Socket-GetAddrInfo-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::CBuilder) @@ -22,6 +21,8 @@ BuildRequires: perl(Test::More) BuildRequires: perl(Test::Warn) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%{?perl_default_filter} + %description The RFC 2553 functions getaddrinfo and getnameinfo provide an abstracted way to convert between a pair of host name/service name and socket @@ -34,14 +35,12 @@ converts a socket address back into its host name/service name pair. %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" -make %{?_smp_mflags} +%{__perl} Build.PL installdirs=vendor %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 + find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' @@ -50,22 +49,25 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' %check %{?_with_tests:export I_CAN_HAS_INTERNETS=1} -make test - -%clean -rm -rf $RPM_BUILD_ROOT +./Build test %files -%defattr(-,root,root,-) -%doc Changes examples LICENSE README -%{perl_vendorarch}/auto/* -%{perl_vendorarch}/Socket* +%doc Changes LICENSE README +%{perl_vendorlib}/Socket* +%{_bindir}/get* +%{_mandir}/man1/*.1* %{_mandir}/man3/*.3* %changelog +* Sun Jun 09 2013 Emmanuel Seyman <emmanuel@xxxxxxxxx> - 0.22-1 +- Update to 0.22 +- Switch to Build.PL as a build mechanism +- Add perl default filter +- Remove no-longer-used macros + * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.19-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index 86ed44c..562e690 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fa9290f9744975db2b28b244f9df9766 Socket-GetAddrInfo-0.19.tar.gz +54c0d3a08757a1eeb118c1a5f54f6e1b Socket-GetAddrInfo-0.22.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel