|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: perl-Test-MockObject
|
|
|
|
|
Version: 1.03
|
|
|
|
|
Version: 1.04
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Perl extension for emulating troublesome interfaces
|
|
|
|
|
|
|
|
|
@ -11,6 +11,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl >= 1:5.6.1
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
|
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
|
|
|
|
|
BuildRequires: perl(UNIVERSAL::can) >= 1.11
|
|
|
|
@ -31,21 +32,19 @@ Now you have no excuse.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
|
./Build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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 -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
mv t/0-signature.t t/0-signature.t.disable
|
|
|
|
|
make test
|
|
|
|
|
mv t/developer/0-signature.t t/developer/0-signature.t.disable
|
|
|
|
|
PERL_RUN_ALL_TESTS=1 ./Build test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
@ -60,6 +59,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Mar 30 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.04-1
|
|
|
|
|
- Update to 1.04.
|
|
|
|
|
- Makefile.PL -> Build.PL.
|
|
|
|
|
|
|
|
|
|
* Mon Mar 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
|
|
|
|
|
- Update to 1.03.
|
|
|
|
|
|
|
|
|
|