]> git.pld-linux.org Git - packages/perl-Math-Gradient.git/blob - perl-Math-Gradient.spec
- new
[packages/perl-Math-Gradient.git] / perl-Math-Gradient.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Math
7 %define pnam    Gradient
8 Summary:        Math::Gradient - calculating gradients for colour transitions etc.
9 Summary(pl):    Math::Gradient - obliczanie gradientów do przej¶æ kolorów itp.
10 Name:           perl-Math-Gradient
11 Version:        0.02
12 Release:        1
13 # same as perl
14 License:        GPL or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
17 # Source0-md5:  a93701f52086bab0ebdbb7f2d23a0eaf
18 BuildRequires:  perl-devel >= 5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
29
30 %description -l pl
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.
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
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -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.215986 seconds and 3 git commands to generate.