perl-IPC-Cmd/perl-IPC-Cmd.spec

62 lines
1.6 KiB
RPMSpec

Name: perl-IPC-Cmd
Version: 0.32
Release: 1%{?dist}
Summary: Finding and running system commands made easy
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/IPC-Cmd/
Source0: http://www.cpan.org/authors/id/K/KA/KANE/IPC-Cmd-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Locale::Maketext::Simple)
BuildRequires: perl(Module::Load::Conditional)
BuildRequires: perl(Params::Check)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
IPC::Cmd allows you to run commands, interactively if desired, platform
independent but have them still work.
%prep
%setup -q -n IPC-Cmd-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
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 -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGES README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Oct 17 2006 Steven Pritchard <steve@kspei.com> 0.32-1
- Update to 0.32.
- Use fixperms macro instead of our own chmod incantation.
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.25-1
- Update to 0.25.
- Fix find option order.
* Thu Mar 23 2006 Steven Pritchard <steve@kspei.com> 0.24-1
- Specfile autogenerated by cpanspec 1.62.
- Fix License.
- Drop explicit Requires.