# Generated from activerecord-mysql2rgeo-adapter-6.0.3.gem by gem2rpm -*- rpm-spec -*- %global gem_name activerecord-mysql2rgeo-adapter Name: rubygem-%{gem_name} Version: 6.0.3 Release: 1%{?dist} Summary: ActiveRecord adapter for MySQL, based on RGeo License: BSD-3-Clause URL: http://github.com/stadia/activerecord-mysql2rgeo-adapter Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.5.0 # BuildRequires: rubygem(minitest) >= 5.4 # BuildRequires: rubygem(minitest) < 6 # BuildRequires: rubygem(mocha) >= 1.1 # BuildRequires: rubygem(mocha) < 2 # BuildRequires: rubygem(appraisal) >= 2.0 # BuildRequires: rubygem(appraisal) < 3 BuildArch: noarch %description ActiveRecord connection adapter for MySQL. It is based on the stock MySQL adapter, and adds built-in support for the spatial extensions provided by MySQL. It uses the RGeo library to represent spatial data in Ruby. %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} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Sun Feb 06 2022 mockbuilder - 6.0.3-1 - Initial package