SPECS: perl-Test-MockClass.spec (NEW) - initia

mguevara mguevara at pld-linux.org
Thu Nov 2 14:49:30 CET 2006


Author: mguevara                     Date: Thu Nov  2 13:49:30 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initia

---- Files affected:
SPECS:
   perl-Test-MockClass.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Test-MockClass.spec
diff -u /dev/null SPECS/perl-Test-MockClass.spec:1.1
--- /dev/null	Thu Nov  2 14:49:30 2006
+++ SPECS/perl-Test-MockClass.spec	Thu Nov  2 14:49:25 2006
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Test
+%define	pnam	MockClass
+Summary:	Test::MockClass - A module to provide mock classes and mock objects for testing
+#Summary(pl):	
+Name:		perl-Test-MockClass
+Version:	1.04
+Release:	0.1
+License:	GPL or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://search.cpan.org/CPAN/authors/id/J/JJ/JJORDAN/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	perl-ExtUtils-AutoInstall >= 0.45
+BuildRequires:	perl-Test-SimpleUnit >= 1.21
+BuildRequires:	perl-Tie-Watch >= 1.1
+BuildRequires:	perl-Hook-WrapSub
+%if %{with tests}
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides a simple interface for creating mock classes and mock objects with mock methods for mock purposes, I mean testing purposes.  It also provides a simple mechanism for tracking the interactions to the mocked objects.  I originally wrote this class to help me test object factory methods, since then, I've added some more features.  This module is hopefully going to be the Date::Manip of mock class/object creation, so email me with lots of ideas, everything but the kitchen sink will go in!
+
+
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{perl_vendorlib}/Test/*.pm
+%{perl_vendorlib}/Test/MockClass
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/11/02 13:49:25  mguevara
+- initia
+
================================================================


More information about the pld-cvs-commit mailing list