!4 Package init
From: @wang_yue111 Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
f34d8a536c
BIN
IO-Pipely-0.005.tar.gz
Normal file
BIN
IO-Pipely-0.005.tar.gz
Normal file
Binary file not shown.
89
perl-IO-Pipely.spec
Normal file
89
perl-IO-Pipely.spec
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: perl-IO-Pipely
|
||||||
|
Version: 0.005
|
||||||
|
Release: 1
|
||||||
|
Summary: Portably create pipe() or pipe-like handles, one way or another
|
||||||
|
License: GPL-1.0-only or Artistic-1.0-Perl
|
||||||
|
Group: Development/Libraries
|
||||||
|
URL: http://search.cpan.org/dist/IO-Pipely/
|
||||||
|
Source0: http://www.cpan.org/authors/id/R/RC/RCAPUTO/IO-Pipely-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl >= 0:5.004
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(base) >= 2.18
|
||||||
|
BuildRequires: perl(Carp) >= 1.26
|
||||||
|
BuildRequires: perl(Exporter) >= 5.68
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(Fcntl) >= 1.06
|
||||||
|
BuildRequires: perl(IO::Socket) >= 1.31
|
||||||
|
BuildRequires: perl(Scalar::Util) >= 1.29
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(Symbol) >= 1.06
|
||||||
|
BuildRequires: perl(Test::More) >= 0.98
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
Requires: perl(base) >= 2.18
|
||||||
|
Requires: perl(Exporter) >= 5.68
|
||||||
|
Requires: perl(Fcntl) >= 1.06
|
||||||
|
Requires: perl(IO::Socket) >= 1.31
|
||||||
|
Requires: perl(strict)
|
||||||
|
Requires: perl(Symbol) >= 1.06
|
||||||
|
Requires: perl(warnings)
|
||||||
|
%description
|
||||||
|
IO::Pipely provides a couple functions to portably create one- and two-way pips and pipe-like socket pairs.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary : Portably create pipe() or pipe-like handles, one way or another
|
||||||
|
Provides: perl-IO-Pipely-doc
|
||||||
|
%description help
|
||||||
|
Documents for IO::Pipely perl moudle.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n IO-Pipely-%{version}
|
||||||
|
%build
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
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 {} \;
|
||||||
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
pushd %{buildroot}
|
||||||
|
touch filelist.lst
|
||||||
|
if [ -d usr/bin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ];then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib ];then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
%check || :
|
||||||
|
make test
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files -f filelist.lst
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc CHANGES dist.ini LICENSE META.json README README.mkdn
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%files help
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 0.005-1
|
||||||
|
- Specfile autogenerated by Perl_Bot
|
||||||
Loading…
x
Reference in New Issue
Block a user