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