3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Math::Gradient - calculating gradients for colour transitions etc.
9 Summary(pl.UTF-8): Math::Gradient - obliczanie gradientów do przejść kolorów itp.
10 Name: perl-Math-Gradient
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
17 # Source0-md5: 4324edf09a8f684153ac0079f8507a0b
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Math::Gradient is used to calculate smooth transitions between
25 numerical values (also known as a "Gradient"). This module was written
26 mainly to mix colours, but it probably has several other applications.
27 Methods are supported to handle both basic and multiple-point
28 gradients, both with scalars and arrays.
30 %description -l pl.UTF-8
31 Math::Gradient służy do obliczania płynnych przejść między wartościami
32 liczbowymi (znanych też jako "gradienty"). Moduł został napisany
33 głównie do mieszania kolorów, ale prawdopodobnie ma parę innych
34 zastosowań. Zawiera metody do obsługi prostych i wielopunktowych
35 gradientów, zarówno na skalarach, jak i tablicach.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Math/Gradient.pm