[facter] Minor spec file reformatting
Todd Zullinger
tmz at fedoraproject.org
Fri Sep 30 16:15:49 UTC 2011
commit d73ca2015d6bac7e2530a8a2149ffbe0a1644499
Author: Todd Zullinger <tmz at pobox.com>
Date: Thu Sep 29 14:59:43 2011 -0400
Minor spec file reformatting
facter.spec | 46 ++++++++++++++++++++++++++--------------------
1 files changed, 26 insertions(+), 20 deletions(-)
---
diff --git a/facter.spec b/facter.spec
index a2fcadc..16d04d8 100644
--- a/facter.spec
+++ b/facter.spec
@@ -1,29 +1,30 @@
-%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
-
-%define has_ruby_abi 0%{?fedora} || 0%{?rhel} >= 5
-%define has_ruby_noarch %has_ruby_abi
-
-Summary: Ruby module for collecting simple facts about a host operating system
-Name: facter
-Version: 1.6.1
-Release: 1%{?dist}
-License: ASL 2.0
-Group: System Environment/Base
-URL: http://www.puppetlabs.com/puppet/related-projects/%{name}/
-Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz
-Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz.asc
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+%{!?ruby_sitelibdir: %global ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
+
+%global has_ruby_abi 0%{?fedora} || 0%{?rhel} >= 5
+%global has_ruby_noarch %has_ruby_abi
+
+Name: facter
+Version: 1.6.1
+Release: 1%{?dist}
+Summary: Ruby module for collecting simple facts about a host operating system
+
+Group: System Environment/Base
+License: ASL 2.0
+URL: http://www.puppetlabs.com/puppet/related-projects/%{name}/
+Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz
+Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz.asc
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
%if %has_ruby_noarch
BuildArch: noarch
%endif
-Requires: ruby >= 1.8.1
-Requires: which
+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
Ruby module for collecting simple facts about a host Operating
@@ -33,12 +34,16 @@ operating system. Additional facts can be added through simple Ruby scripts
%prep
%setup -q
+
%build
+# Nothing to build
+
%install
rm -rf %{buildroot}
ruby install.rb --destdir=%{buildroot} --quick --no-rdoc
+
%clean
rm -rf %{buildroot}
@@ -53,6 +58,7 @@ rm -rf %{buildroot}
%changelog
* Thu Sep 29 2011 Todd Zullinger <tmz at pobox.com> - 1.6.1-1
- Update to 1.6.1
+- Minor spec file reformatting
* Wed Jul 27 2011 Todd Zullinger <tmz at pobox.com> - 1.6.0-2
- Update license tag, GPLv2+ -> ASL 2.0
More information about the scm-commits
mailing list