# vim: set sw=4 ts=4 et nu: # norootforbuild Name: perl-Test-Without-Module Version: 0.17 Release: 0 Summary: Test fallback behaviour in absence of modules Source: http://search.cpan.org/CPAN/authors/id/C/CO/CORION/Test-Without-Module-%{version}.tar.gz URL: http://search.cpan.org/dist/Test-Without-Module/ Group: Development/Libraries/Perl License: Perl License BuildRoot: %{_tmppath}/build-%{name}-%{version} %{perl_requires} BuildRequires: make perl BuildRequires: perl-macros BuildRequires: perl(Test::Pod) BuildRequires: perl(File::Slurp) %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}" %__sed -i '/^auto_install/d' Makefile.PL %__sed -i 's/\r$//' Changes README %__chmod 0644 Changes README %build %__perl Makefile.PL PREFIX="%{_prefix}" %__make %{?jobs:-j%{jobs}} %install %perl_make_install %perl_process_packlist %check %__make test %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc Changes README %dir %{perl_vendorlib}/Test %dir %{perl_vendorlib}/Test/Without %{perl_vendorlib}/Test/Without/Module.pm %dir %{perl_vendorarch}/auto/Test %dir %{perl_vendorarch}/auto/Test/Without %{perl_vendorarch}/auto/Test/Without/Module %doc %{perl_man3dir}/Test::Without::Module.%{perl_man3ext}%{ext_man}