[perl-Math-ConvexHull-MonotoneChain] Initial import (#890803)

Miroslav Hrončok churchyard at fedoraproject.org
Sun Dec 30 21:43:23 UTC 2012


commit d8e4a917ba652b7d3f8ffd76a2769878b803c1a5
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Sun Dec 30 22:43:11 2012 +0100

    Initial import (#890803)

 .gitignore                              |    1 +
 perl-Math-ConvexHull-MonotoneChain.spec |   62 +++++++++++++++++++++++++++++++
 sources                                 |    1 +
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..828adcb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Math-ConvexHull-MonotoneChain-0.01.tar.gz
diff --git a/perl-Math-ConvexHull-MonotoneChain.spec b/perl-Math-ConvexHull-MonotoneChain.spec
new file mode 100644
index 0000000..999bb97
--- /dev/null
+++ b/perl-Math-ConvexHull-MonotoneChain.spec
@@ -0,0 +1,62 @@
+Name:           perl-Math-ConvexHull-MonotoneChain
+Version:        0.01
+Release:        3%{?dist}
+Summary:        Monotone chain algorithm for finding a convex hull in 2D
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Math-ConvexHull-MonotoneChain/
+Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/Math-ConvexHull-MonotoneChain-%{version}.tar.gz
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(XSLoader)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(XSLoader)
+
+%{?perl_default_filter} # Filters (not)shared c libs
+
+%description
+This is somewhat experimental still.
+
+This (XS) module optionally exports a single function C<convex_hull>
+which calculates the convex hull of the input points and returns it.
+The algorithm is C<O(n log n)> due to having to sort the input list,
+but should be somewhat faster than a plain Graham's scan (also C<O(n log n)>)
+in practice since it avoids polar coordinates.
+
+%prep
+%setup -q -n Math-ConvexHull-MonotoneChain-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes META.json
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Math*
+%{_mandir}/man3/*
+
+%changelog
+* Sun Dec 30 2012 Miro Hrončok <miro at hroncok.cz> - 0.01-3
+- PERL_INSTALL_ROOT changed to DESTDIR
+- Removed the deleting empty directories
+- Removed Andrew from summary
+- Added BR Exporter back
+
+* Fri Nov 16 2012 Miro Hrončok <miro at hroncok.cz> - 0.01-2
+- Removed BRs provided by perl package
+
+* Wed Nov 14 2012 Miro Hrončok <miro at hroncok.cz> 0.01-1
+- Specfile autogenerated by cpanspec 1.78 and revised.
diff --git a/sources b/sources
index e69de29..61ba724 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eaac1a9350f914fea5bbce2029b95b57  Math-ConvexHull-MonotoneChain-0.01.tar.gz


More information about the scm-commits mailing list