Name: perl-MooseX-Role-Cmd Version: 0.04 Release: 1%{?dist} Summary: Wrap system command binaries the Moose way License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/MooseX-Role-Cmd/ Source0: http://www.cpan.org/authors/id/I/IS/ISILLITOE/MooseX-Role-Cmd-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IPC::Cmd) >= 0.42 BuildRequires: perl(Moose) >= 0.24 BuildRequires: perl(Test::Exception) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description MooseX::Role::Cmd is a Moose role intended to ease the task of building command-line wrapper modules. It automatically maps Moose objects into command strings which are passed to IPC::Cmd. %prep %setup -q -n MooseX-Role-Cmd-%{version} # Filter requires cat << \EOF > %{name}-req #!/bin/sh %{__perl_requires} $* |\ sed -e '/perl(MooseX::Role::Cmd::Meta::Attribute::Trait)/d' EOF %define __perl_requires %{_builddir}/MooseX-Role-Cmd-%{version}/%{name}-req chmod +x %{__perl_requires} %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 %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Feb 02 2009 Allisson Azevedo 0.04-1 - initial rpm release.