# Generated from curb-0.7.7.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name curb Name: rubygem-%{gem_name} Version: 0.9.10 Release: 3%{?dist}.1 Summary: Ruby libcurl bindings License: Ruby URL: https://github.com/taf2/curb Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Patch0: curb-disable-network-lookup-test.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel BuildRequires: rubygem(test-unit) BuildRequires: libcurl-devel BuildRequires: gcc %description Curb (probably CUrl-RuBy or something) provides Ruby-language bindings for the libcurl(3), a fully-featured client-side URL transfer library. cURL and libcurl live at http://curl.haxx.se/. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %if 0%{?rhel} <= 7 gem unpack %{SOURCE0} gem specification %{SOURCE0} -l --ruby > %{gem_name}-%{version}.gemspec %endif %setup -q -D -n %{gem_name}-%{version} %patch0 -p1 %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{gem_extdir_mri} cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/ # Prevent dangling symlink in -debuginfo (rhbz#878863). rm -rf %{buildroot}%{gem_instdir}/ext/ %check pushd .%{gem_instdir} # Skip test as it requires actual remote connection opened sed -i '/^ def test_connection_keepalive/ a omit' \ tests/tc_curl_multi.rb # ??? With ruby27 the trailing space is removed, fixing as it is sed -i tests/tc_curl_easy.rb \ -e "s|1 200 OK '|1 200 OK'|" ruby -e 'Dir.glob "./tests/tc_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %{gem_extdir_mri} %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.markdown %{gem_instdir}/Rakefile %{gem_instdir}/doc.rb %{gem_instdir}/tests %changelog * Thu Jan 30 2020 Fedora Release Engineering - 0.9.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 21 2020 Mamoru TASAKA - 0.9.10-2 - Modify test suite for ruby27 a bit - Rebuild against ruby27 * Wed Nov 13 2019 Steve Traylen - 0.9.10-1 - Update to curb 0.9.10. * Fri Jul 26 2019 Fedora Release Engineering - 0.9.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 27 2019 Pavel Valena - 0.9.9-1 - Update to curb 0.9.9. * Tue Mar 05 2019 Pavel Valena - 0.9.8-1 - Update to curb 0.9.8. * Sat Feb 02 2019 Fedora Release Engineering - 0.9.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jan 17 2019 Vít Ondruch - 0.9.7-1 - Update to curb 0.9.7. * Thu Jan 17 2019 Vít Ondruch - 0.9.6-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6 * Sat Aug 11 2018 Vít Ondruch - 0.9.6-2 - Add missing BR: gcc to fix FTBFS (rhbz#1606181). * Sat Jul 14 2018 Fedora Release Engineering - 0.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed May 30 2018 Steve Traylen - 0.9.6-1 - Update to curb 0.9.6. * Fri Feb 09 2018 Fedora Release Engineering - 0.9.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 20 2018 Björn Esser - 0.9.4-3 - Rebuilt for switch to libxcrypt * Thu Jan 04 2018 Vít Ondruch - 0.9.4-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.5 * Fri Nov 03 2017 Steve Traylen - 0.9.4-1 - Update to curb 0.9.4. * Thu Aug 03 2017 Fedora Release Engineering - 0.9.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.9.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Vít Ondruch - 0.9.3-1 - Update to curb 0.9.3. * Thu Feb 04 2016 Fedora Release Engineering - 0.8.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 07 2016 Vít Ondruch - 0.8.8-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3 * Thu Jun 18 2015 Fedora Release Engineering - 0.8.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 2 2015 Steve Traylen - 0.8.8-1 - Upstream 0.8.8 * Mon Mar 23 2015 Steve Traylen - 0.8.7-1 - Upstream 0.8.7 * Thu Jan 15 2015 Vít Ondruch - 0.8.6-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2 * Mon Aug 18 2014 Fedora Release Engineering - 0.8.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Aug 4 2014 Steve Traylen - 0.8.6-1 - Upstream 0.8.6, update to new ruby guidelines. * Tue Jun 17 2014 Vít Ondruch - 0.8.5-3 - Place extension into correct location. - Prevent dangling symlinks in -debuginfo. * Sun Jun 08 2014 Fedora Release Engineering - 0.8.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 14 2014 Steve Traylen - 0.8.5-1 - Update to 0.8.5, avoid minitest-5 for now. * Wed Apr 9 2014 Steve Traylen - 0.8.4-2 - Now really works on EPEL6. * Tue Mar 11 2014 Steve Traylen - 0.8.4-1 - Update to curb 0.8.4, fix to latest ruby guidelines. * Sun Aug 04 2013 Fedora Release Engineering - 0.8.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Mar 08 2013 Vít Ondruch - 0.8.3-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 0.8.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 20 2012 Vít Ondruch - 0.8.3-1 - Update to curb 0.8.3. * Sat Jul 21 2012 Fedora Release Engineering - 0.7.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Feb 01 2012 Vít Ondruch - 0.7.10-4 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.7.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Feb 25 2011 Shreyank Gupta - 0.7.10-2 - not excluding .require_paths * Fri Feb 25 2011 Shreyank Gupta - 0.7.10-1 - New upstream 0.7.10 * Wed Jul 21 2010 Shreyank Gupta - 0.7.7.1-4 - Remove unneeded .require_paths file * Tue Jul 20 2010 Shreyank Gupta - 0.7.7.1-3 - Remove unneeded .o and .so files from ext/ directory - No rake test for ppc64 * Mon Jul 19 2010 Shreyank Gupta - 0.7.7.1-2 - Install gem file under %%gemdir and then copy to %%buildroot - Moving .so to %%ruby_sitearch - BuildRequires: rubygem(rake) * Fri Jul 02 2010 Shreyank Gupta - 0.7.7.1-1 - Initial package