!1 添加源码和spec

From: @zhangkea 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-07-25 03:33:55 +00:00 committed by Gitee
commit 0f9381c33c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 53 additions and 0 deletions

Binary file not shown.

View 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