3 %bcond_with tests # do not perform "make test"
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
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
19 BuildRequires: perl-Math-Geometry-Planar-GPC >= 1.04
20 BuildRequires: perl-Math-Geometry-Planar-Offset >= 1.00
22 BuildRequires: rpm-perlprov >= 4.1-13
23 Requires: perl-Math-Geometry-Planar-GPC >= 1.04
25 #Requires: perl-Math-Geometry-Planar-Offset >= 1.00
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorlib}/Math/Geometry
61 %{perl_vendorlib}/Math/Geometry/Planar.pm