3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Differences
8 Summary: Test::Differences - test strings and data structures and show differences if not ok
9 Summary(pl): Test::Differences - kontrola ³añcuchów i struktur danych z pokazywaniem ró¿nic
10 Name: perl-Test-Differences
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e4fa76bb11b0d1db2d4213390413f5af
17 BuildRequires: perl-devel >= 5.6
19 BuildRequires: perl-Text-Diff
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 When the code you're testing returns multiple lines or records and
27 they're just plain wrong, sometimes an equivalent to the Unix diff
28 utility is just what's needed.
31 Je¶li testowany kod zwraca wiele linii lub rekordów, które s±
32 niepoprawne, czasem przydatny jest odpowiednik uniksowego narzêdzia
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %{perl_vendorlib}/%{pdir}/*.pm