diff --git a/perl-DBI.spec b/perl-DBI.spec index fcd0445..b9c8adc 100644 --- a/perl-DBI.spec +++ b/perl-DBI.spec @@ -126,10 +126,9 @@ perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install -make pure_install PERL_INSTALL_ROOT=%{buildroot} +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' -find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* # Remove Win32 specific files and man pages to avoid unwanted dependencies rm -rf %{buildroot}%{perl_vendorarch}/{Win32,DBI/W32ODBC.pm} \