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
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(inc::Module::Install)
|
||||
BuildRequires: perl(Module::Install::Metadata)
|
||||
BuildRequires: perl(Module::Install::Win32)
|
||||
@ -36,7 +35,6 @@ BuildRequires: perl(Test)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Optional tests:
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: sed
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
# Filter under-specified symbols
|
||||
@ -51,16 +49,15 @@ messages on Internet.
|
||||
%patch0 -p1
|
||||
# Remove bundled modules
|
||||
rm -rf ./inc
|
||||
sed -i -e '/^inc\//d' MANIFEST
|
||||
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{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/*
|
||||
%{make_install}
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
Loading…
Reference in New Issue
Block a user