diff --git a/perl-prefork.spec b/perl-prefork.spec index d60525d9328b5e9117ff6381e547cbb47757c9fd..80a25b8ba54abbe367b18ab894f254eb42b1712e 100644 --- a/perl-prefork.spec +++ b/perl-prefork.spec @@ -1,7 +1,6 @@ -%global _empty_manifest_terminate_build 0 Name: perl-prefork Version: 1.05 -Release: 1 +Release: 2 Summary: Optimized module loading for forking or non-forking processes License: GPL-1.0-only or Artistic-1.0-Perl Group: Development/Libraries @@ -19,66 +18,45 @@ BuildRequires: perl(Scalar::Util) >= 0.18 BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(warnings) -Requires: perl(Carp) -Requires: perl(List::Util) >= 0.18 -Requires: perl(Scalar::Util) >= 0.18 -Requires: perl(strict) + %description The prefork pragma is intended to allow module writers to optimise module loading for both scenarios with as little additional code as possible. + %package help Summary : Optimized module loading for forking or non-forking processes Provides: perl-prefork-doc + %description help The prefork pragma is intended to allow module writers to optimise module loading for both scenarios with as little additional code as possible. + %prep %setup -q -n prefork-%{version} + %build -export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %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 || : +%check make test -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f filelist.lst -%defattr(-,root,root,-) -%doc Changes CONTRIBUTING dist.ini LICENSE META.json README +%files +%license LICENSE META.json +%doc Changes CONTRIBUTING README %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Fri Aug 01 2025 Funda Wang - 1.05-2 +- use perl-generators to scan META.json for requirements + * Sun May 23 2021 Perl_Bot 1.05-1 - Specfile autogenerated by Perl_Bot