# Generated from rubyzip-1.1.7.gem by gem2rpm -*- rpm-spec -*- %global gem_name rubyzip Name: rubygem-%{gem_name} Version: 2.3.2 Release: 10%{?dist} Summary: A ruby module for reading and writing zip files License: Ruby OR BSD-2-Clause URL: http://github.com/rubyzip/rubyzip Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/rubyzip/rubyzip.git --no-checkout # cd rubyzip && git archive -v -o rubyzip-2.3.2-test.txz v2.3.2 test/ Source1: %{gem_name}-%{version}-test.txz # Fix errors when build is run on s390x. # https://github.com/rubyzip/rubyzip/issues/535 # https://github.com/rubyzip/rubyzip/pull/445 Patch1: rubygem-rubyzip-2.3.2-fix-test_extract_incorrect_size-in-s390x-arch.patch # Make test compatibility with zlib-ng. # https://github.com/rubyzip/rubyzip/pull/447/commits/99d8f59eaf8baebf971fb603b437d24a26d93c3a Patch2: rubygem-rubyzip-3.0.0-Change-encryption-test-less-implementation-specific.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(minitest) BuildArch: noarch %description A ruby module for reading and writing zip files. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b 1 pushd %{_builddir} %patch 1 -p1 %patch 2 -p1 popd %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} cp -a %{_builddir}/test . # We don't need about coverage. sed -i '/simplecov/ s/^/#/' test/test_helper.rb ruby -rforwardable -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %doc %{gem_instdir}/README.md %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Rakefile %doc %{gem_instdir}/TODO %{gem_instdir}/samples %changelog * Fri Jul 19 2024 Fedora Release Engineering - 2.3.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Feb 19 2024 Lukáš Zaoral - 2.3.2-9 - migrate to SPDX license format * Fri Jan 26 2024 Fedora Release Engineering - 2.3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Dec 22 2023 Vít Ondruch - 2.3.2-7 - Fix test failures due to zlib-ng providing slightly different output. * Fri Jul 21 2023 Fedora Release Engineering - 2.3.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Aug 25 2022 Vít Ondruch - 2.3.2-4 - Fix test error on s390x. Resolves: rhbz#2113706 * Sat Jul 23 2022 Fedora Release Engineering - 2.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 03 2021 Pavel Valena - 2.3.2-1 - Update to rubyzip 2.3.2. Resolves: rhbz#1978909 * Fri Jul 23 2021 Fedora Release Engineering - 2.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jul 31 13:06:47 GMT 2020 Pavel Valena - 2.3.0-1 - Update to Rubyzip 2.3.0. Resolves: rhbz#1794962 * Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 12 2019 Vít Ondruch - 2.0.0-1 - Update to Rubyzip 2.0.0. * Fri Jul 26 2019 Fedora Release Engineering - 1.1.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.1.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.1.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Mar 31 2015 Vít Ondruch - 1.1.7-1 - Update to rubyzip 1.1.7. * Sun Jun 08 2014 Fedora Release Engineering - 0.9.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.9.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Mar 08 2013 Vít Ondruch - 0.9.4-6 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 0.9.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.9.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Feb 03 2012 Vít Ondruch - 0.9.4-3 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.9.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Aug 03 2011 Chris Lalancette - 0.9.4-1 - Initial package