-%include /usr/lib/rpm/macros.perl
-%define pdir Tie
-%define pnam LLHash
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define pdir Tie
+%define pnam LLHash
Summary: Tie::LLHash Perl module - ordered hashes
-Summary(pl): Modu³ Perla Tie::LLHash - uporz±dkowane hasze
+Summary(pl.UTF-8): Moduł Perla Tie::LLHash - uporządkowane hasze
Name: perl-Tie-LLHash
-Version: 1.002
-Release: 9
-License: GPL
+Version: 1.003
+Release: 2
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 3c793c445fb1b59ffbd738ea9587c304
-BuildRequires: perl-devel >= 5.6
+# Source0-md5: b5890351e3e4a1eab89267d9aa410147
+URL: http://search.cpan.org/dist/Tie-LLHash/
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
between a Perl hash and a linked list. Use it whenever you want the
speed and structure of a Perl hash, but the orderedness of a list.
-%description -l pl
-Ta klasa jest implementacj± obiektu podobnego do hasza. Jest on
-skrzy¿owaniem pomiêdzy perlowym haszem a list±. Przydaje siê kiedy
-potrzeba szybko¶ci i struktury perlowych haszy, ale uporz±dkowania
+%description -l pl.UTF-8
+Ta klasa jest implementacją obiektu podobnego do hasza. Jest on
+skrzyżowaniem pomiędzy perlowym haszem a listą. Przydaje się kiedy
+potrzeba szybkości i struktury perlowych haszy, ale uporządkowania
listy.
%prep
INSTALLDIRS=vendor
%{__make}
+%{?with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT