|
|
|
@ -1,47 +1,26 @@
|
|
|
|
|
%if 0%{?el5}%{?el6}
|
|
|
|
|
%{!?ruby_vendorlibdir: %global ruby_vendorlibdir /usr/lib/ruby/site_ruby/1.8}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
#rspec seems broken(?) in epel5 and6, todo.
|
|
|
|
|
#rubygem(mocha) not available yet on el7.
|
|
|
|
|
%if 0%{?el5}%{?el6}%{?el7}
|
|
|
|
|
%global with_checks 0
|
|
|
|
|
%else
|
|
|
|
|
%global with_checks 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: hiera
|
|
|
|
|
Version: 3.0.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 3.3.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A simple hierarchical database supporting plugin data sources
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: http://projects.puppetlabs.com/projects/%{name}/
|
|
|
|
|
Source0: http://downloads.puppetlabs.com/hiera/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
# Use /etc/puppet rather than /etc/puppetlabs/puppet
|
|
|
|
|
Patch0: fix-puppetlab-paths.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%if 0%{?with_checks}
|
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
|
BuildRequires: rubygem(mocha)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
|
%if 0%{?el6}
|
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fc19} || 0%{?fc20} || 0%{?el6} || 0%{?el7}
|
|
|
|
|
Provides: rubygem(hiera) = %{version}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A simple hierarchical database supporting plugin data sources.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Nothing to build
|
|
|
|
@ -49,18 +28,16 @@ A simple hierarchical database supporting plugin data sources.
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{ruby_vendorlibdir}
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/puppet
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
cp -pr lib/hiera %{buildroot}%{ruby_vendorlibdir}
|
|
|
|
|
cp -pr lib/hiera.rb %{buildroot}%{ruby_vendorlibdir}
|
|
|
|
|
install -p -m0755 bin/hiera %{buildroot}%{_bindir}
|
|
|
|
|
install -p -m0644 ext/hiera.yaml %{buildroot}%{_sysconfdir}
|
|
|
|
|
install -p -m0644 ext/hiera.yaml %{buildroot}%{_sysconfdir}/puppet
|
|
|
|
|
mkdir -p %{buildroot}%{_var}/lib/hiera
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if 0%{?with_checks}
|
|
|
|
|
ruby spec/spec_helper.rb
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
@ -71,11 +48,17 @@ rm -rf %{buildroot}
|
|
|
|
|
%{ruby_vendorlibdir}/hiera.rb
|
|
|
|
|
%{ruby_vendorlibdir}/hiera
|
|
|
|
|
%dir %{_var}/lib/hiera
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/hiera.yaml
|
|
|
|
|
%dir %{_sysconfdir}/puppet
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/puppet/hiera.yaml
|
|
|
|
|
%doc COPYING README.md LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jun 1 2017 Steve Traylen <releng@fedoraproject.org> - 3.3.1-1
|
|
|
|
|
- Update to 3.3.1.
|
|
|
|
|
- Relocate hiera.yaml to /etc/puppet/hiera.yaml
|
|
|
|
|
- Remove items for old OSes.
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|