# Generated from httpi-2.2.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name httpi Name: rubygem-%{gem_name} Version: 2.2.4 Release: 1%{?dist} Summary: Common interface for Ruby's HTTP libraries Group: Development/Languages License: MIT URL: http://github.com/savonrb/savon Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem %if 0%{?el6} Requires: ruby(abi) = 1.8 %endif %if 0%{?fc19} || 0%{?fc20} || 0%{?el7} Requires: ruby(release) Requires: ruby(rubygems) Requires: rubygem(rack) %endif BuildRequires: rubygems-devel # BuildRequires: rubygem(rubyntlm) => 0.3.2 # BuildRequires: rubygem(rubyntlm) < 0.4 # BuildRequires: rubygem(rspec) => 2.14 # BuildRequires: rubygem(rspec) < 3 # BuildRequires: rubygem(mocha) => 0.13 # BuildRequires: rubygem(mocha) < 1 # BuildRequires: rubygem(puma) => 2.3.2 # BuildRequires: rubygem(puma) < 2.4 BuildArch: noarch %if 0%{?fc19} || 0%{?fc20} || 0%{?el6} || 0%{?el7} Provides: rubygem(%{gem_name}) = %{version} %endif %description Common interface for Ruby's HTTP libraries. %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 # Create the gem as gem install only works on a gem file gem build %{gem_name}.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}/ # Run the test suite %check pushd .%{gem_instdir} popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.rspec %exclude %{gem_instdir}/.travis.yml %exclude %{gem_instdir}/Gemfile %exclude %{gem_instdir}/Rakefile %exclude %{gem_instdir}/%{gem_name}.gemspec %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %doc %{gem_instdir}/LICENSE %files doc %doc %{gem_docdir} %doc %{gem_instdir}/spec %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.md %changelog * Fri Jul 18 2014 Steve Traylen - 2.2.4-1 - Initial package