!1 添加源码和spec
From: @zhangkea Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
0f9381c33c
BIN
Test-File-ShareDir-1.001002.tar.gz
Normal file
BIN
Test-File-ShareDir-1.001002.tar.gz
Normal file
Binary file not shown.
53
perl-Test-File-ShareDir.spec
Normal file
53
perl-Test-File-ShareDir.spec
Normal file
@ -0,0 +1,53 @@
|
||||
%{?perl_default_filter}
|
||||
|
||||
Name: perl-Test-File-ShareDir
|
||||
Version: 1.001002
|
||||
Release: 1
|
||||
Summary: Create a Fake ShareDir for your modules for testing
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Test-File-ShareDir
|
||||
Source0: https://cpan.metacpan.org/authors/id/K/KE/KENTNL/Test-File-ShareDir-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
# Build
|
||||
BuildRequires: make, perl-interpreter, perl-generators, perl(ExtUtils::MakeMaker) > 6.76, perl(strict), perl(warnings)
|
||||
# Runtime
|
||||
BuildRequires: perl(Carp), perl(Class::Tiny), perl(Exporter) >= 5.57, perl(File::Copy::Recursive), perl(File::ShareDir) >= 1.00, perl(parent), perl(Path::Tiny), perl(Scope::Guard)
|
||||
# Tests only
|
||||
BuildRequires: perl(Cwd), perl(File::Spec), perl(FindBin), perl(lib), perl(Test::Fatal), perl(Test::More) >= 0.96
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
||||
Requires: perl(File::Copy::Recursive), perl(Scope::Guard)
|
||||
|
||||
%description
|
||||
Create a fake ShareDir for your modules for testing.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n Test-File-ShareDir-%{version}
|
||||
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=true
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 18 2021 herengui <herengui@uniontech.com> - 1.001002-1
|
||||
- package init
|
||||
Loading…
x
Reference in New Issue
Block a user