]> git.pld-linux.org Git - packages/perl-Data-Compare.git/blob - perl-Data-Compare.spec
- tabs in preamble
[packages/perl-Data-Compare.git] / perl-Data-Compare.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Data
7 %define         pnam    Compare
8 Summary:        Data::Compare - compare Perl data structures
9 Summary(pl.UTF-8):      Data::Compare - porównywanie struktur danych w Perlu
10 Name:           perl-Data-Compare
11 Version:        0.13
12 Release:        1
13 Epoch:          1
14 # same as perl
15 License:        GPL v1+ or Artistic
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5:  874a13f201c6948e84867f82d950907a
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  perl-devel >= 1:5.8.0
21 %if %{with tests}
22 BuildRequires:  perl-File-Find-Rule >= 0.11
23 BuildRequires:  perl-Scalar-Properties
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Data::Compare module compares two Perl data structures recursively.
30
31 %description -l pl.UTF-8
32 Moduł Data::Compare służy do rekurencyjnego porównywania dwóch
33 struktur danych.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %{perl_vendorlib}/Data/Compare.pm
56 %dir %{perl_vendorlib}/Data/Compare
57 %{perl_vendorlib}/Data/Compare/Plugins
58 %{_mandir}/man3/*
This page took 0.080761 seconds and 4 git commands to generate.