# Generated from ruby-vips-2.0.17.gem by gem2rpm -*- rpm-spec -*- %global gem_name ruby-vips Name: rubygem-%{gem_name} Version: 2.0.17 Release: 13%{?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 # Extracted from # https://github.com/libvips/ruby-vips/commit/2ecd377375ef7f0fa182253a1b06980b2a9b358d Patch1: %{name}-%{version}-use-nil-for-object-rb.patch # Extracted from # https://github.com/libvips/ruby-vips/commit/e0203e9ed8be27ed195b4c5b0ca87c35daff36cc Patch2: %{name}-%{version}-proc-capture-for-object-rb.patch # https://github.com/libvips/ruby-vips/pull/407 Patch3: %{name}-pr407-variadic-func-call-sentinel.patch # Tests are not shipped with the gem, you may check them out like so: # git clone --no-checkout http://github.com/libvips/ruby-vips # cd ruby-vips && git archive -v -o ruby-vips-2.0.17-spec.txz v2.0.17 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 %patch -P1 -p1 %patch -P2 -p1 %patch -P3 -p1 # 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 %{gem_instdir}/install-vips.sh %changelog * Mon Nov 18 2024 Mamoru TASAKA - 2.0.17-13 - Apply upstream patch to add sentinel when calling variadic C func * Fri Jul 19 2024 Fedora Release Engineering - 2.0.17-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 2.0.17-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.0.17-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * 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