# Generated from ruby-vips-2.0.17.gem by gem2rpm -*- rpm-spec -*- %global gem_name ruby-vips Name: rubygem-%{gem_name} Version: 2.1.4 Release: 1%{?dist} Summary: Ruby extension for the vips image processing library License: MIT URL: http://github.com/libvips/ruby-vips 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 http://github.com/libvips/ruby-vips # git -C ruby-vips archive -v -o ruby-vips-2.1.4-spec.txz v2.1.4 spec/ Source1: %{gem_name}-%{version}-spec.txz Requires: (libvips.so.42()(64bit) if libc.so.6()(64bit)) Requires: (libvips.so.42 if libc.so.6) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(rspec) >= 3.3 BuildRequires: rubygem(ffi) BuildRequires: (libvips.so.42()(64bit) if libc.so.6()(64bit)) BuildRequires: (libvips.so.42 if libc.so.6) BuildArch: noarch %description ruby-vips is a binding for the vips image processing library. It is fast and it can process large images without loading the whole image in memory. %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 # Do not use `env` in shebangs # https://github.com/libvips/ruby-vips/pull/245 sed -i 's|/usr/bin/env ruby|/usr/bin/ruby|' example/thumb.rb sed -i 's|/usr/bin/env ruby|/usr/bin/ruby|' example/example1.rb %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}/spec . rspec spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/%{gem_name}.gemspec %doc %{gem_instdir}/TODO %{gem_instdir}/VERSION %{gem_instdir}/example %changelog * Wed Feb 01 2023 Pavel Valena - 2.1.4-1 - Update to ruby-vips 2.1.4. * Fri Jan 20 2023 Fedora Release Engineering - 2.0.17-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 2.0.17-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Feb 02 2022 Vít Ondruch - 2.0.17-7 - Use glibc to check for the platform specificity. * Fri Jan 21 2022 Fedora Release Engineering - 2.0.17-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Sep 01 2021 Vít Ondruch - 2.0.17-5 - Remove the ppc64le workaround, since orc was fixed. Resolves: rhbz#1987951 Related: rhbz#1917540 * Sat Aug 14 2021 Mamoru TASAKA - 2.0.17-4 - Patch for ruby 3.0 keyword argument separation change, patch from the upstream - Workaround for vips segfault perhaps due to orc issue (bug 1917540) * Fri Jul 23 2021 Fedora Release Engineering - 2.0.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.0.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Aug 12 2020 Pavel Valena - 2.0.17-1 - Initial package