3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Geometry-Planar-GPC
8 Summary: Math::Geometry::Planar::GPC - Perl wrapper for Alan Murta's gpc library
9 Summary(pl.UTF-8): Math::Geometry::Planar::GPC - interfejs perlowy do biblioteki gpc Alana Murty
10 Name: perl-Math-Geometry-Planar-GPC
13 # perl interface is under "Artistic" license, but gpc itself is non-commercial
14 License: non-commercial use, freely distributable
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 0f059f596abba73eee7f0ffcee134567
18 URL: http://search.cpan.org/dist/Math-Geometry-Planar-GPC/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 Obsoletes: perl-Math-Geometry-GPC
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module is just a wrapper around the gpc (Generic Polygon
26 Clipping) C library written by Alan Murta.
28 %description -l pl.UTF-8
29 Ten moduł jest interfejsem do biblioteki C gpc (Generic Polygon
30 Clipping - ogólnego obcinania wielokątów) autorstwa Alana Murty.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %dir %{perl_vendorarch}/Math/Geometry
57 %dir %{perl_vendorarch}/Math/Geometry/Planar
58 %{perl_vendorarch}/Math/Geometry/Planar/GPC.pm
59 %dir %{perl_vendorarch}/auto/Math/Geometry
60 %dir %{perl_vendorarch}/auto/Math/Geometry/Planar
61 %dir %{perl_vendorarch}/auto/Math/Geometry/Planar/GPC
62 %attr(755,root,root) %{perl_vendorarch}/auto/Math/Geometry/Planar/GPC/GPC.so