]> git.pld-linux.org Git - SPECS.git/blob - perl-Math-Geometry.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / perl-Math-Geometry.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Math
6 %define         pnam    Geometry
7 Summary:        Math::Geometry - geometry related functions
8 Summary(pl.UTF-8):      Math::Geometry - funkcje związane z geometrią
9 Name:           perl-Math-Geometry
10 Version:        0.04
11 Release:        1
12 License:        unknown
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  bc05acfb1b8ddcc3bb869f0df13ea15b
16 URL:            http://search.cpan.org/dist/Math-Geometry/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Math-Matrix
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This package implements classic geometry methods.
27
28 %description -l pl.UTF-8
29 Ten pakiet zawiera implementacje klasycznych metod geometrycznych.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33 %{__perl} -pi -e '$.==1&&s|/usr/local/|/usr/|' Geometry.pm
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38
39 %{__make}
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README
55 %{perl_vendorlib}/Math/Geometry.pm
56 %{_mandir}/man3/*
This page took 0.086614 seconds and 3 git commands to generate.