|
|
f6d183 |
# Generated from hocon-0.9.3.gem by gem2rpm -*- rpm-spec -*-
|
|
|
f6d183 |
%global gem_name hocon
|
|
|
f6d183 |
|
|
|
f6d183 |
%if 0%{?el7}
|
|
|
f6d183 |
%global enable_checks 0
|
|
|
f6d183 |
%else
|
|
|
f6d183 |
%global enable_checks 1
|
|
|
f6d183 |
%endif
|
|
|
f6d183 |
|
|
|
f6d183 |
Name: rubygem-%{gem_name}
|
|
|
f6d183 |
Version: 1.3.1
|
|
|
f6d183 |
Release: 2%{?dist}
|
|
|
f6d183 |
Summary: HOCON Config Library
|
|
|
f6d183 |
License: ASL 2.0
|
|
|
f6d183 |
URL: https://github.com/puppetlabs/ruby-hocon
|
|
|
f6d183 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
f6d183 |
|
|
|
f6d183 |
# SOURCE1 contains the upstream tag of the project from github
|
|
|
f6d183 |
# in particular this includes the spec directory which was not
|
|
|
f6d183 |
# included in the gemfile.
|
|
|
f6d183 |
# https://github.com/puppetlabs/ruby-hocon/issues/65
|
|
|
f6d183 |
# was originally resolved.
|
|
|
f6d183 |
# However the rspec files were then removed again for a bizare reason.
|
|
|
f6d183 |
# https://tickets.puppetlabs.com/browse/PA-2942
|
|
|
f6d183 |
Source1: https://github.com/puppetlabs/ruby-hocon/archive/%{version}/ruby-hocon-%{version}.tar.gz
|
|
|
f6d183 |
|
|
|
f6d183 |
BuildRequires: ruby(release)
|
|
|
f6d183 |
BuildRequires: rubygems-devel
|
|
|
f6d183 |
BuildRequires: ruby >= 1.9.0
|
|
|
f6d183 |
%if 0%{?enable_checks}
|
|
|
f6d183 |
BuildRequires: rubygem(rspec)
|
|
|
f6d183 |
%endif
|
|
|
f6d183 |
BuildArch: noarch
|
|
|
f6d183 |
|
|
|
f6d183 |
%description
|
|
|
f6d183 |
A port of the Java Typesafe Config
|
|
|
f6d183 |
library to Ruby.
|
|
|
f6d183 |
https://github.com/typesafehub/config
|
|
|
f6d183 |
|
|
|
f6d183 |
%package doc
|
|
|
f6d183 |
Summary: Documentation for %{name}
|
|
|
f6d183 |
Requires: %{name} = %{version}-%{release}
|
|
|
f6d183 |
BuildArch: noarch
|
|
|
f6d183 |
|
|
|
f6d183 |
%description doc
|
|
|
f6d183 |
Documentation for %{name}.
|
|
|
f6d183 |
|
|
|
f6d183 |
%prep
|
|
|
f6d183 |
gem unpack %{SOURCE0}
|
|
|
f6d183 |
|
|
|
f6d183 |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
f6d183 |
|
|
|
f6d183 |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
f6d183 |
sed -i 's/\/usr\/bin\/env ruby/\/usr\/bin\/ruby/' bin/hocon
|
|
|
f6d183 |
|
|
|
f6d183 |
# unpack only the spec files from SOURCE1.
|
|
|
f6d183 |
tar zxf %{SOURCE1} ruby-hocon-%{version}/spec --strip-components 1
|
|
|
f6d183 |
|
|
|
f6d183 |
%build
|
|
|
f6d183 |
# Create the gem as gem install only works on a gem file
|
|
|
f6d183 |
gem build %{gem_name}.gemspec
|
|
|
f6d183 |
|
|
|
f6d183 |
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
|
f6d183 |
# by default, so that we can move it into the buildroot in %%install
|
|
|
f6d183 |
%gem_install
|
|
|
f6d183 |
|
|
|
f6d183 |
%install
|
|
|
f6d183 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
f6d183 |
cp -a .%{gem_dir}/* \
|
|
|
f6d183 |
%{buildroot}%{gem_dir}/
|
|
|
f6d183 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
f6d183 |
mv %{buildroot}%{gem_instdir}/bin/hocon %{buildroot}/%{_bindir}/hocon
|
|
|
f6d183 |
|
|
|
f6d183 |
|
|
|
f6d183 |
%check
|
|
|
f6d183 |
%if 0%{?enable_checks}
|
|
|
f6d183 |
rspec spec/
|
|
|
f6d183 |
%endif
|
|
|
f6d183 |
|
|
|
f6d183 |
%files
|
|
|
f6d183 |
%dir %{gem_instdir}
|
|
|
f6d183 |
%license %{gem_instdir}/LICENSE
|
|
|
f6d183 |
%{gem_libdir}
|
|
|
f6d183 |
%exclude %{gem_cache}
|
|
|
f6d183 |
%exclude %{gem_instdir}/spec
|
|
|
f6d183 |
%{gem_spec}
|
|
|
f6d183 |
%{_bindir}/hocon
|
|
|
f6d183 |
|
|
|
f6d183 |
%files doc
|
|
|
f6d183 |
%doc %{gem_docdir}
|
|
|
f6d183 |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
f6d183 |
%doc %{gem_instdir}/HISTORY.md
|
|
|
f6d183 |
%doc %{gem_instdir}/README.md
|
|
|
f6d183 |
|
|
|
f6d183 |
%changelog
|
|
|
f6d183 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Fri Aug 21 2020 Steve Traylen <steve.traylen@cern.ch> - 1.3.1-1
|
|
|
f6d183 |
- Update to 1.3.1
|
|
|
f6d183 |
|
|
|
f6d183 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Fri Nov 8 2019 Steve Traylen <steve.traylen@cern.ch> - 1.3.0-1
|
|
|
f6d183 |
- Update to 1.3.0
|
|
|
f6d183 |
|
|
|
f6d183 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-5
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-4
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-3
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-2
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Fri Nov 03 2017 Steve Traylen <steve.traylen@cern.ch> - 1.2.5-1
|
|
|
f6d183 |
- Update to 1.2.5
|
|
|
f6d183 |
|
|
|
f6d183 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Thu Mar 23 2017 Steve Traylen <steve.traylen@cern.ch> - 1.2.4-1
|
|
|
f6d183 |
- Update to 1.2.4
|
|
|
f6d183 |
|
|
|
f6d183 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-5
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-4
|
|
|
f6d183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
f6d183 |
|
|
|
f6d183 |
* Mon Dec 14 2015 Steve Traylen <steve.traylen@cern.ch> - 0.9.3-3
|
|
|
f6d183 |
- Remove references to fc21.
|
|
|
f6d183 |
|
|
|
f6d183 |
* Thu Dec 03 2015 Steve Traylen <steve.traylen@cern.ch> - 0.9.3-2
|
|
|
f6d183 |
- Use spec tests from upstream source.
|
|
|
f6d183 |
|
|
|
f6d183 |
* Tue Nov 03 2015 Steve Traylen <steve.traylen@cern.ch> - 0.9.3-1
|
|
|
f6d183 |
- Initial package
|