Fix bz 223168

epel9
David Lutterkort 18 years ago
parent c11f21b23e
commit 36ba453bee

@ -1,18 +1,26 @@
%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')} %{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
%define has_ruby_abi 0%{?fedora:%fedora} >= 5 || 0%{?rhel:%rhel} >= 5
%define has_ruby_noarch %has_ruby_abi
Summary: Ruby module for collecting simple facts about a host operating system Summary: Ruby module for collecting simple facts about a host operating system
Name: facter Name: facter
Version: 1.3.5 Version: 1.3.5
Release: 1%{?dist} Release: 3%{?dist}
License: GPL License: GPL
Group: System Environment/Base Group: System Environment/Base
URL: http://reductivelabs.com/projects/facter URL: http://reductivelabs.com/projects/facter
Source0: http://reductivelabs.com/downloads/facter/%{name}-%{version}.tgz Source0: http://reductivelabs.com/downloads/facter/%{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if %has_ruby_noarch
BuildArchitectures: noarch BuildArchitectures: noarch
%endif
Requires: ruby >= 1.8.1 Requires: ruby >= 1.8.1
Requires: which
%if %has_ruby_abi
Requires: ruby(abi) = 1.8 Requires: ruby(abi) = 1.8
%endif
BuildRequires: ruby >= 1.8.1 BuildRequires: ruby >= 1.8.1
%description %description
@ -52,6 +60,13 @@ rm -rf %{buildroot}
%changelog %changelog
* Thu Jan 18 2007 David Lutterkort <dlutter@redhat.com> - 1.3.5-3
- require which; facter is very unhappy without it
* Mon Nov 20 2006 David Lutterkort <dlutter@redhat.com> - 1.3.5-2
- Make require ruby(abi) and buildarch: noarch conditional for fedora 5 or
later to allow building on older fedora releases
* Tue Oct 10 2006 David Lutterkort <dlutter@redhat.com> - 1.3.5-1 * Tue Oct 10 2006 David Lutterkort <dlutter@redhat.com> - 1.3.5-1
- New version - New version

Loading…
Cancel
Save