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 ';'")