Codebase list facter / d5d75e5
(CFACT-169) Include ruby and ruby-devel during build time We need to have a full development ruby available on the system during build time, so we can enable all the bits we need to allow users to continue writing custom facts in ruby. Melissa Stone 9 years ago
2 changed file(s) with 14 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11 Section: devel
22 Priority: optional
33 Maintainer: Puppet Labs <info@puppetlabs.com>
4 Build-Depends: debhelper (>> 7), pl-gcc (>= 4.8.2-1puppetlabs3), pl-cmake (>= 2.8.12-1puppetlabs6), pl-libboost-devel (>= 1.55.0-1puppetlabs3), pl-libboost-static (>= 1.55.0-1puppetlabs3), pl-libyaml-cpp-devel (>= 0.5.1-1puppetlabs4), pl-libyaml-cpp-static (>= 0.5.1-1puppetlabs4), libblkid-dev, libcurl4-openssl-dev, libssl-dev
4 Build-Depends: debhelper (>> 7), pl-gcc (>= 4.8.2-1puppetlabs3), pl-cmake (>= 2.8.12-1puppetlabs6), pl-libboost-devel (>= 1.55.0-1puppetlabs3), pl-libboost-static (>= 1.55.0-1puppetlabs3), pl-libyaml-cpp-devel (>= 0.5.1-1puppetlabs4), pl-libyaml-cpp-static (>= 0.5.1-1puppetlabs4), libblkid-dev, libcurl4-openssl-dev, libssl-dev, ruby1.9.1 | ruby (>= 1:1.9.3), ruby1.9.1-dev | ruby-dev (>= 1:1.9.3)
55 Standards-Version: 3.9.1
66 Homepage: http://www.puppetlabs.com
77
0 # Only >=el7 and fedora have a sufficient version of ruby available
1 %if 0%{?rhel} >= 7 || 0%{?fedora}
2 %{!?vendor_ruby: %global vendor_ruby %(ruby -rrbconfig -e "puts RbConfig::CONFIG['vendordir']")}
3 %endif
4
05 # Building debuginfo is pointless, as this has no symbols.
16 %global debug_package %{nil}
27
2126
2227 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2328
29 # Only >=el7 and fedora have a sufficient version of ruby available
30 %if 0%{?rhel} >= 7 || 0%{?fedora}
31 BuildRequires: ruby
32 BuildRequires: ruby-devel
33 %endif
2434 BuildRequires: pl-gcc >= 4.8.2-4
2535 BuildRequires: pl-cmake >= 2.8.12-6
2636 BuildRequires: pl-libboost-devel >= 1.55.0-4
8999 %{_bindir}/cfacter
90100 %{_libdir}/libfacter.so*
91101 %{_includedir}/facter
102 %if 0%{?rhel} >= 7 || 0%{?fedora}
103 %{vendor_ruby}/cfacter.rb
104 %endif
92105 %doc LICENSE README.md
93106
94107