78 lines
2.0 KiB
RPMSpec
78 lines
2.0 KiB
RPMSpec
Name: perl-File-ShareDir
|
|
Version: 1.116
|
|
Release: 4
|
|
Summary: Locate per-dist and per-module shared files
|
|
|
|
# not in binary packages
|
|
# - inc/latest/private.pm: ASL 2.0
|
|
# other files: GPL+ or Artistic
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/File-ShareDir
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ShareDir-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: make perl-generators perl-interpreter
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(File::ShareDir::Install)
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(Class::Inspector) >= 1.12
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(warnings)
|
|
BuildRequires: perl(List::MoreUtils) >= 0.428
|
|
BuildRequires: perl(Params::Util) >= 1.07
|
|
BuildRequires: perl(File::Path)
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
BuildRequires: perl(CPAN::Meta)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
%description
|
|
The intent of File::ShareDir is to provide a companion to Class::Inspector
|
|
and File::HomeDir, modules that take a process that is well-known by
|
|
advanced Perl developers but gets a little tricky, and make it more
|
|
available to the larger Perl community.
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
%prep
|
|
%autosetup -n File-ShareDir-%{version} -p1
|
|
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
%make_build
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make pure_install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
%check
|
|
make test
|
|
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{perl_vendorlib}/*
|
|
|
|
|
|
%files help
|
|
%doc Changes README
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.116-4
|
|
- Repackage for openEuler OS
|