]> git.pld-linux.org Git - SPECS.git/blob - perl-Math-Geometry-Planar.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Math-Geometry-Planar.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # do not perform "make test"
4 #
5 %define         pdir    Math
6 %define         pnam    Geometry-Planar
7 Summary:        Math::Geometry::Planar - a collection of planar geometry functions
8 Summary(pl.UTF-8):      Math::Geometry::Planar - zestaw funkcji do geometrii na płaszczyźnie
9 Name:           perl-Math-Geometry-Planar
10 Version:        1.17
11 Release:        1
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  9b5c6bbe59e578ac14c975f6d3758666
16 URL:            http://search.cpan.org/dist/Math-Geometry-Planar/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 %if %{with tests}
19 BuildRequires:  perl-Math-Geometry-Planar-GPC >= 1.04
20 BuildRequires:  perl-Math-Geometry-Planar-Offset >= 1.00
21 %endif
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 Requires:       perl-Math-Geometry-Planar-GPC >= 1.04
24 # loop
25 #Requires:      perl-Math-Geometry-Planar-Offset >= 1.00
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 This module provides a set of 2D polygon, line and line segment
31 operations. The module also uses the GPC module for polygon clipping
32 operaions.
33
34 %description -l pl.UTF-8
35 Ten moduł udostępnia zestaw operacji na wielokątach 2D, liniach i
36 odcinkach. Używa modułu GPC do obcinania wielokątów.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %dir %{perl_vendorlib}/Math/Geometry
61 %{perl_vendorlib}/Math/Geometry/Planar.pm
62 %{_mandir}/man3/*
This page took 1.392965 seconds and 3 git commands to generate.