package init

This commit is contained in:
zhanliwen 2020-08-05 14:22:26 +08:00 committed by weiwei_150212
parent daf9eb45d2
commit d2729aea3a
2 changed files with 90 additions and 0 deletions

BIN
FFI-CheckLib-0.27.tar.gz Normal file

Binary file not shown.

90
perl-FFI-CheckLib.spec Normal file
View File

@ -0,0 +1,90 @@
%global _empty_manifest_terminate_build 0
Name: perl-FFI-CheckLib
Version: 0.27
Release: 1
Summary: FFI::CheckLib Perl module
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://metacpan.org/release/FFI-CheckLib
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(Test2::V0) >= 0.000060
%description
This Perl module checks whether a particular dynamic library is available for
Foreign Function Interface (FFI) to use. It is modeled heavily on
Devel::CheckLib, but will find dynamic libraries even when development
packages are not installed. It also provides a find_lib function that will
return the full path to the found dynamic library, which can be feed directly
into FFI::Platypus or FFI::Raw.
%package help
Summary: FFI::CheckLib Perl module
Provides: perl-FFI-CheckLib-doc
%description help
This Perl module checks whether a particular dynamic library is available for
Foreign Function Interface (FFI) to use. It is modeled heavily on
Devel::CheckLib, but will find dynamic libraries even when development
packages are not installed. It also provides a find_lib function that will
return the full path to the found dynamic library, which can be feed directly
into FFI::Platypus or FFI::Raw.
%prep
%setup -q -n FFI-CheckLib-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
%{make_install}
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 META.json README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Mon Aug 3 2020 dingyue <dingyue5@huawei.com> -0.27 -1
- Package init