Name: perl-Test-Without-Module Version: 0.17 Release: 1%{?dist} Summary: Test fallback behaviour in absence of modules License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Without-Module/ Source0: http://www.cpan.org/authors/id/C/CO/CORION/Test-Without-Module-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module allows you to deliberately hide modules from a program even though they are installed. This is mostly useful for testing modules that have a fallback when a certain dependency module is not installed. %prep %setup -q -n Test-Without-Module-%{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 MANIFEST.skip README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Sep 08 2009 Dave Cross 0.17-1 - Specfile autogenerated by cpanspec 1.78.