]>
Commit | Line | Data |
---|---|---|
f7161961 | 1 | # |
2 | # Conditional build: | |
de135dd3 | 3 | %bcond_without tests # do not perform "make test" |
210162ac | 4 | |
b7d23f15 | 5 | %define pdir Test |
6 | %define pnam Differences | |
210162ac | 7 | %include /usr/lib/rpm/macros.perl |
3f010ce5 | 8 | Summary: Test::Differences - test strings and data structures and show differences if not ok |
ba99abd6 | 9 | Summary(pl.UTF-8): Test::Differences - kontrola łańcuchów i struktur danych z pokazywaniem różnic |
f7161961 | 10 | Name: perl-Test-Differences |
c25e3b66 | 11 | Version: 0.61 |
52ecba18 | 12 | Release: 1 |
c25e3b66 JB |
13 | Epoch: 1 |
14 | # same as perl | |
15 | License: GPL v1+ or Artistic | |
f7161961 | 16 | Group: Development/Languages/Perl |
c25e3b66 JB |
17 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz |
18 | # Source0-md5: 8728047fbd04a32ffdbbc4304d635eb1 | |
210162ac | 19 | URL: http://search.cpan.org/dist/Test-Differences/ |
0ac103ec | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
52ecba18 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
de135dd3 | 22 | %if %{with tests} |
52ecba18 | 23 | BuildRequires: perl-Text-Diff >= 0.34 |
f7161961 | 24 | %endif |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | When the code you're testing returns multiple lines or records and | |
936ae96e JB |
30 | they're just plain wrong, sometimes an equivalent to the Unix diff |
31 | utility is just what's needed. | |
f7161961 | 32 | |
b617797e JR |
33 | %description -l pl.UTF-8 |
34 | Jeśli testowany kod zwraca wiele linii lub rekordów, które są | |
35 | niepoprawne, czasem przydatny jest odpowiednik uniksowego narzędzia | |
3fbe4331 | 36 | diff. |
f7161961 | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
67e8ce78 | 42 | %{__perl} Makefile.PL \ |
3fbe4331 | 43 | INSTALLDIRS=vendor |
f7161961 | 44 | %{__make} |
45 | ||
de135dd3 | 46 | %{?with_tests:%{__make} test} |
f7161961 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
de135dd3 | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
f7161961 | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
c25e3b66 JB |
59 | %doc Changes |
60 | %{perl_vendorlib}/Test/Differences.pm | |
61 | %{_mandir}/man3/Test::Differences.3pm* |