]> git.pld-linux.org Git - packages/perl-Math-Gradient.git/blame - perl-Math-Gradient.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Math-Gradient.git] / perl-Math-Gradient.spec
CommitLineData
8881ebab
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
f872a717 4
03070cff 5%define pdir Math
6%define pnam Gradient
8881ebab 7Summary: Math::Gradient - calculating gradients for colour transitions etc.
0342fc54 8Summary(pl.UTF-8): Math::Gradient - obliczanie gradientów do przejść kolorów itp.
8881ebab 9Name: perl-Math-Gradient
c4dc4235 10Version: 0.04
d9cde394 11Release: 2
8881ebab 12# same as perl
35a0dc5b 13License: GPL v1+ or Artistic
8881ebab
JB
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
c4dc4235 16# Source0-md5: 4324edf09a8f684153ac0079f8507a0b
f872a717 17URL: http://search.cpan.org/dist/Math-Gradient/
51b77505 18BuildRequires: perl-devel >= 1:5.8.0
8881ebab
JB
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Math::Gradient is used to calculate smooth transitions between
25numerical values (also known as a "Gradient"). This module was written
26mainly to mix colours, but it probably has several other applications.
27Methods are supported to handle both basic and multiple-point
28gradients, both with scalars and arrays.
29
2428a119
JR
30%description -l pl.UTF-8
31Math::Gradient służy do obliczania płynnych przejść między wartościami
32liczbowymi (znanych też jako "gradienty"). Moduł został napisany
33głównie do mieszania kolorów, ale prawdopodobnie ma parę innych
34zastosowań. Zawiera metody do obsługi prostych i wielopunktowych
35gradientów, zarówno na skalarach, jak i tablicach.
8881ebab
JB
36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
41%{__perl} Makefile.PL \
42 INSTALLDIRS=vendor
43
44%{__make}
45
46%{?with_tests:%{__make} test}
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes README
60%{perl_vendorlib}/Math/Gradient.pm
61%{_mandir}/man3/*
This page took 0.069188 seconds and 4 git commands to generate.