perl-File-ShareDir-Install/perl-File-ShareDir-Install.spec
2019-12-04 20:24:27 +08:00

64 lines
1.6 KiB
RPMSpec

Name: perl-File-ShareDir-Install
Version: 0.13
Release: 4
Summary: Install shared files
License: GPL+ or Artistic
URL: https://metacpan.org/release/File-ShareDir-Install
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-ShareDir-Install-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make perl-generators perl-interpreter perl(ExtUtils::MakeMaker)
BuildRequires: perl(Carp) perl(Exporter) perl(File::Spec) perl(IO::Dir) perl(strict) perl(warnings)
BuildRequires: perl(Test::More) perl(File::Path)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
File::ShareDir::Install allows you to install read-only data files from a
distribution. It is a companion module to File::ShareDir, which allows you
to locate these files after installation.
%package_help
%prep
%autosetup -n File-ShareDir-Install-%{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 CONTRIBUTING README
%{_mandir}/man3/*.3*
%changelog
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 0.13-4
- Repackage for openEuler OS