From 4cc3f103a36b72d95b20eeedd98ffd48bae3ba44 Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" Date: Thu, 11 Oct 2018 17:21:51 -0700 Subject: [PATCH] Make Perl modules use vendor path Distro-provided Perl modules should use the vendor library path. Add INSTALLDIRS=vendor or --installdirs=vendor to select it for ExtUtils::MakeMaker or Module::Build install patterns. --- autospec/specfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autospec/specfiles.py b/autospec/specfiles.py index e9f010f..6f96647 100644 --- a/autospec/specfiles.py +++ b/autospec/specfiles.py @@ -1300,9 +1300,9 @@ class Specfile(object): file2 = file.replace("/", "_") self._write_strip("cp " + file + " %{buildroot}/usr/share/package-licenses/" + self.name + "/" + file2 + "\n") self._write_strip("if test -f Makefile.PL; then") - self._write_strip("make pure_install PERL_INSTALL_ROOT=%{buildroot}") + self._write_strip("make pure_install PERL_INSTALL_ROOT=%{buildroot} INSTALLDIRS=vendor") self._write_strip("else") - self._write_strip("./Build install --installdirs=site --destdir=%{buildroot}") + self._write_strip("./Build install --installdirs=vendor --destdir=%{buildroot}") self._write_strip("fi") self._write_strip("find %{buildroot} -type f -name .packlist -exec rm -f {} ';'") self._write_strip("find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'")