package init
This commit is contained in:
commit
0e917f5808
BIN
Socket6-0.28.tar.gz
Normal file
BIN
Socket6-0.28.tar.gz
Normal file
Binary file not shown.
55
perl-Socket6.spec
Normal file
55
perl-Socket6.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
Name: perl-Socket6
|
||||||
|
Version: 0.28
|
||||||
|
Release: 9
|
||||||
|
Summary: A getaddrinfo/getnameinfo support module
|
||||||
|
License: BSD
|
||||||
|
URL: https://metacpan.org/release/Socket6
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/U/UM/UMEMOTO/Socket6-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: coreutils findutils make perl-interpreter perl-devel perl-generators
|
||||||
|
BuildRequires: perl(Config) perl(ExtUtils::MakeMaker) perl(base) perl(Carp)
|
||||||
|
BuildRequires: perl(DynaLoader) perl(Exporter) perl(strict) perl(vars)
|
||||||
|
BuildRequires: perl(Socket) perl(Test)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%{?perl_default_filter}
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module supports getaddrinfo() and getnameinfo() to intend to
|
||||||
|
enable protocol independent programming.
|
||||||
|
If your environment supports IPv6, IPv6 related defines such as
|
||||||
|
AF_INET6 are included.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Documents for perl-Socket6
|
||||||
|
|
||||||
|
%description help
|
||||||
|
The perl-Socket6-help package contains related documents.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n Socket6-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=%{buildroot}
|
||||||
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
||||||
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{perl_vendorarch}/Socket6.pm
|
||||||
|
%{perl_vendorarch}/auto/Socket6/
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc ChangeLog README gailookup.pl
|
||||||
|
%{_mandir}/man3/Socket6.3*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Nov 29 2019 Jiangping Hu <hujiangping@huawei.com> - 0.28.9
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user