You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Test-MockObject/perl-Test-MockObject.spec

95 lines
2.7 KiB

Name: perl-Test-MockObject
19 years ago
Version: 1.05
20 years ago
Release: 1%{?dist}
Summary: Perl extension for emulating troublesome interfaces
Group: Development/Libraries
License: GPL or Artistic
URL: http://search.cpan.org/dist/Test-MockObject/
20 years ago
Source: http://www.cpan.org/authors/id/C/CH/CHROMATIC/Test-MockObject-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.6.1
19 years ago
BuildRequires: perl(Module::Build)
19 years ago
BuildRequires: perl(Test::Exception)
19 years ago
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
19 years ago
BuildRequires: perl(UNIVERSAL::can) >= 1.11
BuildRequires: perl(UNIVERSAL::isa) >= 0.06
19 years ago
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Test::MockObject is a highly polymorphic testing object, capable of
looking like all sorts of objects. This makes white-box testing much
easier, as you can concentrate on what the code being tested sends to
and receives from the mocked object, instead of worrying about faking
up your own data. (Another option is not to test difficult things.
Now you have no excuse.)
%prep
%setup -q -n Test-MockObject-%{version}
%build
19 years ago
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
19 years ago
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
chmod -R u+w $RPM_BUILD_ROOT/*
19 years ago
%check
19 years ago
mv t/developer/0-signature.t t/developer/0-signature.t.disable
PERL_RUN_ALL_TESTS=1 ./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/Test/
%{_mandir}/man3/*.3*
%changelog
19 years ago
* Tue Apr 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.05-1
- Update to 1.05.
19 years ago
* Thu Mar 30 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.04-1
- Update to 1.04.
- Makefile.PL -> Build.PL.
19 years ago
* Mon Mar 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
- Update to 1.03.
19 years ago
* Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.02-1
- Update to 1.02.
20 years ago
* Fri Jul 15 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.00-1
- Update to 1.00.
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.15-3
- rebuilt
* Tue Dec 28 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.15-2
- Build requires Test::Simple >= 0.44 (bug 2324).
* Wed Dec 01 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.15-0.fdr.1
- Update to 0.15.
* Tue May 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.14-0.fdr.1
- Update to 0.14.
- Require perl >= 1:5.6.1 for vendor install dir support.
- Use pure_install to avoid perllocal.pod workarounds.
- Moved make test to section %%check.
* Wed Nov 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.1
- First build.