# Generated from image_processing-1.11.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name image_processing Name: rubygem-%{gem_name} Version: 1.12.1 Release: 1%{?dist} Summary: High-level wrapper for processing images for the web with ImageMagick or libvips License: MIT URL: https://github.com/janko/image_processing Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Tests are not shipped with the gem, you may check them out like so: # git clone --no-checkout https://github.com/janko/image_processing # cd image_processing && git archive -v -o image_processing-1.12.1-tests.txz v1.12.1 test/ Source1: %{gem_name}-%{version}-tests.txz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.3 BuildRequires: rubygem(minitest) >= 5.8 BuildRequires: rubygem(mini_magick) BuildRequires: rubygem(ruby-vips) BuildArch: noarch %description High-level wrapper for processing images for the web with ImageMagick or libvips. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} ln -s %{_builddir}/test . # Tests dependencies that are not needed sed -i '/require .minitest.hooks/ s/^/#/g' test/test_helper.rb sed -i '/require .minispec-metadata/ s/^/#/g' test/test_helper.rb sed -i '/require .bundler./ s/^/#/g' test/test_helper.rb # Use the RUBY_ENGINE check to avoid phashion dependency sed -i '/RUBY_ENGINE == "jruby"/ s/jruby/ruby/' test/test_helper.rb # Test output has changed with vips or rubygems-vips version # https://github.com/janko/image_processing/issues/98 sed -i '/it "raises correct Vips::Error on unknown saver" do/ a\ skip ' test/vips_test.rb ruby -Ilib:test -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} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.md %{gem_instdir}/%{gem_name}.gemspec %changelog * Thu Feb 10 2022 Pavel Valena - 1.12.1-1 - Update to image_processing 1.12.1. * Fri Jan 21 2022 Fedora Release Engineering - 1.11.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 1.11.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Aug 11 2020 Pavel Valena - 1.11.0-2 - Initial package Resolves: rhbz#1869719