diff --git a/B-Hooks-EndOfScope-0.26.tar.gz b/B-Hooks-EndOfScope-0.26.tar.gz new file mode 100644 index 0000000..47b0bb2 Binary files /dev/null and b/B-Hooks-EndOfScope-0.26.tar.gz differ diff --git a/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec new file mode 100644 index 0000000..7effd53 --- /dev/null +++ b/perl-B-Hooks-EndOfScope.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-B-Hooks-EndOfScope +Version: 0.26 +Release: 1 +Summary: Execute code after a scope finished compilation +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/B-Hooks-EndOfScope/ +Source0: http://www.cpan.org/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006001 +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Glob) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IPC::Open2) +BuildRequires: perl(lib) +BuildRequires: perl(Module::Implementation) >= 0.05 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001006 +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(warnings) +Requires: perl(Module::Implementation) >= 0.05 +Requires: perl(Scalar::Util) +Requires: perl(strict) +Requires: perl(Sub::Exporter::Progressive) >= 0.001006 +Requires: perl(warnings) + +%description +This module allows you to execute code when perl finished compiling the +surrounding scope. + +%package help +Summary : Execute code after a scope finished compilation +Provides: perl-B-Hooks-EndOfScope-doc + +%description help +Man page for perl-B-Hooks-EndOfScope. + +%prep +%setup -q -n B-Hooks-EndOfScope-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +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 CONTRIBUTING dist.ini LICENCE META.json README +%{perl_vendorlib}/* + +%files help +%{_mandir}/* + +%changelog +* Tue Jul 12 2022 Xu Jin 0.26-1 +- Specfile autogenerated by Perl_Bot