Import
This commit is contained in:
parent
125ed730d8
commit
dec874131d
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Socket-1.94_07.tar.gz
|
||||
60
perl-Socket.spec
Normal file
60
perl-Socket.spec
Normal file
@ -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@redhat.com> 1.94.07-1
|
||||
- 1.94_07 packaged.
|
||||
Loading…
Reference in New Issue
Block a user