[perl-DBI] Remove Win32 files in prep section

Petr Pisar ppisar at fedoraproject.org
Fri Dec 12 11:53:33 UTC 2014


commit 797dd6a9249860d3543c00bc28b1616a1a9c4960
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Dec 12 12:21:59 2014 +0100

    Remove Win32 files in prep section

 perl-DBI.spec |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/perl-DBI.spec b/perl-DBI.spec
index 0da3cd7..6bd70b2 100644
--- a/perl-DBI.spec
+++ b/perl-DBI.spec
@@ -118,6 +118,11 @@ for F in lib/Bundle/DBI.pm lib/DBD/Proxy.pm lib/DBI/ProxyServer.pm \
     sed -i -e '\|^'"$F"'|d' MANIFEST
 done
 sed -i -e 's/"dbiproxy$ext_pl",//' Makefile.PL
+# Remove Win32 specific files to avoid unwanted dependencies
+for F in lib/DBI/W32ODBC.pm lib/Win32/DBIODBC.pm; do
+    rm "$F"
+    sed -i -e '\|^'"$F"'|d' MANIFEST
+done
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -128,9 +133,6 @@ make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
 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} \
-    %{buildroot}%{_mandir}/man3/{DBI::W32,Win32::DBI}ODBC.3pm
 perl -pi -e 's"#!perl -w"#!/usr/bin/perl -w"' \
     %{buildroot}%{perl_vendorarch}/{goferperf,dbixs_rev}.pl
 


More information about the scm-commits mailing list