]> git.pld-linux.org Git - packages/perl-Math-PlanePath.git/blame - perl-Math-PlanePath.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Math-PlanePath.git] / perl-Math-PlanePath.spec
CommitLineData
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
7Summary: Points on a path through the 2-D plane
8Name: perl-Math-PlanePath
9Version: 119
10Release: 1
11License: GPL
12Group: Development/Languages/Perl
13Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
14# Source0-md5: 9f801c33fe099b943f46ceccbc5fab40
15URL: http://search.cpan.org/dist/Math-PlanePath/
16BuildRequires: perl-devel >= 1:5.8.0
17BuildRequires: rpm-perlprov >= 4.1-13
18%if %{with tests}
19BuildRequires: perl(Math::Libm)
20BuildRequires: perl(constant::defer) >= 5
21%endif
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Points 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
40rm -rf $RPM_BUILD_ROOT
41
42%{__make} pure_install \
43 DESTDIR=$RPM_BUILD_ROOT
44
45install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47
48%clean
49rm -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}
This page took 0.058074 seconds and 4 git commands to generate.