# Generated from curb-0.7.7.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name curb Summary: Ruby libcurl bindings Name: rubygem-%{gem_name} Version: 0.8.3 Release: 3%{?dist} Group: Development/Languages License: Ruby URL: http://curb.rubyforge.org/ Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem Requires: ruby(release) Requires: ruby(rubygems) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(minitest) BuildRequires: ruby-devel BuildRequires: libcurl-devel Provides: rubygem(%{gem_name}) = %{version} %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} %description doc Documentation for %{name} %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/ %prep %setup -q -c -T %build %gem_install -n %{SOURCE0} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{gem_extdir_mri}/lib mv %{buildroot}%{gem_libdir}/curb_core.so %{buildroot}%{gem_extdir_mri}/lib/ %check pushd .%{gem_instdir} # Disable due to Curl::Err::HostResolutionError, which is cause probably by # missing network access on Koji. sed -i '901,903 s/^/#/' tests/tc_curl_easy.rb testrb tests/tc_*.rb popd %files %dir %{gem_instdir} %doc %{gem_instdir}/LICENSE %doc %{gem_instdir}/README %exclude %{gem_instdir}/ext/ %{gem_extdir_mri}/ %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %{gem_docdir} %{gem_instdir}/tests %{gem_instdir}/Rakefile %{gem_instdir}/doc.rb %changelog * 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