87 lines
2.4 KiB
RPMSpec
87 lines
2.4 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
Name: perl-ExtUtils-LibBuilder
|
|
Version: 0.08
|
|
Release: 1
|
|
Summary: ExtUtils::LibBuilder Perl module
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/ExtUtils-LibBuilder/
|
|
Source0: https://mirrors.tuna.tsinghua.edu.cn/CPAN/authors/id/A/AM/AMBS/ExtUtils-LibBuilder-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: perl >= 0:5.006
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl(ExtUtils::CBuilder) >= 0.23
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Test::More)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
Some Perl modules need to ship C libraries together with their Perl code.
|
|
Although there are mechanisms to compile and link (or glue) C code in your
|
|
Perl programs, there isn't a clear method to compile standard, self-
|
|
contained C libraries.
|
|
|
|
%package help
|
|
Summary : ExtUtils::LibBuilder Perl module
|
|
Provides: perl-ExtUtils-LibBuilder-doc
|
|
|
|
%description help
|
|
Some Perl modules need to ship C libraries together with their Perl code.
|
|
Although there are mechanisms to compile and link (or glue) C code in your
|
|
Perl programs, there isn't a clear method to compile standard, self-
|
|
contained C libraries.
|
|
|
|
%prep
|
|
%setup -q -n ExtUtils-LibBuilder-%{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 META.json README
|
|
%{perl_vendorlib}/*
|
|
%files help
|
|
%{_mandir}/*
|
|
|
|
%changelog
|
|
* Tue Sep 13 2022 Perl_Bot <Perl_Bot@openeuler.org> 0.08-1
|
|
- Specfile autogenerated by Perl_Bot
|