#2 Update to rspec-its 1.3.0
Merged 2 months ago by pvalena. Opened 2 months ago by pvalena.
rpms/ pvalena/rubygem-rspec-its rebase  into  master

file modified
+1 -2

@@ -1,2 +1,1 @@ 

- /rspec-its-1.1.0.gem

- /rspec-its-1.2.0.gem

+ /rspec-its-*.gem

file modified
+5 -18

@@ -1,32 +1,19 @@ 

  %global gem_name rspec-its

  

  Name: rubygem-%{gem_name}

- Version: 1.2.0

- Release: 4%{?dist}

+ Version: 1.3.0

+ Release: 1%{?dist}

  Summary: Provides "its" method formerly part of rspec-core

  License: MIT

  URL: https://github.com/rspec/rspec-its

  Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

  

- # Fix Ruby 2.4 compatibility

- # https://github.com/rspec/rspec-its/pull/45

- Patch0: rubygem-rspec-its-1.2.0-Fix-Ruby-2.4-compatibility.patch

- 

- %if 0%{?el7}

- Requires: ruby(release)

- Requires: ruby(rubygems)

- Requires: rubygem(rspec-core) >= 2.99.0.beta1

- Requires: rubygem(rspec-expectations) >= 2.99.0.beta1

- %endif

  BuildRequires: ruby(release)

  BuildRequires: rubygems-devel

  BuildRequires: rubygem(rspec-core)

  BuildRequires: rubygem(rspec-expectations)

  BuildRequires: rubygem(aruba)

  BuildArch: noarch

- %if 0%{?el7}

- Provides: rubygem(%{gem_name}) = %{version}

- %endif

  

  %description

  RSpec extension gem for attribute matching.

@@ -53,7 +40,6 @@ 

  

  %check

  pushd .%{gem_instdir}

- cat %{PATCH0} | patch -p1 -F 0

  rspec -Ilib spec

  export RUBYOPT="-I${PWD}/lib"

  cucumber

@@ -61,7 +47,6 @@ 

  

  

  %files

- %{!?_licensedir:%global license %%doc}

  %dir %{gem_instdir}

  %license %{gem_instdir}/LICENSE.txt

  %{gem_libdir}

@@ -72,7 +57,6 @@ 

  %files doc

  %doc %{gem_docdir}

  %doc %{gem_instdir}/Changelog.md

- %{gem_instdir}/cucumber.yml

  %{gem_instdir}/features

  %{gem_instdir}/spec

  %{gem_instdir}/Gemfile

@@ -82,6 +66,9 @@ 

  %{gem_instdir}/%{gem_name}.gemspec

  

  %changelog

+ * Mon Jul 15 2019 Pavel Valena <pvalena@redhat.com> - 1.3.0-1

+ - Update to rspec-its 1.3.0.

+ 

  * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

  

file modified
+1 -1

@@ -1,1 +1,1 @@ 

- SHA512 (rspec-its-1.2.0.gem) = 6b390f92654f8e6482f0da30d4e721ee127f628eb305268e474d4c9fb14fca1d0fb8922cabc9a8c1372976b5a52349c5a5a774e3026f32d8050c5aea2bc9ccae

+ SHA512 (rspec-its-1.3.0.gem) = beff75fc84f9879095f02f4515bfd749dded877b8b4d5186423ddd78c6c16d6c5e810ebac80f3500cc7b1d23db119c72780c32888385d21d20672a26499ae94a

also ehance .spec and .gitignore files.


To have latest rspec-its in Fedora.

Scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=36279146

Copr build(without cucumber):
https://koji.fedoraproject.org/koji/taskinfo?taskID=36279146

Checks:

  • Tests: ok
  • Dependents packages: ok
  • Vagrant builds: ok
  • Smoke test: ok
  • rpmlint: ok

It looks good to me.
I like this modification to remove the RHEL 6, 7 specific parts.
Because I think those parts are managed in RHEL's spec file to simplify the Fedora's spec file.

Pull-Request has been merged by pvalena

2 months ago