ruby-hiera/ruby-hiera.spec

51 lines
1.4 KiB
RPMSpec
Raw Normal View History

Name: ruby-hiera
Version: 3.4.3
Release: 1mamba
Summary: A pluggable data store for hierarcical data
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://projects.puppetlabs.com/projects/hiera/
Source: https://rubygems.org/downloads/hiera-%{version}.gem
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires: ruby >= 2.5.1
BuildRequires: ruby >= 2.5.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A pluggable data store for hierarcical data.
%prep
%setup -q -c %{name}-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "%{buildroot}$gemdir" \
--no-ri --no-rdoc -n "%{buildroot}/usr/bin" "%{SOURCE0}"
rm -rf %{buildroot}${gemdir}/cache
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/hiera
%{_libdir}/ruby/gems/*/specifications/hiera-*.gemspec
%dir %{_libdir}/ruby/gems/*/gems/hiera-%{version}
%{_libdir}/ruby/gems/*/gems/hiera-%{version}/*
%changelog
* Tue Jul 17 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.3-1mamba
- update to 3.4.3
* Wed Dec 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-1mamba
- package created using the webbuild interface