From 9e5a16b858de311d69237058ef4807323759bcca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 10 Apr 2005 17:09:46 +0000 Subject: [PATCH] Exclude Win32 modules, include more docs, skip tests if /dev/pts doesn't exist. --- perl-IPC-Run.spec | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/perl-IPC-Run.spec b/perl-IPC-Run.spec index adb46a4..85f3a13 100644 --- a/perl-IPC-Run.spec +++ b/perl-IPC-Run.spec @@ -1,6 +1,6 @@ Name: perl-IPC-Run Version: 0.79 -Release: 1 +Release: 2 Summary: Perl module for interacting with child processes License: GPL or Artistic @@ -24,15 +24,7 @@ and DOS command lines are provided. %prep %setup -q -n IPC-Run-%{version} -chmod 644 lib/IPC/*.pm lib/IPC/Run/*.pm Changes - -# Create our own find-requires to avoid some Win32 specific dependencies. -cat < %{name}-perlreq -#!/bin/sh -%{__perl_requires} | grep -v 'perl(Win32' -EOF -%define __perl_requires %{_builddir}/IPC-Run-%{version}/%{name}-perlreq -chmod +x %{__perl_requires} +chmod 644 lib/IPC/*.pm lib/IPC/Run/*.pm Changes eg/* %build @@ -44,14 +36,13 @@ make %{?_smp_mflags} rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check || : # https://rt.cpan.org/NoAuth/Bug.html?id=11129 -IPCRUNDEBUG=2 make test +[ ! -d /dev/pts ] || IPCRUNDEBUG=2 make test %clean @@ -60,12 +51,19 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc Changes -%{perl_vendorlib}/IPC -%{_mandir}/man3/*.3* +%doc Changes TODO eg/ +%{perl_vendorlib}/IPC/ +%exclude %{perl_vendorlib}/IPC/Run/Win32*.pm +%{_mandir}/man3/IPC::Run*.3* +%exclude %{_mandir}/man3/IPC::Run::Win32*.3* %changelog +* Sun Apr 10 2005 Ville Skyttä - 0.79-2 +- Exclude Win32 specific modules. +- Include more docs. +- Skip tests if /dev/pts doesn't exist. + * Sat Apr 2 2005 Ville Skyttä - 0.79-1 - 0.79.