66 lines
2.1 KiB
RPMSpec
66 lines
2.1 KiB
RPMSpec
%define buildpath %(echo %{name} | sed 's/perl-//')
|
|
|
|
Name: perl-Module-Install-AutoLicense
|
|
Version: 0.10
|
|
Release: 7
|
|
Summary: A Module::Install extension to automatically generate LICENSE files
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/Module-Install-AutoLicense
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-AutoLicense-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: coreutils findutils make sed
|
|
BuildRequires: perl-generators perl(base) perl(Config) perl(vars) perl(warnings)
|
|
BuildRequires: perl(File::Path) perl(File::Temp) perl(lib) perl(Module::Install::WriteAll)
|
|
BuildRequires: perl(Module::Install::Base) perl(Module::Install::Can) perl(Module::Install::GithubMeta)
|
|
BuildRequires: perl(Module::Install::Metadata) perl(strict) perl(Module::Install::Makefile)
|
|
BuildRequires: perl-interpreter >= 1:5.6.0
|
|
BuildRequires: perl(Capture::Tiny) >= 0.05
|
|
BuildRequires: perl(inc::Module::Install) >= 0.85
|
|
BuildRequires: perl(Module::Install) >= 0.85
|
|
BuildRequires: perl(Software::License) >= 0.01
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
|
|
|
Requires: perl(Module::Install) >= 0.85
|
|
Requires: perl(Software::License) >= 0.01
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
Module::Install::AutoLicense is a Module::Install extension that generates
|
|
a "LICENSE" file automatically whenever the author runs "Makefile.PL". On
|
|
the user side it does nothing.
|
|
|
|
%package help
|
|
Summary: help package of %{name} that include files
|
|
|
|
%description help
|
|
document files for %{name}
|
|
|
|
%prep
|
|
%autosetup -n %{buildpath}-%{version} -p1
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%install
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
|
|
%files
|
|
%doc Changes
|
|
%{perl_vendorlib}/*
|
|
|
|
%files help
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.10-7
|
|
- Package init
|
|
|