From: radek Date: Sun, 25 Aug 2002 15:21:04 +0000 (+0000) Subject: - new, STBR X-Git-Tag: perl-Test-Differences-0_45-1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=f7161961752de4dd4dc71923eaab062afbf502d3;p=packages%2Fperl-Test-Differences.git - new, STBR Changed files: perl-Test-Differences.spec -> 1.1 --- f7161961752de4dd4dc71923eaab062afbf502d3 diff --git a/perl-Test-Differences.spec b/perl-Test-Differences.spec new file mode 100644 index 0000000..bea7253 --- /dev/null +++ b/perl-Test-Differences.spec @@ -0,0 +1,52 @@ +# +# Conditional build: +# _without_tests - do not perform "make test" +%include /usr/lib/rpm/macros.perl +%define pdir Test +%define pnam Differences +Summary: Test::Differences - Test strings and data structures and show differences if not ok +#Summary(pl): +Name: perl-Test-Differences +Version: 0.45 +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-Text-Diff +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +When the code you're testing returns multiple lines or records and +they're just plain wrong, sometimes an equivalent to the Unix C +utility is just what's needed. Here's output from an example test script +that checks two text documents and then two (trivial) data structures: + +# %description -l pl +# TODO + +%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 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%{perl_sitelib}/%{pdir}/*.pm +%{_mandir}/man3/*