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