(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
1 | 1 |
Section: devel
|
2 | 2 |
Priority: optional
|
3 | 3 |
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)
|
5 | 5 |
Standards-Version: 3.9.1
|
6 | 6 |
Homepage: http://www.puppetlabs.com
|
7 | 7 |
|
|
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 |
|
0 | 5 |
# Building debuginfo is pointless, as this has no symbols.
|
1 | 6 |
%global debug_package %{nil}
|
2 | 7 |
|
|
21 | 26 |
|
22 | 27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
23 | 28 |
|
|
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
|
24 | 34 |
BuildRequires: pl-gcc >= 4.8.2-4
|
25 | 35 |
BuildRequires: pl-cmake >= 2.8.12-6
|
26 | 36 |
BuildRequires: pl-libboost-devel >= 1.55.0-4
|
|
89 | 99 |
%{_bindir}/cfacter
|
90 | 100 |
%{_libdir}/libfacter.so*
|
91 | 101 |
%{_includedir}/facter
|
|
102 |
%if 0%{?rhel} >= 7 || 0%{?fedora}
|
|
103 |
%{vendor_ruby}/cfacter.rb
|
|
104 |
%endif
|
92 | 105 |
%doc LICENSE README.md
|
93 | 106 |
|
94 | 107 |
|