From 07aed467ab66495080d17a53afd43809152d46b8 Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Mar 04 2019 14:25:20 +0000 Subject: Update to Typhoeus 1.3.1. --- diff --git a/.gitignore b/.gitignore index b9b7111..b5a6ed4 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /typhoeus-0.6.8.gem /typhoeus-0.7.2.gem /typhoeus-1.0.2.gem +/typhoeus-1.3.1.gem diff --git a/rubygem-typhoeus.spec b/rubygem-typhoeus.spec index b90f2f7..ebe8631 100644 --- a/rubygem-typhoeus.spec +++ b/rubygem-typhoeus.spec @@ -1,8 +1,8 @@ %global gem_name typhoeus Name: rubygem-%{gem_name} -Version: 1.0.2 -Release: 6%{?dist} +Version: 1.3.1 +Release: 1%{?dist} Summary: Parallel HTTP library on top of libcurl multi License: MIT URL: https://github.com/typhoeus/typhoeus @@ -10,9 +10,10 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby +BuildRequires: rubygem(dalli) BuildRequires: rubygem(ethon) >= 0.7.0 BuildRequires: rubygem(faraday) -BuildRequires: rubygem(rack) +BuildRequires: rubygem(redis) BuildRequires: rubygem(rspec) BuildRequires: rubygem(sinatra) BuildArch: noarch @@ -22,6 +23,7 @@ Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic. + %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} @@ -31,22 +33,23 @@ BuildArch: noarch Documentation for %{name}. %prep -%setup -q -c -T -%gem_install -n %{SOURCE0} +%setup -q -n %{gem_name}-%{version} %build +# Create the gem as gem install only works on a gem file +gem build ../%{gem_name}-%{version}.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}/ -# remove all shebang, set permission to 0644 (mtasaka) -for f in $(find %{buildroot}%{gem_instdir} -name \*.rb) -do - sed -i -e '/^#!/d' $f - chmod 0644 $f -done +# Drop shebang. +sed -i -e '/^#!/d' %{buildroot}%{gem_instdir}/spec/support/server.rb %check @@ -60,15 +63,16 @@ popd %files %dir %{gem_instdir} -%{gem_libdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE +%{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc -%doc %{gem_instdir}/CONTRIBUTING.md +%doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/CONTRIBUTING.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Guardfile @@ -77,9 +81,11 @@ popd %{gem_instdir}/perf %{gem_instdir}/spec %{gem_instdir}/typhoeus.gemspec -%doc %{gem_docdir} %changelog +* Fri Mar 01 2019 Vít Ondruch - 1.3.1-1 +- Update to Typhoeus 1.3.1. + * Sat Feb 02 2019 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 926a2a3..5d89ef7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c5cfed3f715bf8788209bdce9b240782 typhoeus-1.0.2.gem +SHA512 (typhoeus-1.3.1.gem) = f826cdb7e48577226b12fc2715123e13519148f67d036470e385f80f8f3112d1ad24bf580c2ed0d213242c9afc1bdf868084266d430858b2cf6de73e50a11422