%global gem_name image_size Name: rubygem-%{gem_name} Version: 2.1.1 Release: 3%{?dist} Summary: Measure image size using pure Ruby License: Ruby or GPLv2 URL: https://github.com/toy/image_size Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # pcx format image size reading fix on big endian (e.g. s390x) # reported: https://github.com/toy/image_size/pull/16 Patch0: image_size-2.1.1-pcx-bigendian.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby #%%check BuildRequires: rubygem(rspec) BuildArch: noarch %description Measure following file dimensions: apng, bmp, cur, gif, ico, j2c, jp2, jpeg, jpx, mng, pam, pbm, pcx, pgm, png, ppm, psd, svg, swf, tiff, webp, xbm, xpm. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} %description doc Documentation for %{name}. %prep %autosetup -n %{gem_name}-%{version} -p1 mv ../%{gem_name}-%{version}.gemspec . %build gem build ./%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ rm -f %{buildroot}%{gem_cache} pushd %{buildroot}%{gem_instdir} rm -rf \ .github \ .gitignore \ .rubocop* \ Gemfile \ %{gem_name}.gemspec \ spec \ %{nil} popd %check pushd .%{gem_instdir} rspec spec popd %files %dir %{gem_instdir} %license %{gem_instdir}/GPL %license %{gem_instdir}/LICENSE.txt %doc %{gem_instdir}/README.markdown %{gem_libdir} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.markdown %changelog * Fri Aug 20 2021 Mamoru TASAKA - 2.1.1-3 - Fix pcx format reading on big endian system (e.g. s390x) * Wed Aug 18 2021 Mamoru TASAKA - 2.1.1-2 - Remove unneeded environment setting - Disable failing test on s390x * Thu Aug 12 2021 Mamoru TASAKA - 2.1.1-1 - Initial package