package init
This commit is contained in:
parent
cc3eb5a884
commit
d8a78516b2
BIN
App-FatPacker-0.010008.tar.gz
Normal file
BIN
App-FatPacker-0.010008.tar.gz
Normal file
Binary file not shown.
79
perl-App-FatPacker.spec
Normal file
79
perl-App-FatPacker.spec
Normal file
@ -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 <chengzihan2@huawei.com> - 0.010008-2
|
||||
- Package init
|
||||
4
perl-App-FatPacker.yaml
Normal file
4
perl-App-FatPacker.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: metacpan
|
||||
src_repo: App-FatPacker
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user