50 lines
1.4 KiB
RPMSpec
50 lines
1.4 KiB
RPMSpec
Name: ruby-facter
|
|
Version: 2.5.1
|
|
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: http://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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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" \
|
|
--no-ri --no-rdoc -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
|
|
|
|
%changelog
|
|
* 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
|