# Generated from rubyneat-0.5.3.gem by gem2rpm -*- rpm-spec -*- %global gem_name rubyneat Name: rubygem-%{gem_name} Version: 0.5.3 Release: 1%{?dist} Summary: RubyNEAT NeuralEvolution of Augmenting Topologies License: MIT URL: http://rubyneat.com 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(guard) >= 2 # BuildRequires: rubygem(guard) < 3 # BuildRequires: rubygem(guard-rspec) >= 4 # BuildRequires: rubygem(guard-rspec) < 5 # BuildRequires: rubygem(jeweler) >= 2 # BuildRequires: rubygem(jeweler) < 3 # BuildRequires: rubygem(simplecov) # BuildRequires: rubygem(simplecov) < 1 # BuildRequires: rubygem(pry) # BuildRequires: rubygem(pry-doc) # BuildRequires: rubygem(pry-byebug) # BuildRequires: rubygem(pry-remote) # BuildRequires: rubygem(pry-rescue) # BuildRequires: rubygem(pry-stack_explorer) BuildArch: noarch %description RubyNEAT -- Neural Evolution of Augmenting Topologies for Ruby. By way of an enhanced form of Genetic Algorithms -- the NEAT algorithm, populations of neural nets are evolved to handle pre-defined goals. RubyNEAT is the first implementation of the NEAT algorithm for Ruby, and it leverages Ruby's power to implement the NEAT algorithm in a way that would be difficult to do in other languages. The 'activation function' is largely standalone. Basically, activation is achieved by functional programming. Meaning, once your network is evolved, you can extract it as source code you can then utilize without the RubyNEAT engine. RubyNEAT can be used for nearly any Machine Learning task you can dream of, because it's also extensible and modular. See http://rubyneat.com for the details. . %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}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/neat %{gem_instdir}/.directory %exclude %{gem_instdir}/.irbrc %{gem_instdir}/.ruby-version %{gem_instdir}/.semver %{gem_instdir}/bin %{gem_instdir}/config %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.lock %{gem_instdir}/Gemfile.lock.orig %{gem_instdir}/Gemfile.orig %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/rubyneat.gemspec %{gem_instdir}/spec %changelog * Wed Aug 25 2021 mockbuilder - 0.5.3-1 - Initial package