Exclude Win32 modules, include more docs, skip tests if /dev/pts doesn't

exist.
This commit is contained in:
Ville Skyttä 2005-04-10 17:09:46 +00:00
parent 18e24f2540
commit 9e5a16b858

View File

@ -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 <<EOF > %{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ä <ville.skytta at iki.fi> - 0.79-2
- Exclude Win32 specific modules.
- Include more docs.
- Skip tests if /dev/pts doesn't exist.
* Sat Apr 2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.79-1
- 0.79.