46 lines
1.3 KiB
RPMSpec
46 lines
1.3 KiB
RPMSpec
Name: ruby-facter
|
|
Version: 1.7.3
|
|
Release: 1mamba
|
|
Summary: A library for collecting facts about your system
|
|
Group: System/Managament
|
|
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
|
|
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 -rubygems -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
|
|
* Wed Dec 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.3-1mamba
|
|
- package created using the webbuild interface
|