perl-Socket/perl-Socket.spec

79 lines
2.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:13:15 -04:00
%define mod_name Socket
Name: perl-%{mod_name}
Epoch: 4
2021-11-18 16:20:29 +08:00
Version: 2.032
Release: 2
2019-09-30 11:13:15 -04:00
Summary: Networking constants and support functions
License: GPL+ or Artistic
URL: https://metacpan.org/release/%{mod_name}
2019-09-30 11:13:15 -04:00
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{mod_name}-%{version}.tar.gz
2020-07-27 10:43:33 +08:00
BuildRequires: coreutils findutils, gcc, make, perl-interpreter, perl-devel, perl-generators
2019-09-30 11:13:15 -04:00
BuildRequires: perl(Config), perl(ExtUtils::CBuilder), perl(ExtUtils::Constant) >= 0.23
BuildRequires: perl(ExtUtils::MakeMaker), perl(strict), perl(warnings)
2020-07-27 10:43:33 +08:00
BuildRequires: perl(:VERSION) >= 5.6.1 perl(Carp), perl(Exporter), perl(warnings::register), perl(XSLoader)
2019-09-30 11:13:15 -04:00
BuildRequires: perl(Errno), perl(Test::More)
2020-07-27 10:43:33 +08:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(:VERSION) >= 5.6.1
2019-09-30 11:13:15 -04:00
%description
This module provides a variety of constants, structure manipulators and other
functions related to socket-based networking. The values and functions
provided are useful when used in conjunction with Perl core functions such as
socket(), setsockopt() and bind(). It also provides several other support
functions, mostly for dealing with conversions of network addresses between
human-readable and native binary forms, and for hostname resolver operations.
2020-02-25 14:59:07 +08:00
%package_help
2019-09-30 11:13:15 -04:00
%prep
%autosetup -n %{mod_name}-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 | xargs rm -f
%{_fixperms} %{buildroot}/*
%check
make test
%pre
%preun
%post
%postun
%files
%doc Changes
%license Artistic Copying LICENSE
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Socket*
%files help
%{_mandir}/man*/*
%changelog
* Mon Oct 24 2022 xujing <xujing125@huawei.com> - 4:2.032-2
- optimize the specfile
2021-11-18 16:20:29 +08:00
* Thu Nov 18 2021 liudabo <liudabo1@huawei.com> - 4:2.032-1
- upgrade version to 2.032
2021-01-26 17:27:59 +08:00
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 4:2.031-1
- upgrade version to 2.031
2020-07-27 10:43:33 +08:00
* Mon Jul 27 2020 zhanzhimin <zhanzhimin@hauwei.com> - 4:2.030-1
- Bump to version 2.030
2020-02-25 14:59:07 +08:00
* Tue Feb 25 2020 openEuler Buildteam <buildteam@openeuler.org> - 4:2.029-2
- Modify subpackage of help
2019-09-30 11:13:15 -04:00
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 4:2.029-1
- Package init