--- /dev/null
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+%include /usr/lib/rpm/macros.perl
+%define pdir Test
+%define pnam Class
+Summary: Test::Class - Easily create test classes in an xUnit style.
+Summary(pl): Test::Class - £atwe tworzenie testowych klas w stylu xUnit.
+Name: perl-Test-Class
+Version: 0.03
+Release: 1
+License: GPL/Artistic
+Group: Development/Languages/Perl
+Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires: perl >= 5.6
+BuildRequires: rpm-perlprov >= 3.0.3-26
+%if %{?_without_tests:0}%{!?_without_tests:1}
+BuildRequires: perl-Attribute-Handlers >= 0.77
+BuildRequires: perl-Class-ISA >= 0.32
+BuildRequires: perl-Test-Simple >= 0.46
+BuildRequires: perl-Test-Builder-Tester >= 0.09
+BuildRequires: perl-Test-Differences >= 0.43
+BuildRequires: perl-Test-Exception >= 0.10
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::Class provides a simple way of creating classes and objects to
+test your code in an xUnit style.
+
+%description -l pl
+Test::Class udostêpnia prosty sposób tworzenia klas i obiektów,
+testuj±cych Twój kod w stylu xUnit.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+perl Makefile.PL
+%{__make}
+
+%{!?_without_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -ar examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_sitelib}/%{pdir}/*.pm
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}
+%{_mandir}/man3/*