# Generated from upsert-2.9.10.gem by gem2rpm -*- rpm-spec -*- %global gem_name upsert Name: rubygem-%{gem_name} Version: 2.9.10 Release: 1%{?dist} Summary: Make it easy to upsert on MySQL, PostgreSQL, and SQLite3. Transparently creates merge functions for MySQL and PostgreSQL; on SQLite3, uses INSERT OR IGNORE License: MIT URL: https://github.com/seamusabshere/upsert Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(rspec-core) # BuildRequires: rubygem(rspec-expectations) # BuildRequires: rubygem(rspec-mocks) # BuildRequires: rubygem(activerecord) >= 5 # BuildRequires: rubygem(activerecord) < 6 # BuildRequires: rubygem(yard) # BuildRequires: rubygem(pry) # BuildRequires: rubygem(pg-hstore) >= 1.1.3 # BuildRequires: rubygem(sequel) # BuildRequires: rubygem(activerecord-import) >= 1 # BuildRequires: rubygem(activerecord-import) < 2 # BuildRequires: rubygem(faker) # BuildRequires: rubygem(activerecord-postgresql-adapter) # BuildRequires: rubygem(sqlite3) # BuildRequires: rubygem(mysql2) >= 0.5 # BuildRequires: rubygem(mysql2) < 1 # BuildRequires: rubygem(pg) >= 1.1 # BuildRequires: rubygem(pg) < 2 # BuildRequires: rubygem(pry-byebug) BuildArch: noarch %description Make it easy to upsert on MySQL, PostgreSQL, and SQLite3. Transparently creates merge functions for MySQL and PostgreSQL; on SQLite3, uses INSERT OR IGNORE. %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} # Run the test suite. popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %{gem_instdir}/.ruby-version %{gem_instdir}/.standard.yml %exclude %{gem_instdir}/.travis.yml %exclude %{gem_instdir}/.yardopts %license %{gem_instdir}/LICENSE %{gem_libdir} %{gem_instdir}/travis %{gem_instdir}/upsert.gemspec.common %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/spec %{gem_instdir}/upsert-java.gemspec %{gem_instdir}/upsert.gemspec %changelog * Thu Sep 16 2021 mockbuilder - 2.9.10-1 - Initial package