# Generated from rest-client-1.3.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name rest-client # This enables to run full test suite, where network connection is available. # However, it must be disabled for Koji build. %bcond_with network %bcond_without tests Name: rubygem-%{gem_name} Version: 2.1.0 Release: 2%{?dist} Summary: Simple HTTP and REST client for Ruby License: MIT URL: https://github.com/rest-client/rest-client Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby %if %{with tests} BuildRequires: rubygem(http-cookie) BuildRequires: rubygem(mime-types) BuildRequires: rubygem(mime-types-data) BuildRequires: rubygem(netrc) BuildRequires: rubygem(rspec) BuildRequires: rubygem(webmock) BuildRequires: rubygem(http-accept) BuildRequires: rubygem(safe_yaml) BuildRequires: rubygem(hashdiff) BuildRequires: rubygem(domain_name) %endif BuildArch: noarch %description A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete. %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} # Allow newer http-accept we have in Fedora %gemspec_remove_dep -g http-accept %gemspec_add_dep -g http-accept '< 3.0' %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ %if %{with tests} %check pushd .%{gem_instdir} %if %{without network} mv spec/integration/httpbin_spec.rb{,.disable} mv spec/integration/request_spec.rb{,.disable} %endif rspec spec popd %endif %files %license %{gem_instdir}/LICENSE %dir %{gem_instdir} %{_bindir}/restclient %exclude %{gem_instdir}/.* %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/AUTHORS %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %doc %{gem_instdir}/history.md %{gem_instdir}/rest-client.gemspec %{gem_instdir}/rest-client.windows.gemspec %{gem_instdir}/spec %changelog * Fri Nov 15 2019 Pavel Valena - 2.1.0-2 - Allow newer http-accept gem. * Fri Nov 15 2019 Pavel Valena - 2.1.0-1 - Update to rest-client 2.1.0. * Fri Jul 26 2019 Fedora Release Engineering - 2.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Feb 07 2017 Vít Ondruch - 2.0.0-2 - Fix compatibility with Ruby OpenSSL 2.x+. * Thu Jul 14 2016 Jun Aruga - 2.0.0-1 - Update to rest-client 2.0.0. * Thu Feb 04 2016 Fedora Release Engineering - 1.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Aug 19 2015 Vít Ondruch - 1.8.0-1 - Update to rest-client 1.8.0. * Thu Jun 18 2015 Fedora Release Engineering - 1.6.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.6.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.6.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Mar 11 2013 Vít Ondruch - 1.6.7-2 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Sat Sep 22 2012 Tim Bielawa - 1.6.7-1 - Update to 1.6.7 * Sat Jul 21 2012 Fedora Release Engineering - 1.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Feb 01 2012 Vít Ondruch - 1.6.1-4 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 1.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Sep 08 2010 Michal Fojtik - 1.6.1-1 - New version release * Wed Mar 03 2010 Michal Fojtik - 1.4.0-6 - New version release * Wed Feb 17 2010 Michal Fojtik - 1.3.1-5 - Added %%dir %%{geminstdir} into spec file * Wed Feb 17 2010 Michal Fojtik - 1.3.1-4 - Marked README.rdoc, history.md and spec/ as %%doc * Tue Feb 16 2010 Michal Fojtik - 1.3.1-3 - Fixed licence (MIT) - Fixed duplicated files in spec - Replaced %%define with %%global * Tue Feb 16 2010 Michal Fojtik - 1.3.1-2 - Fixed spec filename - Added Ruby dependency * Tue Feb 16 2010 Michal Fojtik - 1.3.1-1 - Initial package