|
|
@ -8,13 +8,22 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.2.5
|
|
|
|
Version: 1.3.0
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: HOCON Config Library
|
|
|
|
Summary: HOCON Config Library
|
|
|
|
License: ASL 2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/puppetlabs/ruby-hocon
|
|
|
|
URL: https://github.com/puppetlabs/ruby-hocon
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
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: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby >= 1.9.0
|
|
|
|
BuildRequires: ruby >= 1.9.0
|
|
|
@ -44,6 +53,9 @@ gem unpack %{SOURCE0}
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
sed -i 's/\/usr\/bin\/env ruby/\/usr\/bin\/ruby/' bin/hocon
|
|
|
|
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
|
|
|
|
%build
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
@ -81,6 +93,9 @@ rspec spec/
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Nov 8 2019 Steve Traylen <steve.traylen@cern.ch> - 1.3.0-1
|
|
|
|
|
|
|
|
- Update to 1.3.0
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-5
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|