Package init
This commit is contained in:
parent
10ce65328b
commit
fec23ce0be
BIN
ExtUtils-CChecker-0.10.tar.gz
Normal file
BIN
ExtUtils-CChecker-0.10.tar.gz
Normal file
Binary file not shown.
77
perl-ExtUtils-CChecker.spec
Normal file
77
perl-ExtUtils-CChecker.spec
Normal file
@ -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 <Perl_Bot@openeuler.org> 0.10-1
|
||||
- Specfile autogenerated by Perl_Bot
|
||||
Loading…
x
Reference in New Issue
Block a user