[perl-DBI] Remove Win32 files in prep section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 797dd6a9249860d3543c00bc28b1616a1a9c4960
Author: Petr Písař <ppisar@xxxxxxxxxx>
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
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux