diff --git a/ExtUtils-CChecker-0.10.tar.gz b/ExtUtils-CChecker-0.10.tar.gz new file mode 100644 index 0000000..6014253 Binary files /dev/null and b/ExtUtils-CChecker-0.10.tar.gz differ diff --git a/perl-ExtUtils-CChecker.spec b/perl-ExtUtils-CChecker.spec new file mode 100644 index 0000000..8be8a8b --- /dev/null +++ b/perl-ExtUtils-CChecker.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-ExtUtils-CChecker +Version: 0.10 +Release: 1 +Summary: Configure-time utilities for using C headers, libraries, or OS features +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/ExtUtils-CChecker/ +Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/ExtUtils-CChecker-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) +Requires: perl(ExtUtils::CBuilder) +%description +Often Perl modules are written to wrap functionality found in existing C +headers, libraries, or to use OS-specific features. It is useful in the +Build.PL or Makefile.PL file to check for the existance of these +requirements before attempting to actually build the module. +%package help +Summary : Configure-time utilities for using C headers, libraries, or OS features +Provides: perl-ExtUtils-CChecker-doc +%description help +Often Perl modules are written to wrap functionality found in existing C +headers, libraries, or to use OS-specific features. It is useful in the +Build.PL or Makefile.PL file to check for the existance of these +requirements before attempting to actually build the module. +%prep +%setup -q -n ExtUtils-CChecker-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +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 || : +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.10-1 +- Specfile autogenerated by Perl_Bot