ruby-facter/ruby-facter.spec

54 lines
1.6 KiB
RPMSpec

Name: ruby-facter
Version: 4.0.51
Release: 1mamba
Summary: A library for collecting facts about your system
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://puppetlabs.com/
Source: https://rubygems.org/downloads/facter-%{version}.gem
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: ruby-devel >= 2.5.1
Requires: ruby >= 2.5.1
%description
A library for collecting facts about your system.
%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" \
-n "%{buildroot}/usr/bin" "%{SOURCE0}"
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/facter
%{_libdir}/ruby/gems/*/cache/facter-%{version}.gem
%dir %{_libdir}/ruby/gems/*/gems/facter-%{version}
%{_libdir}/ruby/gems/*/gems/facter-%{version}/*
%{_libdir}/ruby/gems/*/specifications/facter-%{version}.gemspec
%dir %{_libdir}/ruby/gems/*/doc/facter-%{version}
%{_libdir}/ruby/gems/*/doc/facter-%{version}/*
%changelog
* Sat Mar 06 2021 Automatic Build System <autodist@mambasoft.it> 4.0.51-1mamba
- automatic version update by autodist
* Tue Jul 17 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.1-1mamba
- update to 2.5.1
* Wed Dec 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.3-1mamba
- package created using the webbuild interface