X-Git-Url: http://git.pld-linux.org/?p=packages%2Fperl-Test-Simple.git;a=blobdiff_plain;f=perl-Test-Simple.spec;h=3900c2cd55cdf20efc745f71e3c83f92cef6aeee;hp=8443205bd9ed8f49563f6e0bc654b8b3014c9164;hb=3b71b361c2b2b459ffa51074e8fde1f13b6faa6f;hpb=583c56f5675b635412af9f8dc7a8a1e3feabaaa5 diff --git a/perl-Test-Simple.spec b/perl-Test-Simple.spec index 8443205..3900c2c 100644 --- a/perl-Test-Simple.spec +++ b/perl-Test-Simple.spec @@ -1,50 +1,111 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# %include /usr/lib/rpm/macros.perl -%define pdir Test -%define pnam Simple -Summary: Test-Simple perl module -Summary(pl): Modu³ perla Test-Simple -Name: perl-%{pdir}-%{pnam} -Version: 0.41 -Release: 4 -License: GPL +%define pdir Test +%define pnam Simple +Summary: Test::Simple - basic utilities for writing tests +Summary(pl.UTF-8): Test::Simple - podstawowe narzędzia do pisania testów +Name: perl-Test-Simple +Version: 1.302062 +%define fver %(echo %{version} | tr -d _) +Release: 2 +# same as perl +License: GPL v1+ or Artistic Group: Development/Languages/Perl -Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -BuildRequires: rpm-perlprov >= 3.0.3-16 -BuildRequires: perl >= 5.6 -BuildRequires: perl-Test-Harness +Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{fver}.tar.gz +# Source0-md5: d869f6754eccc38484da7e21e9c7bbcc +URL: http://search.cpan.org/dist/Test-Simple/ +%{?with_tests:BuildRequires: perl-Test-Harness >= 2.03} +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +# see lib/Test/Builder/Tester.pm /VERSION +Provides: perl-Test-Builder-Tester = %{version} +# see lib/Test/Tester.pm /VERSION +Provides: perl-Test-Tester = %{version} +# obsolete only versions up to last standalone (Test::Builder::Tester 1.01, Test::Tester 0.109) to avoid obsoleting perl-modules +Obsoletes: perl-Test-Builder-Tester < 1.02 +Obsoletes: perl-Test-Tester < 0.110 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _noautoreq 'perl(threads)' 'perl(threads::shared)' + %description -This is an extremely simple, extremely basic module for writing tests -suitable for CPAN modules and other pursuits. If you wish to do more -complicated testing, use the Test::More module (a drop-in replacement -for this one). +AHHHHHHH!!!! NOT TESTING! Anything but testing! Beat me, whip me, send +me to Detroit, but don't make me write tests! + -- perldoc Test::Tutorial + +Test::Simple is an extremely simple, extremely basic module for +writing tests suitable for CPAN modules and other pursuits. If you +wish to do more complicated testing, use the Test::More module (a +drop-in replacement for this one). + +The purpose of Test::More is to provide a wide range of testing +utilities. Various ways to say "ok" with better diagnostics, +facilities to skip tests, test future features and compare complicated +data structures. While you can do almost anything with a simple "ok()" +function, it doesn't provide good diagnostic output. -%description -l pl -To jest bardzo prosty, bardzo podstawowy modu³ do pisania testów -pasuj±cych do modu³ów CPAN i innych. Do bardziej skomplikowanych -testów lepiej u¿ywaæ modu³u Test::More (zastêpuj±cego ten). +%description -l pl.UTF-8 +AAAAAAAA!!! NIE TESTOWANIE! Wszystko tylko nie testowanie! Bijcie +mnie, biczujcie mnie, wyślijcie do Detroit, ale nie każcie pisać +testów! + -- perldoc Test::Tutorial + +Test::Simple jest bardzo prostym, bardzo podstawowym modułem do +pisania testów pasujących do modułów CPAN i innych. Do bardziej +skomplikowanych testów lepiej używać modułu Test::More (zastępującego +ten). + +Celem Test::More jest dostarczenie szerokiego zakresu narzędzi do +testowania. Różne sposoby powiedzenia "ok" z lepszą diagnostyką, +ułatwienia przy pomijaniu testów, testowaniu przyszłych możliwości i +porównywaniu skomplikowanych struktur danych. O ile można zrobić +prawie wszystko prostą funkcją "ok()", nie daje ona dobrego wyjścia +diagnostycznego. %prep -%setup -q -n %{pdir}-%{pnam}-%{version} +%setup -q -n %{pdir}-%{pnam}-%{fver} +%{__perl} -nli -e 'print unless /^\s+sleep\s+\d+;\s*/' Makefile.PL %build -perl Makefile.PL +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor %{__make} +%{?with_tests:%{__make} test} + %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf Changes README TODO +%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Test/Tutorial.pod %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc *.gz -%{perl_sitelib}/Test -%{_mandir}/man3/* +%doc Changes README +%{perl_vendorlib}/ok.pm +%{perl_vendorlib}/Test/Builder +%{perl_vendorlib}/Test/Builder.pm +%{perl_vendorlib}/Test/More.pm +%{perl_vendorlib}/Test/Simple.pm +%{perl_vendorlib}/Test/Tester +%{perl_vendorlib}/Test/Tester.pm +%{perl_vendorlib}/Test/use +%{perl_vendorlib}/Test2.pm +%{perl_vendorlib}/Test2 +%{_mandir}/man3/Test::Builder*.3pm* +%{_mandir}/man3/Test::More.3pm* +%{_mandir}/man3/Test::Simple.3pm* +%{_mandir}/man3/Test::Tester*.3pm* +%{_mandir}/man3/Test::Tutorial.3pm* +%{_mandir}/man3/Test::use::ok.3pm* +%{_mandir}/man3/Test2*.3pm* +%{_mandir}/man3/ok.3pm*