3 %bcond_without tests # do not perform "make test"
7 Summary: Points on a path through the 2-D plane
8 Name: perl-Math-PlanePath
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 9f801c33fe099b943f46ceccbc5fab40
15 URL: http://search.cpan.org/dist/Math-PlanePath/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl(Math::Libm)
20 BuildRequires: perl(constant::defer) >= 5
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Points on a path through the 2-D plane.
28 %setup -q -n %{pdir}-%{pnam}-%{version}
31 %{__perl} Makefile.PL \
35 OPTIMIZE="%{rpmcflags}"
37 %{?with_tests:%{__make} test}
40 rm -rf $RPM_BUILD_ROOT
42 %{__make} pure_install \
43 DESTDIR=$RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{perl_vendorlib}/Math/NumSeq
55 %{perl_vendorlib}/Math/PlanePath
56 %{perl_vendorlib}/Math/PlanePath.pm
58 %{_examplesdir}/%{name}-%{version}