]>
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 |
c17908bd | 11 | Version: 1.17 |
12 | Release: 1 | |
d9786302 JB |
13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
b4b0c27c | 15 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
c17908bd | 16 | # Source0-md5: 9b5c6bbe59e578ac14c975f6d3758666 |
b4b0c27c | 17 | URL: http://search.cpan.org/dist/Math-Geometry-Planar/ |
8c373aa1 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
eab7a84b | 19 | %if %{with tests} |
b534e3f3 JB |
20 | BuildRequires: perl-Math-Geometry-Planar-GPC >= 1.04 |
21 | BuildRequires: perl-Math-Geometry-Planar-Offset >= 1.00 | |
eab7a84b | 22 | %endif |
e095f422 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
b534e3f3 | 24 | Requires: perl-Math-Geometry-Planar-GPC >= 1.04 |
6bbf9ce4 ER |
25 | # loop |
26 | #Requires: perl-Math-Geometry-Planar-Offset >= 1.00 | |
d9786302 JB |
27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | This module provides a set of 2D polygon, line and line segment | |
32 | operations. The module also uses the GPC module for polygon clipping | |
33 | operaions. | |
34 | ||
7642c4fd JR |
35 | %description -l pl.UTF-8 |
36 | Ten moduł udostępnia zestaw operacji na wielokątach 2D, liniach i | |
37 | odcinkach. Używa modułu GPC do obcinania wielokątów. | |
d9786302 JB |
38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
e095f422 | 43 | %{__perl} Makefile.PL \ |
299130bf | 44 | INSTALLDIRS=vendor |
d9786302 JB |
45 | %{__make} |
46 | ||
6389d6b8 | 47 | %{?with_tests:%{__make} test} |
d9786302 JB |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes README | |
e095f422 | 61 | %dir %{perl_vendorlib}/Math/Geometry |
62 | %{perl_vendorlib}/Math/Geometry/Planar.pm | |
d9786302 | 63 | %{_mandir}/man3/* |