]>
Commit | Line | Data |
---|---|---|
5e0e7beb AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Math | |
6 | %define pnam PlanePath | |
5e0e7beb AM |
7 | Summary: Points on a path through the 2-D plane |
8 | Name: perl-Math-PlanePath | |
9 | Version: 119 | |
10 | Release: 1 | |
11 | License: GPL | |
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 | |
18 | %if %{with tests} | |
19 | BuildRequires: perl(Math::Libm) | |
20 | BuildRequires: perl(constant::defer) >= 5 | |
21 | %endif | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Points on a path through the 2-D plane. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
29 | ||
30 | %build | |
31 | %{__perl} Makefile.PL \ | |
32 | INSTALLDIRS=vendor | |
33 | %{__make} \ | |
34 | CC="%{__cc}" \ | |
35 | OPTIMIZE="%{rpmcflags}" | |
36 | ||
37 | %{?with_tests:%{__make} test} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %{__make} pure_install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
45 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
46 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc Changes | |
54 | %{perl_vendorlib}/Math/NumSeq | |
55 | %{perl_vendorlib}/Math/PlanePath | |
56 | %{perl_vendorlib}/Math/PlanePath.pm | |
57 | %{_mandir}/man3/* | |
58 | %{_examplesdir}/%{name}-%{version} |