new module: perl-Object-Deadly

This commit is contained in:
Robin Norwood 2007-11-15 03:58:36 +00:00
parent 5e8c117119
commit 4c55842491
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1 @@
Object-Deadly-0.09.tar.gz

65
perl-Object-Deadly.spec Normal file
View File

@ -0,0 +1,65 @@
Name: perl-Object-Deadly
Version: 0.09
Release: 2%{?dist}
Summary: Perl module providing an object that dies whenever examined
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Object-Deadly/
Source0: http://search.cpan.org/CPAN/authors/id/J/JJ/JJORE/Object-Deadly-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Devel::StackTrace)
BuildRequires: perl(Devel::Symdump)
BuildRequires: perl(Carp::Clan)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Object::Deadly is meant to be used in testing. All possible
overloading and method calls die. You can pass this object into
methods which are not supposed to accidentally trigger any potentially
overloading.
%prep
%setup -q -n Object-Deadly-%{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 ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Thu Oct 25 2007 Robin Norwood <rnorwood@redhat.com> - 0.09-2
- Fix BuildRequires
* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 0.09-1
- Initial build

View File

@ -0,0 +1 @@
fcf2895dd63b4bdd3a9ad683516b7aef Object-Deadly-0.09.tar.gz