%global _empty_manifest_terminate_build 0 Name: perl-FFI-CheckLib Version: 0.28 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 * Tue Jul 20 2021 Xu Jin - 0.28-1 - Update package to 0.28 * Mon Aug 3 2020 dingyue -0.27 -1 - Package init