# Generated from httparty-0.6.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name httparty # rspec >= 3 required %if 0%{?rhel} && 0%{?rhel} <= 7 %global use_tests 0 %else %global use_tests 1 %endif Name: rubygem-%{gem_name} Version: 0.15.6 Release: 1%{?dist} Summary: Makes http fun! Also, makes consuming restful web services dead easy Group: Development/Languages License: MIT URL: http://jnunemaker.github.com/httparty Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel %if 0%{?use_tests} BuildRequires: ruby >= 2.0.0 BuildRequires: rubygem(multi_xml) BuildRequires: rubygem(rspec) BuildRequires: rubygem(webmock) %endif %if 0%{?rhel} && 0%{?rhel} <= 7 Requires: ruby(release) Requires: ruby(rubygems) Requires: rubygem(multi_xml) >= 0.5.2 Provides: rubygem(%{gem_name}) = %{version} %endif BuildArch: noarch %description Makes http fun! Also, makes consuming restful web services dead easy. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build gem build %{gem_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check %if 0%{?use_tests} pushd .%{gem_instdir} # We are not interested in code coverage. sed -i '/[sS]imple[cC]ov/ s/^/#/' spec/spec_helper.rb # "cgi" is required for Ruby 2.4. # https://bugs.ruby-lang.org/issues/13178 rspec -rcgi spec popd %endif %files %dir %{gem_instdir} %{_bindir}/httparty %exclude %{gem_instdir}/.* %license %{gem_instdir}/MIT-LICENSE %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CONTRIBUTING.md %{gem_instdir}/Gemfile %{gem_instdir}/Guardfile %doc %{gem_instdir}/Changelog.md %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/cucumber.yml %doc %{gem_instdir}/docs %{gem_instdir}/examples %{gem_instdir}/features %{gem_instdir}/httparty.gemspec %{gem_instdir}/script %{gem_instdir}/spec %{gem_instdir}/website %changelog * Mon Jul 31 2017 František Dvořák - 0.15.6-1 - Update to 0.15.6 (#1473872) - EPEL 7 support * Thu Jul 27 2017 Fedora Release Engineering - 0.15.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jul 20 2017 František Dvořák - 0.15.5-1 - Update to 0.15.5 (#1450238) - Packaging updates according to gem2rpm template * Sat Feb 11 2017 Fedora Release Engineering - 0.14.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Vít Ondruch - 0.14.0-2 - Fix Ruby 2.4 compatibility. * Tue Oct 18 2016 Vít Ondruch - 0.14.0-1 - Update to HTTParty 0.14.0. * Thu Feb 04 2016 Fedora Release Engineering - 0.13.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.13.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jul 10 2014 Vít Ondruch - 0.13.1-1 - Update to httparty 0.13.1. * Sun Jun 08 2014 Fedora Release Engineering - 0.10.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 14 2013 Bohuslav Kabrda - 0.10.2-1 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 - Updated to Httparty 0.10.2. * Thu Feb 14 2013 Fedora Release Engineering - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Mar 07 2012 Bohuslav Kabrda - 0.8.1-1 - Rebuilt for Ruby 1.9.3 - Update to version 0.8.1 * Sat Jan 14 2012 Fedora Release Engineering - 0.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Mar 01 2011 - 0.7.4-1 - New version upstream * Wed Feb 09 2011 Fedora Release Engineering - 0.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Sep 07 2010 Michael Stahnke - 0.6.1-2 - Review updates - Changed to strict version of rubygem(crack) for Requires * Sat Aug 07 2010 Michael Stahnke - 0.6.1-1 - Initial package