first version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Algorithm-QuadTree?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
Algorithm-QuadTree-0.1.tar.bz2
Normal file
3
Algorithm-QuadTree-0.1.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0a5b63da887e8c6d40beb2ed5371c880a42c26424903e8210a3ad9261398521e
|
||||||
|
size 6276
|
5
perl-Algorithm-QuadTree.changes
Normal file
5
perl-Algorithm-QuadTree.changes
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 05 00:00:00 UTC 2011 - opensuse@dstoecker.de
|
||||||
|
|
||||||
|
- initial package release
|
||||||
|
|
64
perl-Algorithm-QuadTree.spec
Normal file
64
perl-Algorithm-QuadTree.spec
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#
|
||||||
|
# spec file for package perl-Algorithm-QuadTree
|
||||||
|
#
|
||||||
|
# This file and all modifications and additions to the pristine
|
||||||
|
# package are under the same license as the package itself.
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: perl-Algorithm-QuadTree
|
||||||
|
Version: 0.1
|
||||||
|
Release: 1
|
||||||
|
AutoReqProv: on
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
License: Perl
|
||||||
|
URL: http://search.cpan.org/dist/Algorithm-QuadTree/
|
||||||
|
Summary: A QuadTree Algorithm class in pure Perl
|
||||||
|
Source: Algorithm-QuadTree-%{version}.tar.bz2
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%{perl_requires}
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
|
||||||
|
%description
|
||||||
|
Algorithm::QuadTree implements a quadtree algorithm (QTA) in pure Perl.
|
||||||
|
Essentially, a QTA is used to access a particular area of a map very quickly.
|
||||||
|
This is especially useful in finding objects enclosed in a given region, or in
|
||||||
|
detecting intersection among objects. In fact, I wrote this module to rapidly
|
||||||
|
search through objects in a Tk::Canvas widget, but have since used it in other
|
||||||
|
non-Tk programs successfully. It is a classic memory/speed trade-off.
|
||||||
|
|
||||||
|
Lots of information about QTAs can be found on the web. But, very briefly, a
|
||||||
|
quadtree is a hierarchical data model that recursively decomposes a map into
|
||||||
|
smaller regions. Each node in the tree has 4 children nodes, each of which
|
||||||
|
represents one quarter of the area that the parent represents. So, the root node
|
||||||
|
represents the complete map. This map is then split into 4 equal quarters, each
|
||||||
|
of which is represented by one child node. Each of these children is now treated
|
||||||
|
as a parent, and its area is recursively split up into 4 equal areas, and so on
|
||||||
|
up to a desired depth.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n QuadTree
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||||
|
make
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||||
|
%perl_process_packlist
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README Changes
|
||||||
|
%doc %{_mandir}/man3/*
|
||||||
|
%{perl_vendorlib}/Algorithm
|
||||||
|
#%{perl_vendorarch}/auto/Algorithm
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user