]>
Commit | Line | Data |
---|---|---|
fa6965b3 | 1 | # |
2 | # Conditional build: | |
ea031d13 | 3 | %bcond_without tests # do not perform "make test" |
fa6965b3 | 4 | # |
c95e63f0 | 5 | %include /usr/lib/rpm/macros.perl |
f536906b | 6 | %define pdir Test |
7 | %define pnam Simple | |
fc1a045f | 8 | Summary: Test::Simple - basic utilities for writing tests |
90486546 | 9 | Summary(pl.UTF-8): Test::Simple - podstawowe narzędzia do pisania testów |
51379aa6 | 10 | Name: perl-Test-Simple |
2ba96895 | 11 | Version: 0.98 |
8aa25729 | 12 | Release: 1 |
23b30915 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
a117f839 | 15 | Group: Development/Languages/Perl |
9d2b086e | 16 | Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/%{pdir}-%{pnam}-%{version}.tar.gz |
2ba96895 | 17 | # Source0-md5: a8b26c97440269b33dd79fd847c521d8 |
81044a38 | 18 | URL: http://search.cpan.org/dist/Test-Simple/ |
44b4b73a | 19 | %{?with_tests:BuildRequires: perl-Test-Harness >= 2.03} |
4a2430a6 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
b20888db | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
9bada216 | 22 | Provides: perl-Test-Builder-Tester = 1.22 |
acf56805 | 23 | Obsoletes: perl-Test-Builder-Tester = 0:1.01 |
a117f839 SZ |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
aa8c7784 | 27 | %define _noautoreq 'perl(threads)' 'perl(threads::shared)' |
aa8c7784 | 28 | |
a117f839 | 29 | %description |
8a2bd24c ER |
30 | AHHHHHHH!!!! NOT TESTING! Anything but testing! Beat me, whip me, send |
31 | me to Detroit, but don't make me write tests! | |
673d528c | 32 | -- perldoc Test::Tutorial |
fc1a045f | 33 | |
81044a38 JB |
34 | Test::Simple is an extremely simple, extremely basic module for |
35 | writing tests suitable for CPAN modules and other pursuits. If you | |
36 | wish to do more complicated testing, use the Test::More module (a | |
37 | drop-in replacement for this one). | |
a117f839 | 38 | |
81044a38 JB |
39 | The purpose of Test::More is to provide a wide range of testing |
40 | utilities. Various ways to say "ok" with better diagnostics, | |
41 | facilities to skip tests, test future features and compare complicated | |
42 | data structures. While you can do almost anything with a simple "ok()" | |
43 | function, it doesn't provide good diagnostic output. | |
fc1a045f | 44 | |
bb31a059 | 45 | %description -l pl.UTF-8 |
8a2bd24c | 46 | AAAAAAAA!!! NIE TESTOWANIE! Wszystko tylko nie testowanie! Bijcie |
bb31a059 JR |
47 | mnie, biczujcie mnie, wyślijcie do Detroit, ale nie każcie pisać |
48 | testów! | |
673d528c | 49 | -- perldoc Test::Tutorial |
81044a38 | 50 | |
bb31a059 JR |
51 | Test::Simple jest bardzo prostym, bardzo podstawowym modułem do |
52 | pisania testów pasujących do modułów CPAN i innych. Do bardziej | |
53 | skomplikowanych testów lepiej używać modułu Test::More (zastępującego | |
81044a38 JB |
54 | ten). |
55 | ||
bb31a059 JR |
56 | Celem Test::More jest dostarczenie szerokiego zakresu narzędzi do |
57 | testowania. Różne sposoby powiedzenia "ok" z lepszą diagnostyką, | |
58 | ułatwienia przy pomijaniu testów, testowaniu przyszłych możliwości i | |
59 | porównywaniu skomplikowanych struktur danych. O ile można zrobić | |
60 | prawie wszystko prostą funkcją "ok()", nie daje ona dobrego wyjścia | |
81044a38 | 61 | diagnostycznego. |
a117f839 SZ |
62 | |
63 | %prep | |
64 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
fc1a045f | 65 | rm -f t/00signature.t |
c7067acc | 66 | %{__perl} -nli -e 'print unless /^\s+sleep\s+\d+;\s*/' Makefile.PL |
a117f839 SZ |
67 | |
68 | %build | |
b20888db | 69 | %{__perl} Makefile.PL \ |
037eba0e | 70 | INSTALLDIRS=vendor |
a117f839 SZ |
71 | %{__make} |
72 | ||
ea031d13 | 73 | %{?with_tests:%{__make} test} |
fa6965b3 | 74 | |
a117f839 SZ |
75 | %install |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
ea031d13 | 78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
a117f839 | 80 | |
8a2bd24c ER |
81 | rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Test/Tutorial.pod |
82 | ||
a117f839 SZ |
83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
6c0ffa0f | 88 | %doc Changes README TODO |
b20888db | 89 | %{perl_vendorlib}/Test/*.pm |
1125d11b | 90 | %{perl_vendorlib}/Test/Builder |
95d58274 | 91 | %{_mandir}/man3/Test::*.3pm* |