From 61dc6aff6d72c551408557d8ba57889481ea74b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 22 Jan 2014 14:02:08 +0100 Subject: [PATCH] Modernize spec file --- perl-DBI.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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} \