Project

General

Profile

« Previous | Next » 

Revision 032b3cd5

Added by Dominic Cleal over 8 years ago

Rebuild ruby193-facter as a rubygem

Since vendor_ruby etc inside 'tfm' aren't in the Ruby load path, but gems are,
then changing it to a rubygem makes it far easier to load it automatically.

View differences:

comps/comps-foreman-rhel6.xml
<packagereq type="default">rhscl-ruby193-epel-6-x86_64</packagereq>
<packagereq type="default">rhscl-v8314-epel-6-x86_64</packagereq>
<packagereq type="default">ruby193-facter</packagereq>
<packagereq type="default">ruby193-mod_passenger</packagereq>
<packagereq type="default">ruby193-rubygem-addressable</packagereq>
......
<packagereq type="default">ruby193-rubygem-eventmachine</packagereq>
<packagereq type="default">ruby193-rubygem-excon</packagereq>
<packagereq type="default">ruby193-rubygem-extlib</packagereq>
<packagereq type="default">tfm-rubygem-facter</packagereq>
<packagereq type="default">ruby193-rubygem-faraday</packagereq>
<packagereq type="default">ruby193-rubygem-fastercsv</packagereq>
<packagereq type="default">ruby193-rubygem-fast_gettext</packagereq>
......
<packagereq type="default">ruby193-rubygem-eventmachine-doc</packagereq>
<packagereq type="default">ruby193-rubygem-excon-doc</packagereq>
<packagereq type="default">ruby193-rubygem-extlib-doc</packagereq>
<packagereq type="default">tfm-rubygem-facter-doc</packagereq>
<packagereq type="default">ruby193-rubygem-faraday-doc</packagereq>
<packagereq type="default">ruby193-rubygem-fast_gettext-doc</packagereq>
<packagereq type="default">ruby193-rubygem-flot-rails-doc</packagereq>
comps/comps-foreman-rhel7.xml
<packagereq type="default">rhscl-ruby193-epel-7-x86_64</packagereq>
<packagereq type="default">rhscl-v8314-epel-7-x86_64</packagereq>
<packagereq type="default">ruby193-facter</packagereq>
<packagereq type="default">ruby193-mod_passenger</packagereq>
<packagereq type="default">ruby193-rubygem-addressable</packagereq>
......
<packagereq type="default">ruby193-rubygem-eventmachine</packagereq>
<packagereq type="default">ruby193-rubygem-excon</packagereq>
<packagereq type="default">ruby193-rubygem-extlib</packagereq>
<packagereq type="default">tfm-rubygem-facter</packagereq>
<packagereq type="default">ruby193-rubygem-faraday</packagereq>
<packagereq type="default">ruby193-rubygem-fastercsv</packagereq>
<packagereq type="default">ruby193-rubygem-fast_gettext</packagereq>
......
<packagereq type="default">ruby193-rubygem-eventmachine-doc</packagereq>
<packagereq type="default">ruby193-rubygem-excon-doc</packagereq>
<packagereq type="default">ruby193-rubygem-extlib-doc</packagereq>
<packagereq type="default">tfm-rubygem-facter-doc</packagereq>
<packagereq type="default">ruby193-rubygem-faraday-doc</packagereq>
<packagereq type="default">ruby193-rubygem-fast_gettext-doc</packagereq>
<packagereq type="default">ruby193-rubygem-flot-rails-doc</packagereq>
facter/facter-2.2.0.tar.gz
../.git/annex/objects/8x/Gq/SHA256E-s241732--31db7422f01403943d47bc0f0a1c238ce3b4c56ef4f1cfb5f936f13208b18b62.tar.gz/SHA256E-s241732--31db7422f01403943d47bc0f0a1c238ce3b4c56ef4f1cfb5f936f13208b18b62.tar.gz
facter/facter-2.2.0.tar.gz.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: GPGTools - http://gpgtools.org
iQIcBAABCgAGBQJT+8DhAAoJEBBUt6JL1uwwG6AP/0oI5QnJmiRCPkJyhzrhuNqQ
1XXG9wqI+SZ1LuwkdePC6vXeP9UeHtJp/gcXr4faANJtUEKKEjQWd+/z73GzuVAE
CAsvtvqXCm33UeAkAWcXOdFhQyGUixv+pNBNE4LHyd2OAVT2CGQwYE2hHGnEoYqP
ZG9zsHtcq9acvaYQ6YQbAgzvHLan09Ui427p5Q2mRMe+J5gwA+ij1BcajW8Na5ZL
Nt23BT8xieMbwYhTO6zNSQOyrXYElzcWOwnjhOf4v9wIp5RXIGf86GSuGHQ3Okvu
y1CjW/ekoPH+MModxVK3KUaVUUfAu034mkUcDIveNQCsVHCbSAnfJj8BPeuhW0nF
XGD7X2WqJxwVKPEGJKTE2Cf8hhGbBgVVufl7b7WtgZt0AewxJp6iMmRPxUpLgTD4
1sIcl+IkZx6hg7xT4H07UCz1w8DHjoamMG0SP2T2ojFpGge7pkjSk6c5/6iyeh5B
IEZC663D1ERhuDgaPm/hi8B0kYLVAWuv75UieYo1j5Ws003mhAJThTPJGoZPphjb
JOb1nZnX4yMxRp9b1/ZpeXVj4cJojLVKP1Cj9PhjKR0lb6KfZq9isPd9pW7TZJa9
t8T5OhnhcSKA01GuDGX5WC6eM8BRI4WLSHtdIdRkvRSlJMb7i81znjWHHJUuvto4
Kbv61wz464sePaOhlSSd
=XoLY
-----END PGP SIGNATURE-----
facter/facter.spec
%{?scl:%scl_package facter}
%{!?scl:%global pkg_name %{name}}
%global facter_libdir %{ruby_vendorlibdir}
# Only enable checks on F-19, other releases fail for various reasons
%if (0%{?fedora} >= 17 && 0%{?fedora} <= 19)
%global enable_check 1
%else
%global enable_check 0
%endif
%global ruby_version %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["ruby_version"]')
# There is nothing useful in debuginfo, facter is only an arch package to
# allow arch-dependent requires.
%global debug_package %{nil}
Name: %{?scl_prefix}facter
Version: 2.2.0
Release: 1.1%{?dist}
Summary: Command and ruby library for gathering system information
Group: System Environment/Base
License: ASL 2.0
URL: https://puppetlabs.com/%{pkg_name}
Source0: https://downloads.puppetlabs.com/%{pkg_name}/%{pkg_name}-%{version}.tar.gz
Source1: https://downloads.puppetlabs.com/%{pkg_name}/%{pkg_name}-%{version}.tar.gz.asc
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Upstream claims to only support 1.8.7 and higher
BuildRequires: %{?scl_prefix_ruby}ruby >= 1.8.7
BuildRequires: %{?scl_prefix_ruby}ruby-devel
%if %{enable_check}
BuildRequires: net-tools
BuildRequires: %{?scl_prefix_ruby}rubygem(mocha)
BuildRequires: %{?scl_prefix_ruby}rubygem(rspec-core)
BuildRequires: %{?scl_prefix_ruby}rubygem(rspec)
%endif
# dmidecode and pciutils are not available on all arches
%ifarch %ix86 x86_64 ia64
Requires: dmidecode
Requires: pciutils
Requires: virt-what
%endif
Requires: net-tools
# Work around the lack of ruby in the default mock buildroot
%if "%{ruby_version}"
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
Requires: %{?scl_prefix_ruby}ruby(release)
%else
Requires: %{?scl_prefix_ruby}ruby(abi) = %{ruby_version}
%endif
%endif
Requires: which
%{?scl:Obsoletes: ruby193-facter}
%description
Facter is a lightweight program that gathers basic node information about the
hardware and operating system. Facter is especially useful for retrieving
things like operating system names, hardware characteristics, IP addresses, MAC
addresses, and SSH keys.
Facter is extensible and allows gathering of node information that may be
custom or site specific. It is easy to extend by including your own custom
facts. Facter can also be used to create conditional expressions in Puppet that
key off the values returned by facts.
%prep
%setup -n %{pkg_name}-%{version} -q
%build
# Nothing to build
%install
rm -rf %{buildroot}
%{?scl:scl enable %{scl} - << \EOF}
ruby install.rb --destdir=%{buildroot} --quick --no-rdoc --sitelibdir=%{facter_libdir}
%{?scl:EOF}
# Create directory for external facts
mkdir -p %{buildroot}/%{_sysconfdir}/%{pkg_name}/facts.d
%if ! (0%{?fedora} || 0%{?rhel} >= 7)
# Install man page, rubygem-rdoc is not available on older EL releases)
install -D -pv -m 644 man/man8/%{pkg_name}.8 %{buildroot}/%{_mandir}/man8/%{pkg_name}.8
%endif
%postun
# Work around issues where puppet fails to run after a facter update
# https://bugzilla.redhat.com/806370
# http://projects.puppetlabs.com/issues/12879
if [ "$1" -ge 1 ]; then
/sbin/service puppet condrestart >/dev/null 2>&1 || :
fi
%clean
rm -rf %{buildroot}
%check
%if %{enable_check}
%{?scl:scl enable %{scl} - << \EOF}
rspec spec
%{?scl:EOF}
%endif
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{_bindir}/%{pkg_name}
%{_sysconfdir}/%{pkg_name}
%{facter_libdir}/%{pkg_name}*
%{_mandir}/man8/%{pkg_name}*
%changelog
* Mon Oct 20 2014 Dominic Cleal <dcleal@redhat.com> 2.2.0-1.1
- fixes #7974 - rebase and SCLise facter 2.2.0 (dcleal@redhat.com)
* Fri Oct 10 2014 Michael Stahnke <stahnma@fedoraproject.org> - 2.2.0-1
- Update to 2.2.0 as per bz#1108041
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon May 05 2014 Lubomir Rintel <lkundrak@v3.sk> - 2.0.1-2
- Fix el7 conditionals as suggested by Orion Poplawski (BZ #1087946)
* Tue Apr 29 2014 Sam Kottler <skottler@fedoraproject.org> - 2.0.1-1
- Update to to 2.0.1
* Tue Jan 28 2014 Todd Zullinger <tmz@pobox.com> - 1.7.4-1
- Update to 1.7.4
- Create /etc/facter/facts.d for external facts
- Send dmiddecode errors to /dev/null in the virtual fact (FACT-86)
* Tue Oct 8 2013 Sam Kottler <skottler@fedoraproject.org> - 1.7.3-1
- Update to 1.7.3 (BZ #1016817)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.18-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Jun 21 2013 Sam Kottler <skottler@fedoraproject.org> 1.6.18-4
- Apply upstream patch to ensure the first non-127.0.0.1 interface
* Wed Apr 03 2013 Todd Zullinger <tmz@pobox.com> - 1.6.18-3
- Avoid warnings when virt-what produces no output
* Tue Apr 02 2013 Todd Zullinger <tmz@pobox.com> - 1.6.18-2
- Apply upstream patch to filter virt-what warnings from virtual fact
* Mon Mar 18 2013 Todd Zullinger <tmz@pobox.com> - 1.6.18-1
- Update to 1.6.18
- Restart puppet in %%postun (#806370)
- Require virt-what for improved KVM detection (#905592)
- Ensure man page is installed on EL < 7
* Tue Mar 12 2013 Vít Ondruch <vondruch@redhat.com> - 1.6.17-2
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
* Mon Feb 25 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.6.17-1
- New upstream version, fixes rhbz #892734
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Dec 04 2012 Michael Stahnke <stahnma@puppetlabs.com> - 1.6.16-1
- Update to 1.6.16
* Wed Nov 28 2012 Michael Stahnke <stahnma@puppetlabs.com> - 1.6.15-1
- Rebase to 1.6.15
- Put asc file back as Source1
* Fri Nov 09 2012 Michael Stahnke <stahnma@puppetlabs.com> - 1.6.13-2
- Add patch for ec2 fix
- Rebase to 1.6.14 via bz 871211
* Mon Oct 29 2012 Michael Stahnke <stahnma@puppetlabs.com> - 1.6.13-1
- Rebase to 1.6.13
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Mar 05 2012 Todd Zullinger <tmz@pobox.com> - 1.6.6-1
- Update to 1.6.6
* Sun Feb 19 2012 Todd Zullinger <tmz@pobox.com> - 1.6.5-5
- Disable useless debuginfo generation (#795106, thanks to Ville Skyttä)
- Update summary and description
- Remove INSTALL from %%doc
* Wed Feb 15 2012 Todd Zullinger <tmz@pobox.com> - 1.6.5-4
- Only run rspec checks on Fedora >= 17
* Mon Feb 13 2012 Todd Zullinger <tmz@pobox.com> - 1.6.5-3
- Make spec file work for EPEL and Fedora
- Drop BuildArch: noarch and make dmidecode/pciutils deps arch-specific
- Make ec2 facts work on CentOS again (#790849, thanks to Jeremy Katz)
- Preserve timestamps when installing files
* Thu Feb 02 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.6.5-2
- Rebuilt for Ruby 1.9.3.
* Thu Jan 26 2012 Todd Zullinger <tmz@pobox.com> - 1.6.5-1
- Update to 1.6.5
- Require net-tools and pciutils, thanks to Dominic Cleal (#783749)
* Thu Jan 05 2012 Todd Zullinger <tmz@pobox.com> - 1.6.4-1
- Update to 1.6.4
- Require dmidecode (upstream #11041)
* Sat Oct 15 2011 Todd Zullinger <tmz@pobox.com> - 1.6.2-1
- Update to 1.6.2
- Update source URL
* Thu Sep 29 2011 Todd Zullinger <tmz@pobox.com> - 1.6.1-1
- Update to 1.6.1
- Minor spec file reformatting
* Wed Jul 27 2011 Todd Zullinger <tmz@pobox.com> - 1.6.0-2
- Update license tag, GPLv2+ -> ASL 2.0
* Thu Jul 14 2011 Todd Zullinger <tmz@pobox.com> - 1.6.0-1
- Update to 1.6.0
* Thu May 26 2011 Todd Zullinger <tmz@pobox.com> - 1.5.9-1
- Update to 1.5.9
- Improve Scientific Linux support, courtesy of Orion Poplawski (upstream #7682)
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sat Aug 28 2010 Todd Zullinger <tmz@pobox.com> - 1.5.8-1
- Update to 1.5.8
* Fri Sep 25 2009 Todd Zullinger <tmz@pobox.com> - 1.5.7-1
- Update to 1.5.7
- Update #508037 patch from upstream ticket
* Wed Aug 12 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 1.5.5-3
- Fix #508037 or upstream #2355
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri May 22 2009 Todd Zullinger <tmz@pobox.com> - 1.5.5-1
- Update to 1.5.5
- Drop upstreamed libperms patch
* Sat Feb 28 2009 Todd Zullinger <tmz@pobox.com> - 1.5.4-1
- New version
- Use upstream install script
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Sep 09 2008 Todd Zullinger <tmz@pobox.com> - 1.5.2-1
- New version
- Simplify spec file checking for Fedora and RHEL versions
* Mon Sep 8 2008 David Lutterkort <dlutter@redhat.com> - 1.5.1-1
- New version
* Thu Jul 17 2008 David Lutterkort <dlutter@redhat.com> - 1.5.0-3
- Change 'mkdir' in install to 'mkdir -p'
* Thu Jul 17 2008 David Lutterkort <dlutter@redhat.com> - 1.5.0-2
- Remove files that were listed twice in files section
* Mon May 19 2008 James Turnbull <james@lovedthanlosty.net> - 1.5.0-1
- New version
- Added util and plist files
* Mon Sep 24 2007 David Lutterkort <dlutter@redhat.com> - 1.3.8-1
- Update license tag
- Copy all of lib/ into ruby_sitelibdir
* Thu Mar 29 2007 David Lutterkort <dlutter@redhat.com> - 1.3.7-1
- New version
* Fri Jan 19 2007 David Lutterkort <dlutter@redhat.com> - 1.3.6-1
- New version
* 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
- New version
* Tue Sep 26 2006 David Lutterkort <dlutter@redhat.com> - 1.3.4-1
- New version
* Wed Sep 13 2006 David Lutterkort <dlutter@redhat.com> - 1.3.3-2
- Rebuilt for FC6
* Wed Jun 28 2006 David Lutterkort <dlutter@redhat.com> - 1.3.3-1
- Rebuilt
* Fri Jun 19 2006 Luke Kanies <luke@madstop.com> - 1.3.0-1
- Fixed spec file to work again with the extra memory and processor files.
- Require ruby(abi). Build as noarch
* Fri Jun 9 2006 Luke Kanies <luke@madstop.com> - 1.3.0-1
- Added memory.rb and processor.rb
* Mon Apr 17 2006 David Lutterkort <dlutter@redhat.com> - 1.1.4-4
- Rebuilt with changed upstream tarball
* Tue Mar 21 2006 David Lutterkort <dlutter@redhat.com> - 1.1.4-3
- Do not rely on install.rb, it will be deleted upstream
* Mon Mar 13 2006 David Lutterkort <dlutter@redhat.com> - 1.1.4-2
- Commented out noarch; requires fix for bz184199
* Mon Mar 6 2006 David Lutterkort <dlutter@redhat.com> - 1.1.4-1
- Removed unused macros
* Mon Feb 6 2006 David Lutterkort <dlutter@redhat.com> - 1.1.1-2
- Fix BuildRoot. Add dist to release tag
* Wed Jan 11 2006 David Lutterkort <dlutter@redhat.com> - 1.1.1-1
- Initial build.
foreman/foreman.spec
%endif
Requires: %{scl_ruby}
Requires: %{?scl_prefix_ruby}rubygems
Requires: %{?scl_prefix}facter
Requires: %{?scl_prefix_ruby}rubygem(rake) >= 0.8.3
Requires: %{?scl_prefix}rubygem(bundler_ext)
......
Requires: %{?scl_prefix}rubygem(turbolinks) < 3.0
Requires: %{?scl_prefix}rubygem(logging) >= 1.8
Requires: %{?scl_prefix}rubygem(logging) < 3.0
# facter
Requires: %{?scl_prefix}rubygem(facter)
# jsonp
Requires: %{?scl_prefix}rubygem(rack-jsonp)
......
BuildRequires: asciidoc
BuildRequires: %{scl_ruby}
BuildRequires: %{?scl_prefix_ruby}rubygems
BuildRequires: %{?scl_prefix}facter
BuildRequires: %{?scl_prefix_ruby}rubygem(rake) >= 0.8.3
BuildRequires: %{?scl_prefix}rubygem(bundler_ext)
BuildRequires: %{?scl_prefix_ruby}rubygem(sqlite3)
......
BuildRequires: %{?scl_prefix}rubygem(select2-rails) < 4.0
BuildRequires: %{?scl_prefix}rubygem(underscore-rails) >= 1.8
BuildRequires: %{?scl_prefix}rubygem(underscore-rails) < 2.0
# facter
BuildRequires: %{?scl_prefix}rubygem(facter)
%package cli
Summary: Foreman CLI
rubygem-facter/facter-2.4.0.gem
../.git/annex/objects/6q/z2/SHA256E-s244224--d822eeb894a769091ebfb01cbec5a07e8748c6463fe116adb6f305c60f3fdc7e.0.gem/SHA256E-s244224--d822eeb894a769091ebfb01cbec5a07e8748c6463fe116adb6f305c60f3fdc7e.0.gem
rubygem-facter/rubygem-facter.spec
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
%global gem_name facter
Summary: Command and ruby library for gathering system information
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 2.4.0
Release: 1%{?dist}
Group: System Environment/Base
License: ASL 2.0
URL: https://puppetlabs.com/%{gem_name}
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
%if 0%{?fedora} > 18
Requires: %{?scl_prefix_ruby}ruby(release)
%else
Requires: %{?scl_prefix_ruby}ruby(abi)
%endif
Requires: %{?scl_prefix_ruby}ruby(rubygems)
Requires: %{?scl_prefix_ruby}ruby
%ifarch %ix86 x86_64 ia64
Requires: dmidecode
Requires: pciutils
Requires: virt-what
%endif
Requires: net-tools
Requires: which
%if 0%{?fedora} > 18
BuildRequires: %{?scl_prefix_ruby}ruby(release)
%else
BuildRequires: %{?scl_prefix_ruby}ruby(abi)
%endif
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
BuildRequires: %{?scl_prefix_ruby}ruby
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
Obsoletes: ruby193-%{gem_name}
%description
Facter is a lightweight program that gathers basic node information about the
hardware and operating system. Facter is especially useful for retrieving
things like operating system names, hardware characteristics, IP addresses, MAC
addresses, and SSH keys.
Facter is extensible and allows gathering of node information that may be
custom or site specific. It is easy to extend by including your own custom
facts. Facter can also be used to create conditional expressions in Puppet that
key off the values returned by facts.
%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{pkg_name}
%prep
%setup -n %{pkg_name}-%{version} -q -c -T
mkdir -p .%{gem_dir}
%{?scl:scl enable %{scl} "}
gem install --local --install-dir .%{gem_dir} \
--bindir .%{_bindir} \
--force %{SOURCE0}
%{?scl:"}
%build
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/
%files
%dir %{gem_instdir}
%{_bindir}/facter
%{gem_libdir}
%{gem_instdir}/bin
%exclude %{gem_cache}
%{gem_spec}
%doc %{gem_instdir}/LICENSE
%exclude %{gem_instdir}/etc
%exclude %{gem_instdir}/ext
%exclude %{gem_instdir}/install.rb
%files doc
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/spec
%doc %{gem_instdir}/COMMITTERS.md
%doc %{gem_instdir}/CONTRIBUTING.md
%doc %{gem_instdir}/README.md
%changelog

Also available in: Unified diff