cbc6a20
%global gem_name typhoeus
f52c365
aed3091
Summary: Parallel HTTP library on top of libcurl multi
cbc6a20
Name: rubygem-%{gem_name}
aed3091
Version: 0.6.8
d0e1d25
Release: 2%{?dist}
Michal Fojtik 7d96ecb
Group: Development/Languages
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
aed3091
BuildRequires: rubygem(ethon) >= 0.7.0
aed3091
BuildRequires: rubygem(faraday)
22b047c
BuildRequires: rubygem(rack)
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
Michal Fojtik 7d96ecb
%package doc
Michal Fojtik 7d96ecb
Summary: Documentation for %{name}
Michal Fojtik 7d96ecb
Group: Documentation
Michal Fojtik 7d96ecb
Requires:%{name} = %{version}-%{release}
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%description doc
Michal Fojtik 7d96ecb
Documentation for %{name}
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%prep
Michal Fojtik 7d96ecb
%setup -q -c -T 
b44f6ae
%gem_install -n %{SOURCE0}
b44f6ae
Michal Fojtik 7d96ecb
%build
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%install
Michal Fojtik 7d96ecb
rm -rf %{buildroot}
cbc6a20
mkdir -p %{buildroot}%{gem_dir}
cbc6a20
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
f52c365
Michal Fojtik 7d96ecb
# remove all shebang, set permission to 0644 (mtasaka)
cbc6a20
for f in $(find %{buildroot}%{gem_instdir} -name \*.rb)
Michal Fojtik 7d96ecb
do
Michal Fojtik 7d96ecb
	sed -i -e '/^#!/d' $f
Michal Fojtik 7d96ecb
	chmod 0644 $f
Michal Fojtik 7d96ecb
done
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%check
cbc6a20
pushd .%{gem_instdir}
aed3091
# Don't use Bundler.
aed3091
sed -i -e '/require "bundler"/ s/^/#/' \
aed3091
  -e '/Bundler\.setup/ s/^/#/' spec/spec_helper.rb
aed3091
f52c365
rspec spec
Michal Fojtik 7d96ecb
popd
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%files
cbc6a20
%dir %{gem_instdir}
cbc6a20
%{gem_libdir}
aed3091
%exclude %{gem_instdir}/.*
cbc6a20
%doc %{gem_instdir}/LICENSE
22b047c
%doc %{gem_instdir}/README.md
cbc6a20
%exclude %{gem_cache}
cbc6a20
%{gem_spec}
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%files doc
aed3091
%doc %{gem_instdir}/CONTRIBUTING.md
22b047c
%doc %{gem_instdir}/CHANGELOG.md
cbc6a20
%{gem_instdir}/Gemfile
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
cbc6a20
%doc %{gem_docdir}
Michal Fojtik 7d96ecb
Michal Fojtik 7d96ecb
%changelog
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