Minor spec file reformatting

epel9
Todd Zullinger 14 years ago
parent 5011849e9a
commit d73ca2015d

@ -1,29 +1,30 @@
%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')} %{!?ruby_sitelibdir: %global ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
%define has_ruby_abi 0%{?fedora} || 0%{?rhel} >= 5 %global has_ruby_abi 0%{?fedora} || 0%{?rhel} >= 5
%define has_ruby_noarch %has_ruby_abi %global has_ruby_noarch %has_ruby_abi
Summary: Ruby module for collecting simple facts about a host operating system Name: facter
Name: facter Version: 1.6.1
Version: 1.6.1 Release: 1%{?dist}
Release: 1%{?dist} Summary: Ruby module for collecting simple facts about a host operating system
License: ASL 2.0
Group: System Environment/Base Group: System Environment/Base
URL: http://www.puppetlabs.com/puppet/related-projects/%{name}/ License: ASL 2.0
Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz URL: http://www.puppetlabs.com/puppet/related-projects/%{name}/
Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz.asc 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) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if %has_ruby_noarch %if %has_ruby_noarch
BuildArch: noarch BuildArch: noarch
%endif %endif
Requires: ruby >= 1.8.1 Requires: ruby >= 1.8.1
Requires: which Requires: which
%if %has_ruby_abi %if %has_ruby_abi
Requires: ruby(abi) = 1.8 Requires: ruby(abi) = 1.8
%endif %endif
BuildRequires: ruby >= 1.8.1 BuildRequires: ruby >= 1.8.1
%description %description
Ruby module for collecting simple facts about a host Operating 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 %prep
%setup -q %setup -q
%build %build
# Nothing to build
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
ruby install.rb --destdir=%{buildroot} --quick --no-rdoc ruby install.rb --destdir=%{buildroot} --quick --no-rdoc
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -53,6 +58,7 @@ rm -rf %{buildroot}
%changelog %changelog
* Thu Sep 29 2011 Todd Zullinger <tmz@pobox.com> - 1.6.1-1 * Thu Sep 29 2011 Todd Zullinger <tmz@pobox.com> - 1.6.1-1
- Update to 1.6.1 - Update to 1.6.1
- Minor spec file reformatting
* Wed Jul 27 2011 Todd Zullinger <tmz@pobox.com> - 1.6.0-2 * Wed Jul 27 2011 Todd Zullinger <tmz@pobox.com> - 1.6.0-2
- Update license tag, GPLv2+ -> ASL 2.0 - Update license tag, GPLv2+ -> ASL 2.0

Loading…
Cancel
Save