[facter] Drop BuildArch: noarch and make dmidecode/pciutils deps arch-specific

Todd Zullinger tmz at fedoraproject.org
Wed Feb 15 17:20:07 UTC 2012


commit a90006375eda9365590747252668c6fb044cf95d
Author: Todd Zullinger <tmz at pobox.com>
Date:   Tue Feb 14 10:37:42 2012 -0500

    Drop BuildArch: noarch and make dmidecode/pciutils deps arch-specific

 facter.spec |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/facter.spec b/facter.spec
index a815f5a..b98ae21 100644
--- a/facter.spec
+++ b/facter.spec
@@ -21,8 +21,6 @@ Source0:        http://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.g
 Source1:        http://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.gz.asc
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildArch: noarch
-
 BuildRequires:  ruby >= 1.8.1
 BuildRequires:  ruby-devel
 %if %{enable_check}
@@ -31,9 +29,12 @@ BuildRequires:  rubygem(mocha)
 BuildRequires:  rubygem(rspec-core)
 %endif
 
+# dmidecode and pciutils are not available on all arches
+%ifarch %ix86 x86_64 ia64
 Requires:       dmidecode
-Requires:       net-tools
 Requires:       pciutils
+%endif
+Requires:       net-tools
 # Work around the lack of ruby in the default mock buildroot
 %if "%{ruby_version}"
 Requires:       ruby(abi) = %{ruby_version}
@@ -78,6 +79,7 @@ rspec spec
 %changelog
 * Mon Feb 13 2012 Todd Zullinger <tmz at pobox.com> - 1.6.5-3
 - Make spec file work for EPEL and Fedora
+- Drop BuildArch: noarch and make dmidecode/pciutils deps arch-specific
 
 * Thu Feb 02 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.6.5-2
 - Rebuilt for Ruby 1.9.3.


More information about the scm-commits mailing list