]> git.pld-linux.org Git - SPECS.git/blob - perl-Math-CatmullRom.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / perl-Math-CatmullRom.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Math
6 %define         pnam    CatmullRom
7 Summary:        Math::CatmullRom - calculate Catmull-Rom splines
8 Summary(pl.UTF-8):      Math::CatmullRom - obliczanie splajnów Catmulla-Roma
9 Name:           perl-Math-CatmullRom
10 Version:        0.00
11 Release:        2
12 License:        GPL or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  c924e04872eed511e9b6f7c43af2af45
16 URL:            http://search.cpan.org/dist/Math-CatmullRom/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This module provides an algorithm to generate plots for Catmull-Rom
24 splines.
25
26 A Catmull-Rom spline can be considered a special type of Bezier curve
27 that guarantees that the curve will cross every control point starting
28 at the second point and terminating at the penultimate one. For this
29 reason the minimum number of control points is 4.
30
31 %description -l pl.UTF-8
32 Ten moduł udostępnia algorytm do generowania wykresów splajnów
33 Catmulla-Roma.
34
35 Splajn Catmulla-Roma można uznać za specjalny typ krzywej Beziera,
36 gwarantujący, że krzywa przetnie wszystkie punkty kontrolne poczynając
37 od drugiego a kończąc na przedostatnim. Dlatego minimalna liczba
38 punktów kontrolnych to 4.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README
63 %{perl_vendorlib}/Math/CatmullRom.pm
64 %{_mandir}/man3/*
This page took 0.116896 seconds and 3 git commands to generate.