]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Math::Geometry::Planar - a collection of planar geometry functions |
2557a638 | 9 | Summary(pl.UTF-8): Math::Geometry::Planar - zestaw funkcji do geometrii na płaszczyźnie |
d9786302 | 10 | Name: perl-Math-Geometry-Planar |
503a2aa6 | 11 | Version: 1.14 |
6bbf9ce4 | 12 | Release: 3 |
d9786302 JB |
13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
26d0236f | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
503a2aa6 | 16 | # Source0-md5: bd0dcc151a49a5d692994366c55abc92 |
8c373aa1 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
eab7a84b | 18 | %if %{with tests} |
b534e3f3 JB |
19 | BuildRequires: perl-Math-Geometry-Planar-GPC >= 1.04 |
20 | BuildRequires: perl-Math-Geometry-Planar-Offset >= 1.00 | |
eab7a84b | 21 | %endif |
e095f422 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
b534e3f3 | 23 | Requires: perl-Math-Geometry-Planar-GPC >= 1.04 |
6bbf9ce4 ER |
24 | # loop |
25 | #Requires: perl-Math-Geometry-Planar-Offset >= 1.00 | |
d9786302 JB |
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 | ||
7642c4fd JR |
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. | |
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 | |
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 | |
e095f422 | 60 | %dir %{perl_vendorlib}/Math/Geometry |
61 | %{perl_vendorlib}/Math/Geometry/Planar.pm | |
d9786302 | 62 | %{_mandir}/man3/* |