3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Array::IntSpan - a module for handling arrays using IntSpan techniques
9 Summary(pl.UTF-8): Array::IntSpan - moduł do obsługi tablic z użyciem techniki IntSpan
10 Name: perl-Array-IntSpan
13 # http://www.ActiveState.com/corporate/artistic_license.htm or
14 # the license that comes with your perl distribution.
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: a21691f17c714ee82ee6cdd14f2b899c
19 URL: http://search.cpan.org/dist/Array-IntSpan/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Array::IntSpan brings the speed advantages of Set::IntSpan (written by
27 Steven McDougall) to arrays. Uses include manipulating grades, routing
28 tables, or any other situation where you have mutually exclusive
29 ranges of integers that map to given values (or objects). This version
30 of Array::IntSpan is able to consolidate ranges by comparing adjacent
33 %description -l pl.UTF-8
34 Array::IntSpan przenosi zyski szybkościowe Set::IntSpan do tablic.
35 Może być używany do manipulacji rangami, tablicami routingu lub w
36 każdej innej sytuacji gdzie są rozłączne zakresy liczb całkowitych,
37 które mają przypisane do nich wartości lub obiekty. Ta wersja
38 Array::IntSpan jest w stanie konsolidować zakresy poprzez porównanie
39 sąsiadujących wartości.
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/Array/IntSpan.pm
65 %dir %{perl_vendorlib}/Array/IntSpan
66 %{perl_vendorlib}/Array/IntSpan/*.pm