diff --git a/App-FatPacker-0.010008.tar.gz b/App-FatPacker-0.010008.tar.gz new file mode 100644 index 0000000..fa823a4 Binary files /dev/null and b/App-FatPacker-0.010008.tar.gz differ diff --git a/perl-App-FatPacker.spec b/perl-App-FatPacker.spec new file mode 100644 index 0000000..e965722 --- /dev/null +++ b/perl-App-FatPacker.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-App-FatPacker +Version: 0.010008 +Release: 2 +Summary: App::FatPacker Perl module +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 +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 +$ fatpack trace myscript.pl $ fatpack packlists-for `cat fatpacker.trace` +>packlists $ fatpack tree `cat packlists` $ fatpack file myscript.pl +>myscript.packed.pl + +%package help +Summary: App::FatPacker Perl module +Provides: perl-App-FatPacker-doc + +%description help +$ fatpack trace myscript.pl $ fatpack packlists-for `cat fatpacker.trace` +>packlists $ fatpack tree `cat packlists` $ fatpack file myscript.pl +>myscript.packed.pl + +%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 diff --git a/perl-App-FatPacker.yaml b/perl-App-FatPacker.yaml new file mode 100644 index 0000000..57c09f7 --- /dev/null +++ b/perl-App-FatPacker.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: App-FatPacker +tag_prefix: "^" +seperator: "."