# Generated from k-tree-0.0.8.gem by gem2rpm -*- rpm-spec -*- %global gem_name k-tree Name: rubygem-%{gem_name} Version: 0.0.8 Release: 1%{?dist} Summary: K-Tree is a generalization of quadtrees and octrees License: MIT URL: http://github.com/flajann2/k-tree Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0 # BuildRequires: rubygem(rspec) >= 3 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(yard) # BuildRequires: rubygem(yard) < 1 # BuildRequires: rubygem(juwelier) >= 2 # BuildRequires: rubygem(juwelier) < 3 # BuildRequires: rubygem(simplecov) # BuildRequires: rubygem(simplecov) < 1 # BuildRequires: rubygem(guard-rspec) # BuildRequires: rubygem(guard-rspec) < 1 BuildArch: noarch %description This is a data structure to represent and manage k-trees, primarily created for use in RubyNEAT, but may see other possible applications. The goal here is to be roebust in the creation of your k-tree, to allow you to prune during creation, since, especially for higher-dimensional trees, the number of leaf node can become very large. So a parent will have children nodes created down to the desired resolution, and immediately after the creation of the children, will check to see if there's enough variance among the children to keep them. If not, they are pruned immediately. . %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{gem_instdir}/.ruby-version %{gem_instdir}/.semver %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/.document %exclude %{gem_instdir}/.rspec %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.lock %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/k-tree.gemspec %{gem_instdir}/spec %changelog * Mon Sep 13 2021 mockbuilder - 0.0.8-1 - Initial package