[packages/perl-Math-Geometry-Voronoi] - initial

arekm arekm at pld-linux.org
Tue Jun 9 18:18:19 CEST 2015


commit a3649d164602b2ed1f27ec8b1c88ed533a84ef3c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jun 9 18:18:04 2015 +0200

    - initial

 perl-Math-Geometry-Voronoi.spec | 69 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
---
diff --git a/perl-Math-Geometry-Voronoi.spec b/perl-Math-Geometry-Voronoi.spec
new file mode 100644
index 0000000..010ce2d
--- /dev/null
+++ b/perl-Math-Geometry-Voronoi.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Math
+%define		pnam	Geometry-Voronoi
+%include	/usr/lib/rpm/macros.perl
+Summary:	Math::Geometry::Voronoi - compute Voronoi diagrams from sets of points
+Name:		perl-Math-Geometry-Voronoi
+Version:	1.3
+Release:	1
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	44392be55ff56870aaff286dd735a5e2
+URL:		http://search.cpan.org/dist/Math-Geometry-Voronoi/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Class-Accessor
+BuildRequires:	perl-Params-Validate
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module computes Voronoi diagrams from a set of input points. Info
+on Voronoi diagrams can be found here:
+
+http://en.wikipedia.org/wiki/Voronoi_diagram
+
+This module is a wrapper around a C implementation found here:
+
+http://www.derekbradley.ca/voronoi.html
+
+Which is itself a modification of code by Steve Fortune, the inventor
+of the algorithm used (Fortune's algorithm):
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Math/Geometry/Voronoi.pm
+%dir %{perl_vendorarch}/auto/Math/Geometry/Voronoi
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/Geometry/Voronoi/Voronoi.so
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Math-Geometry-Voronoi.git/commitdiff/a3649d164602b2ed1f27ec8b1c88ed533a84ef3c



More information about the pld-cvs-commit mailing list