From 30a7875570512df5232ec662bd666bc2b39c5d3a Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Jan 04 2018 08:54:47 +0000 Subject: Update to nio4r 2.2.0. --- diff --git a/.gitignore b/.gitignore index 9266ba1..bba4db0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /nio4r-1.2.1.gem /nio4r-2.0.0.gem /nio4r-2.1.0.gem +/nio4r-2.2.0.gem diff --git a/rubygem-nio4r.spec b/rubygem-nio4r.spec index 200f684..1290407 100644 --- a/rubygem-nio4r.spec +++ b/rubygem-nio4r.spec @@ -4,10 +4,9 @@ %global libev_version 4.24 Name: rubygem-%{gem_name} -Version: 2.1.0 -Release: 4%{?dist} +Version: 2.2.0 +Release: 1%{?dist} Summary: New IO for Ruby -Group: Development/Languages # The entire source code is MIT, bundled libev is BSD or GPLv2+ License: MIT and (BSD or GPLv2+) URL: https://github.com/socketry/nio4r @@ -16,6 +15,9 @@ BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel BuildRequires: rubygem(rspec) +# Compiler is required for build of gem binary extension. +# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires +BuildRequires: gcc # As bundled libev ev.c is modified from original one, # we have to use the bundled libev instead of separating it and @@ -34,7 +36,6 @@ servers. Inspired by the Java NIO API, but simplified for ease-of-use. %package doc Summary: Documentation for %{name} -Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch @@ -42,15 +43,11 @@ BuildArch: noarch Documentation for %{name}. %prep -gem unpack %{SOURCE0} - -%setup -q -D -T -n %{gem_name}-%{version} - -gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file -gem build %{gem_name}.gemspec +gem build ../%{gem_name}-%{version}.gemspec # Update %%optflags used in %%gem_install to avoid strict-aliasing warnings. # https://github.com/socketry/nio4r/pull/130 @@ -106,6 +103,7 @@ popd %{gem_extdir_mri} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE.txt +%exclude %{gem_instdir}/appveyor.yml %{gem_libdir} %exclude %{gem_cache} %{gem_spec} @@ -124,6 +122,9 @@ popd %{gem_instdir}/spec %changelog +* Thu Jan 04 2018 Vít Ondruch - 2.2.0-1 +- Update to nio4r 2.2.0. + * Thu Aug 03 2017 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index 28d7366..ca74b02 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nio4r-2.1.0.gem) = 40fdc0453fb5c6ea275cdacf698b834d2ea198448cdac33dd6353780097cb4957c53c0bb1576e7d99d9362f1def596412cb3c78e0600d38664a8e8ff37018d65 +SHA512 (nio4r-2.2.0.gem) = 9a9acaede13da07894edb7012f593bd2132296f2130cc2529cfbbad421aaa1e7b144403c9812e6ac8429cf6bb9e8c7e746acd86f2061dedf4cc14fb10fdaa7fe