diff --git a/.gitignore b/.gitignore index 6580ff0..5161318 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /rubygem-hocon-7defef5.tar.gz /hocon-1.2.4.gem /hocon-1.2.5.gem +/hocon-1.3.0.gem +/ruby-hocon-1.3.0.tar.gz diff --git a/rubygem-hocon.spec b/rubygem-hocon.spec index ca7a927..582577f 100644 --- a/rubygem-hocon.spec +++ b/rubygem-hocon.spec @@ -8,13 +8,22 @@ %endif Name: rubygem-%{gem_name} -Version: 1.2.5 -Release: 5%{?dist} +Version: 1.3.0 +Release: 1%{?dist} Summary: HOCON Config Library License: ASL 2.0 URL: https://github.com/puppetlabs/ruby-hocon Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# SOURCE1 contains the upstream tag of the project from github +# in particular this includes the spec directory which was not +# included in the gemfile. +# https://github.com/puppetlabs/ruby-hocon/issues/65 +# was originally resolved. +# However the rspec files were then removed again for a bizare reason. +# https://tickets.puppetlabs.com/browse/PA-2942 +Source1: https://github.com/puppetlabs/ruby-hocon/archive/%{version}/ruby-hocon-%{version}.tar.gz + BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.0 @@ -44,6 +53,9 @@ gem unpack %{SOURCE0} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec sed -i 's/\/usr\/bin\/env ruby/\/usr\/bin\/ruby/' bin/hocon +# unpack only the spec files from SOURCE1. +tar zxf %{SOURCE1} ruby-hocon-%{version}/spec --strip-components 1 + %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.gemspec @@ -81,6 +93,9 @@ rspec spec/ %doc %{gem_instdir}/README.md %changelog +* Fri Nov 8 2019 Steve Traylen - 1.3.0-1 +- Update to 1.3.0 + * Fri Jul 26 2019 Fedora Release Engineering - 1.2.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index a9d943c..e08055f 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (hocon-1.2.5.gem) = 7d2d86c28edd6ed6dd99358558093cd224b9922bcbcdd2e95e23134ef0e9a2bae6129e7273435032850b672094e77f8f5b6d8cfeec03762b39ed6b63fc5fb5dd +SHA512 (ruby-hocon-1.3.0.tar.gz) = 67a69b516197b4a0e64c275fe4b930a3b1128ef1949c47263ba9a20bd8397152a2a5dce0c64ce54dbcf7bd3c81d77aa2fb450e12f5aa7bacb0c85e61083904f6 +SHA512 (hocon-1.3.0.gem) = bff9527e00f12064a6c10c5fb424e8340b31bd171920f9c940ee03f9b29de50a4e6451372769485728ec83a2bf6dc9adf20a92594d7a19ab584d3a25fc14633d