cbc6a20
%global gem_name typhoeus
f52c365
cbc6a20
Name: rubygem-%{gem_name}
c20d401
Version: 1.4.0
7426715
Release: 2%{?dist}
b8c6c4f
Summary: Parallel HTTP library on top of libcurl multi
Michal Fojtik 7d96ecb
License: MIT
aed3091
URL: https://github.com/typhoeus/typhoeus
aed3091
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
b44f6ae
BuildRequires: ruby(release)
cbc6a20
BuildRequires: rubygems-devel
b8c6c4f
BuildRequires: ruby
07aed46
BuildRequires: rubygem(dalli)
aed3091
BuildRequires: rubygem(ethon) >= 0.7.0
aed3091
BuildRequires: rubygem(faraday)
07aed46
BuildRequires: rubygem(redis)
b44f6ae
BuildRequires: rubygem(rspec)
f52c365
BuildRequires: rubygem(sinatra)
22b047c
BuildArch: noarch
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%description
Michal Fojtik 7d96ecb
Like a modern code version of the mythical beast with 100 serpent heads,
Michal Fojtik 7d96ecb
Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling
Michal Fojtik 7d96ecb
logic.
Michal Fojtik 7d96ecb
07aed46
Michal Fojtik 7d96ecb
%package doc
Michal Fojtik 7d96ecb
Summary: Documentation for %{name}
b8c6c4f
Requires: %{name} = %{version}-%{release}
b8c6c4f
BuildArch: noarch
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%description doc
b8c6c4f
Documentation for %{name}.
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%prep
07aed46
%setup -q -n %{gem_name}-%{version}
b44f6ae
Michal Fojtik 7d96ecb
%build
07aed46
# Create the gem as gem install only works on a gem file
07aed46
gem build ../%{gem_name}-%{version}.gemspec
07aed46
07aed46
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
07aed46
# by default, so that we can move it into the buildroot in %%install
07aed46
%gem_install
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%install
cbc6a20
mkdir -p %{buildroot}%{gem_dir}
b8c6c4f
cp -a .%{gem_dir}/* \
b8c6c4f
        %{buildroot}%{gem_dir}/
f52c365
07aed46
# Drop shebang.
07aed46
sed -i -e '/^#!/d' %{buildroot}%{gem_instdir}/spec/support/server.rb
Michal Fojtik 7d96ecb
b8c6c4f
Michal Fojtik 7d96ecb
%check
cbc6a20
pushd .%{gem_instdir}
aed3091
# Don't use Bundler.
c20d401
sed -i -e '/[bB]undler/ s/^/#/' spec/spec_helper.rb
aed3091
f52c365
rspec spec
Michal Fojtik 7d96ecb
popd
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%files
cbc6a20
%dir %{gem_instdir}
aed3091
%exclude %{gem_instdir}/.*
b8c6c4f
%license %{gem_instdir}/LICENSE
07aed46
%{gem_libdir}
cbc6a20
%exclude %{gem_cache}
cbc6a20
%{gem_spec}
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%files doc
07aed46
%doc %{gem_docdir}
22b047c
%doc %{gem_instdir}/CHANGELOG.md
07aed46
%doc %{gem_instdir}/CONTRIBUTING.md
cbc6a20
%{gem_instdir}/Gemfile
fc86b71
%doc %{gem_instdir}/README.md
aed3091
%{gem_instdir}/Guardfile
aed3091
%{gem_instdir}/Rakefile
aed3091
%doc %{gem_instdir}/UPGRADE.md
aed3091
%{gem_instdir}/perf
aed3091
%{gem_instdir}/spec
aed3091
%{gem_instdir}/typhoeus.gemspec
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%changelog
7426715
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
7426715
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7426715
c20d401
* Fri Jul 24 2020 Vít Ondruch <vondruch@redhat.com> - 1.4.0-1
c20d401
- Update to Typhoeus 1.4.0.
c20d401
  Resolves: rhbz#1833320
c20d401
b86b444
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
b86b444
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b86b444
39d3d7d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
39d3d7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
39d3d7d
07aed46
* Fri Mar 01 2019 Vít Ondruch <vondruch@redhat.com> - 1.3.1-1
07aed46
- Update to Typhoeus 1.3.1.
07aed46
a0760eb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
a0760eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a0760eb
6c8c853
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
6c8c853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6c8c853
82204a7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-4
82204a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
82204a7
fe265d6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
fe265d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fe265d6
0c876ac
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
0c876ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0c876ac
fc86b71
* Tue May 17 2016 Jun Aruga <jaruga@redhat.com> - 1.0.2-1
fc86b71
- Update to Typhoeus 1.0.2.
fc86b71
5555ce0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
5555ce0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5555ce0
b8c6c4f
* Thu Jul 09 2015 Vít Ondruch <vondruch@redhat.com> - 0.7.2-1
b8c6c4f
- Update to Typhoeus 0.7.2.
b8c6c4f
bd6549b
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-3
bd6549b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bd6549b
d0e1d25
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-2
d0e1d25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d0e1d25
aed3091
* Thu May 22 2014 Vít Ondruch <vondruch@redhat.com> - 0.6.8-1
aed3091
- Update to Typhoeus 0.6.8.
aed3091
4ef6530
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
4ef6530
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4ef6530
22b047c
* Fri Mar 15 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.2-1
22b047c
- Updated to 0.6.2 to satisfy new Webmock.
22b047c
b44f6ae
* Fri Mar 08 2013 Vít Ondruch <vondruch@redhat.com> - 0.3.3-6
b44f6ae
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
b44f6ae
d009c72
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-5
d009c72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d009c72
5ee087e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-4
5ee087e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5ee087e
cbc6a20
* Wed Feb 01 2012 Vít Ondruch <vondruch@redhat.com> - 0.3.3-3
cbc6a20
- Rebuilt for Ruby 1.9.3.
cbc6a20
19144f3
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
19144f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
19144f3
f52c365
* Mon Nov 28 2011 Vít Ondruch <vondruch@redhat.com> - 0.3.3-1
f52c365
- Updated to typhoeus 0.3.3.
f52c365
b375f01
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
b375f01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b375f01
Michal Fojtik e9cad8f
* Mon Jan 10 2011 Michal Fojtik <mfojtik@redhat.com> - 0.2.0-1
Michal Fojtik e9cad8f
- Version bump
Michal Fojtik e9cad8f
Michal Fojtik 7d96ecb
* Thu Oct 14 2010 Michal Fojtik <mfojtik@redhat.com> - 0.1.31-3
Michal Fojtik 7d96ecb
- Preserved failing test files (thx. to mtasaka)
Michal Fojtik 7d96ecb
- Fixed macros usage
Michal Fojtik 7d96ecb
- Replaced path with macro
Michal Fojtik 7d96ecb
- Removed libcurl from requires
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
* Wed Oct 13 2010 Michal Fojtik <mfojtik@redhat.com> - 0.1.31-2
Michal Fojtik 7d96ecb
- Fixed License to MIT
Michal Fojtik 7d96ecb
- Fixed libcurl BuildRequire
Michal Fojtik 7d96ecb
- Gem now recompiles with correct GCC flags
Michal Fojtik 7d96ecb
- Directory issues should be fixed
Michal Fojtik 7d96ecb
- Removed -devel subpackage
Michal Fojtik 7d96ecb
- Added tests
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
* Wed Oct 06 2010 Michal Fojtik <mfojtik@redhat.com> - 0.1.31-1
Michal Fojtik 7d96ecb
- Initial package