From 81aa33a636806d9089c2473f95456a5ca3f844cc Mon Sep 17 00:00:00 2001 From: radek Date: Thu, 29 Aug 2002 11:06:43 +0000 Subject: [PATCH 1/1] - new, STBR Changed files: perl-Test-Class.spec -> 1.1 --- perl-Test-Class.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 perl-Test-Class.spec diff --git a/perl-Test-Class.spec b/perl-Test-Class.spec new file mode 100644 index 0000000..bb232c4 --- /dev/null +++ b/perl-Test-Class.spec @@ -0,0 +1,60 @@ +# +# 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/* -- 2.44.0