]> git.pld-linux.org Git - packages/perl-Test-Differences.git/blame - perl-Test-Differences.spec
use generic url
[packages/perl-Test-Differences.git] / perl-Test-Differences.spec
CommitLineData
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 8Summary: Test::Differences - test strings and data structures and show differences if not ok
ba99abd6 9Summary(pl.UTF-8): Test::Differences - kontrola łańcuchów i struktur danych z pokazywaniem różnic
f7161961 10Name: perl-Test-Differences
c25e3b66 11Version: 0.61
52ecba18 12Release: 1
c25e3b66
JB
13Epoch: 1
14# same as perl
15License: GPL v1+ or Artistic
f7161961 16Group: Development/Languages/Perl
c25e3b66
JB
17Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
18# Source0-md5: 8728047fbd04a32ffdbbc4304d635eb1
210162ac 19URL: http://search.cpan.org/dist/Test-Differences/
0ac103ec 20BuildRequires: perl-devel >= 1:5.8.0
52ecba18 21BuildRequires: rpm-perlprov >= 4.1-13
de135dd3 22%if %{with tests}
52ecba18 23BuildRequires: perl-Text-Diff >= 0.34
f7161961 24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29When the code you're testing returns multiple lines or records and
936ae96e
JB
30they're just plain wrong, sometimes an equivalent to the Unix diff
31utility is just what's needed.
f7161961 32
b617797e
JR
33%description -l pl.UTF-8
34Jeśli testowany kod zwraca wiele linii lub rekordów, które są
35niepoprawne, czasem przydatny jest odpowiednik uniksowego narzędzia
3fbe4331 36diff.
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
49rm -rf $RPM_BUILD_ROOT
50
de135dd3 51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
f7161961 53
54%clean
55rm -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*
This page took 0.09682 seconds and 4 git commands to generate.