Modernize a spec file
This commit is contained in:
parent
a3a359f1a9
commit
8a179245cf
@ -9,10 +9,9 @@ Source0: https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/MIME-Charset-%{
|
|||||||
Patch0: MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch
|
Patch0: MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: findutils
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-interpreter
|
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: perl(inc::Module::Install)
|
BuildRequires: perl(inc::Module::Install)
|
||||||
BuildRequires: perl(Module::Install::Metadata)
|
BuildRequires: perl(Module::Install::Metadata)
|
||||||
BuildRequires: perl(Module::Install::Win32)
|
BuildRequires: perl(Module::Install::Win32)
|
||||||
@ -36,7 +35,6 @@ BuildRequires: perl(Test)
|
|||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
# Optional tests:
|
# Optional tests:
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
BuildRequires: sed
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
# Filter under-specified symbols
|
# Filter under-specified symbols
|
||||||
@ -51,16 +49,15 @@ messages on Internet.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
# Remove bundled modules
|
# Remove bundled modules
|
||||||
rm -rf ./inc
|
rm -rf ./inc
|
||||||
sed -i -e '/^inc\//d' MANIFEST
|
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
make %{?_smp_mflags}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
%{make_install}
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
%{_fixperms} %{buildroot}/*
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
Loading…
Reference in New Issue
Block a user