new module: perl-Object-Deadly
This commit is contained in:
parent
5e8c117119
commit
4c55842491
@ -0,0 +1 @@
|
||||
Object-Deadly-0.09.tar.gz
|
||||
65
perl-Object-Deadly.spec
Normal file
65
perl-Object-Deadly.spec
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user