commit dec874131da9efc4bd6df86fb6b3ab3368948c28 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Nov 25 10:13:10 2011 +0100 Import .gitignore | 1 + perl-Socket.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..e69d7d5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Socket-1.94_07.tar.gz diff --git a/perl-Socket.spec b/perl-Socket.spec new file mode 100644 index 0000000..cfc3b5f --- /dev/null +++ b/perl-Socket.spec @@ -0,0 +1,60 @@ +%global cpan_version 1.94_07 +Name: perl-Socket +Version: %(eval echo '%{cpan_version}' | tr '_' '.') +Release: 1%{?dist} +Summary: C socket.h defines and structure manipulators +# This code comes from Perl, thus GPL+ or Artistic +# See <http://permalink.gmane.org/gmane.comp.lang.perl.perl5.porters/101960>. +# and <https://rt.cpan.org/Public/Bug/Display.html?id=72669> +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Socket/ +Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Socket-%{cpan_version}.tar.gz +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::CChecker) +BuildRequires: perl(ExtUtils::Constant) >= 0.23 +# Tests: +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +# Scalar::Util is needed only if getaddrinfo(3) does not exist. Not our case. +BuildRequires: perl(XSLoader) +# Tests only: +BuildRequires: perl(Config) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module is just a translation of the C socket.h file. Unlike the old +mechanism of requiring a translated socket.ph file, this uses the h2xs program +(see the Perl source distribution) and your native C compiler. This means +that it has a far more likely chance of getting the numbers right. This +includes all of the commonly used pound-defines like AF_INET, SOCK_STREAM, etc. + +%prep +%setup -q -n Socket-%{cpan_version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Socket* +%{_mandir}/man3/* + +%changelog +* Wed Nov 23 2011 Petr Pisar <ppisar@xxxxxxxxxx> 1.94.07-1 +- 1.94_07 packaged. diff --git a/sources b/sources index e69de29..07e88ee 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d650dfc88ea66abc3cb49a32d52f81d0 Socket-1.94_07.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