]> git.pld-linux.org Git - packages/perl-Data-Compare.git/blame - perl-Data-Compare.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Data-Compare.git] / perl-Data-Compare.spec
CommitLineData
1757e5f0 1#
2# Conditional build:
dbf9b78f 3%bcond_without tests # do not perform "make test"
ef31613c 4#
1b91c994 5%define pdir Data
6%define pnam Compare
37f1cfd1 7Summary: Data::Compare - compare Perl data structures
da6f6cd1 8Summary(pl.UTF-8): Data::Compare - porównywanie struktur danych w Perlu
167c309f 9Name: perl-Data-Compare
b78b44bb
JB
10# fill to four decimal digits to avoid epoch bumps after 1.2102
11%define ver 1.25
12Version: %{ver}00
49d2b8ad 13Release: 1
80ec10b6 14Epoch: 1
37f1cfd1 15# same as perl
16License: GPL v1+ or Artistic
167c309f 17Group: Development/Languages/Perl
b78b44bb
JB
18Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{ver}.tar.gz
19# Source0-md5: 6a397ab5833237f3ca05ed7277b19a7a
24eac94c 20URL: http://search.cpan.org/dist/Data-Compare/
c1a49487 21BuildRequires: rpm-perlprov >= 4.1-13
b29b81de 22BuildRequires: perl-devel >= 1:5.8.0
1757e5f0 23%if %{with tests}
dbe3ce31 24BuildRequires: perl-File-Find-Rule >= 0.11
1757e5f0 25BuildRequires: perl-Scalar-Properties
24eac94c 26BuildRequires: perl-perldoc
1757e5f0 27%endif
2a11cfb7 28BuildArch: noarch
992134c7 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
167c309f 30
31%description
37f1cfd1 32Data::Compare module compares two Perl data structures recursively.
167c309f 33
184abca8
JR
34%description -l pl.UTF-8
35Moduł Data::Compare służy do rekurencyjnego porównywania dwóch
37f1cfd1 36struktur danych.
167c309f 37
38%prep
b78b44bb 39%setup -q -n %{pdir}-%{pnam}-%{ver}
167c309f 40
41%build
c1a49487 42%{__perl} Makefile.PL \
71ee30a8 43 INSTALLDIRS=vendor
279ccb93 44%{__make}
1757e5f0 45%{?with_tests:%{__make} test}
167c309f 46
47%install
48rm -rf $RPM_BUILD_ROOT
167c309f 49
dbe3ce31 50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
167c309f 52
b78b44bb
JB
53%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Data/Compare/Plugins.pod
54
167c309f 55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
c1a49487 60%{perl_vendorlib}/Data/Compare.pm
45352152 61%dir %{perl_vendorlib}/Data/Compare
37c07d01 62%{perl_vendorlib}/Data/Compare/Plugins
b78b44bb
JB
63%{_mandir}/man3/Data::Compare.3pm*
64%{_mandir}/man3/Data::Compare::Plugins*.3pm*
This page took 0.072111 seconds and 4 git commands to generate.