3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Test::Class - easily create test classes in an xUnit style
9 Summary(pl.UTF-8): Test::Class - łatwe tworzenie testowych klas w stylu xUnit
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: e73698b10712bbffcd346558792ab154
18 URL: http://search.cpan.org/dist/Test-Class/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Attribute-Handlers >= 0.77
23 BuildRequires: perl-Class-ISA >= 0.32
24 BuildRequires: perl-Devel-Symdump
25 BuildRequires: perl-Test-Simple >= 0.46
26 BuildRequires: perl-Test-Builder-Tester >= 1.04
27 BuildRequires: perl-Test-Differences >= 0.43
28 BuildRequires: perl-Test-Exception >= 0.10
30 Requires: perl(IO::File) >= 1.14
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Test::Class provides a simple way of creating classes and objects to
36 test your code in an xUnit style.
38 %description -l pl.UTF-8
39 Test::Class udostępnia prosty sposób tworzenia klas i obiektów,
40 testujących Twój kod w stylu xUnit.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %{perl_vendorlib}/%{pdir}/*.pm
64 %{perl_vendorlib}/%{pdir}/%{pnam}