|
|
@ -1,47 +1,23 @@
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
%global gem_name facter
|
|
|
|
%global boost_suffix 169
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global cmake_suffix 3
|
|
|
|
|
|
|
|
%global cmake %%cmake%{?cmake_suffix}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: facter
|
|
|
|
Name: facter
|
|
|
|
Version: 3.14.7
|
|
|
|
Version: 4.2.0
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Command and ruby library for gathering system information
|
|
|
|
Summary: Command and ruby library for gathering system information
|
|
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
License: MIT
|
|
|
|
URL: https://puppetlabs.com/facter
|
|
|
|
URL: https://puppetlabs.com/facter
|
|
|
|
Source0: https://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://downloads.puppetlabs.com/%{name}/%{name}-%{version}.gem
|
|
|
|
Source1: https://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.gz.asc
|
|
|
|
Source1: https://downloads.puppetlabs.com/%{name}/%{name}-%{version}.gem.asc
|
|
|
|
Source2: gpgkey-6F6B15509CF8E59E6E469F327F438280EF8D349F.gpg
|
|
|
|
Source2: https://downloads.puppetlabs.com/puppet-gpg-signing-key-20250406.pub
|
|
|
|
Patch0: shared_cpp_hcon.patch
|
|
|
|
|
|
|
|
Patch1: %{name}-gcc11.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
BuildRequires: cmake%{?cmake_suffix}
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
|
|
|
|
BuildRequires: leatherman-devel
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: boost%{?boost_suffix}-devel
|
|
|
|
|
|
|
|
BuildRequires: ruby-devel >= 1.9
|
|
|
|
|
|
|
|
BuildRequires: yaml-cpp-devel
|
|
|
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
|
|
|
BuildRequires: libblkid-devel
|
|
|
|
|
|
|
|
BuildRequires: cpp-hocon-devel
|
|
|
|
|
|
|
|
#BuildRequires: whereami-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# autoreq is not picking this one up so be specific
|
|
|
|
|
|
|
|
Requires: leatherman%{?_isa}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
|
|
Summary: Development libraries for building against facter
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ruby-%{name}
|
|
|
|
|
|
|
|
Summary: Ruby bindings for facter
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: ruby%{?_isa}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Facter is a lightweight program that gathers basic node information about the
|
|
|
|
Facter is a lightweight program that gathers basic node information about the
|
|
|
@ -54,63 +30,51 @@ 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
|
|
|
|
facts. Facter can also be used to create conditional expressions in Puppet that
|
|
|
|
key off the values returned by facts.
|
|
|
|
key off the values returned by facts.
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
The headers to link against libfacter in other applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ruby-%{name}
|
|
|
|
%package doc
|
|
|
|
The ruby bindings for libfacter.
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
%autosetup -p1
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cmake . -B%{_target_platform} \
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
-DBOOST_INCLUDEDIR=%{_includedir}/boost%{?boost_suffix} \
|
|
|
|
%gem_install
|
|
|
|
-DBOOST_LIBRARYDIR=%{_libdir}/boost%{?boost_suffix} \
|
|
|
|
|
|
|
|
-DLeatherman_DIR=%{_libdir}/cmake%{?cmake_suffix}/leatherman \
|
|
|
|
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install -C %{_target_platform}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
|
|
|
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
cp -a ./%{gem_instdir}/bin/facter %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
rm -rf %{buildroot}/%{gem_instdir}/bin
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# Tests depend too much on environment
|
|
|
|
|
|
|
|
# 1: -------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# 1: Scenario: using the filesystem resolver
|
|
|
|
|
|
|
|
# 1: When: populating facts
|
|
|
|
|
|
|
|
# 1: Then: non-tmpfs mounts should exist
|
|
|
|
|
|
|
|
# 1: -------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# 1: /builddir/build/BUILD/facter-3.14.2/lib/tests/facts/linux/filesystem_resolver.cc:37
|
|
|
|
|
|
|
|
# 1: ...............................................................................
|
|
|
|
|
|
|
|
# 1:
|
|
|
|
|
|
|
|
# 1: /builddir/build/BUILD/facter-3.14.2/lib/tests/facts/linux/filesystem_resolver.cc:38: FAILED:
|
|
|
|
|
|
|
|
# 1: REQUIRE( facts.query<facter::facts::map_value>("mountpoints./") )
|
|
|
|
|
|
|
|
# 1: with expansion:
|
|
|
|
|
|
|
|
# 1: NULL
|
|
|
|
|
|
|
|
#make_build -C %{_target_platform} test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/facter
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{gem_libdir}
|
|
|
|
# Note that leatherman has a hardcoded libfacter.so path for the installation
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
# of the library for the bindings: https://tickets.puppetlabs.com/browse/FACT-1772
|
|
|
|
%{gem_spec}
|
|
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
|
|
|
|
%{_mandir}/man8/%{name}*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ruby-%{name}
|
|
|
|
%files doc
|
|
|
|
%{ruby_vendorlibdir}/%{name}.rb
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Jun 02 2021 Joel Capitao <jcapitao@redhat.com> - 4.2.0-1
|
|
|
|
|
|
|
|
- Update to 4.2.0
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.7-7
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.7-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|