%global _empty_manifest_terminate_build 0 Name: perl-App-FatPacker Version: 0.010008 Release: 1 Summary: Pack dependencies onto a script file License: GPL+ or Artistic URL: http://search.cpan.org/dist/App-FatPacker/ Source0: http://www.cpan.org/authors/id/M/MS/MSTROUT/App-FatPacker-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.008000 perl(Cwd) perl(ExtUtils::MakeMaker) perl(File::Path) BuildRequires: perl(File::Spec) perl(File::Spec::Functions) perl(File::Spec::Unix) BuildRequires: perl(File::Temp) perl(Getopt::Long) perl(Test::More) >= 0.82 BuildRequires: perl-generators Requires: perl(Cwd) perl(File::Path) perl(File::Spec::Functions) perl(File::Spec::Unix) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Getopt::Long) %description This tool does all the work of tracing, collecting packlists, extracting perl modules in fatlib, and then concatenating them into a packed script. %package help Summary: Pack dependencies onto a script file Provides: perl-App-FatPacker-doc %description help This tool does all the work of tracing, collecting packlists, extracting perl modules in fatlib, and then concatenating them into a packed script. %prep %setup -q -n App-FatPacker-%{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 META.json README %{perl_vendorlib}/* %files help %{_mandir}/* %changelog * Fri Jul 10 2020 chengzihan - 0.010008-2 - Package init