[perl-Math-ConvexHull] Initial import (#890799)
Miroslav Hrončok
churchyard at fedoraproject.org
Sun Dec 30 21:41:51 UTC 2012
commit 94ac83a207ab7d202ff9f7d5d23f93c87c5fb84e
Author: Miro Hrončok <miro at hroncok.cz>
Date: Sun Dec 30 22:41:38 2012 +0100
Initial import (#890799)
.gitignore | 1 +
perl-Math-ConvexHull.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f6e1de6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Math-ConvexHull-1.04.tar.gz
diff --git a/perl-Math-ConvexHull.spec b/perl-Math-ConvexHull.spec
new file mode 100644
index 0000000..995f212
--- /dev/null
+++ b/perl-Math-ConvexHull.spec
@@ -0,0 +1,60 @@
+Name: perl-Math-ConvexHull
+Version: 1.04
+Release: 3%{?dist}
+Summary: Calculate convex hulls using Graham's scan (n*log(n))
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Math-ConvexHull/
+Source0: http://www.cpan.org/authors/id/S/SM/SMUELLER/Math-ConvexHull-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(List::Util)
+BuildRequires: perl(Test::More)
+BuildRequires: dos2unix
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Math::ConvexHull is a simple module that calculates convex hulls from a set
+of points in 2D space. It is a straightforward implementation of the
+algorithm known as Graham's scan which, with complexity of O(n*log(n)), is
+the fastest known method of finding the convex hull of an arbitrary set of
+points. There are some methods of eliminating points that cannot be part of
+the convex hull. These may or may not be implemented in a future version.
+
+%prep
+%setup -q -n Math-ConvexHull-%{version}
+dos2unix Changes
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sun Dec 30 2012 Miro Hrončok <miro at hroncok.cz> - 1.04-3
+- PERL_INSTALL_ROOT changed to DESTDIR
+- Using dos2unix instead of sed
+- Added some remvoed BRs back
+- Do not filter shared C libs (noarch)
+
+* Fri Nov 16 2012 Miro Hrončok <miro at hroncok.cz> - 1.04-2
+- Removed BRs provided by perl package
+
+* Fri Sep 21 2012 Miro Hrončok <miro at hroncok.cz> 1.04-1
+- Specfile autogenerated by cpanspec 1.78 and revision made.
diff --git a/sources b/sources
index e69de29..a94dbe5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5d9225c5fadf5c71172cd88c81661d4d Math-ConvexHull-1.04.tar.gz
More information about the scm-commits
mailing list