perl-ExtUtils-CChecker/perl-ExtUtils-CChecker.spec
2021-07-21 18:26:33 +08:00

81 lines
2.5 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: perl-ExtUtils-CChecker
Version: 0.11
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
* Wed Jul 21 2021 Xu Jin <jinxu@kylinos.cn> - 0.11-1
- Update package to 0.11
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 0.10-1
- Specfile autogenerated by Perl_Bot