[packages/ruby-facter] Up to 4.10.0

arekm arekm at pld-linux.org
Sat Mar 28 00:11:01 CET 2026


commit 9a1e5d00898bcf70bca32bdeb0b5379fd072098c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 28 00:10:49 2026 +0100

    Up to 4.10.0

 ruby-facter-shebang.patch | 32 ++++++++++++++++++++++++++++++++
 ruby-facter.spec          | 31 +++++++++++--------------------
 2 files changed, 43 insertions(+), 20 deletions(-)
---
diff --git a/ruby-facter.spec b/ruby-facter.spec
index 801e27b..85ec6ec 100644
--- a/ruby-facter.spec
+++ b/ruby-facter.spec
@@ -1,32 +1,22 @@
 %define		pkgname facter
 Summary:	Ruby module for collecting simple facts about a host operating system
 Name:		ruby-%{pkgname}
-Version:	2.5.7
+Version:	4.10.0
 Release:	1
-License:	GPL v2+
+License:	Apache v2.0
 Group:		Development/Languages
 Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	13b29436cc50caa7a8eeef8c4e1c8d36
-URL:		https://puppetlabs.com/facter
-BuildRequires:	docutils
+# Source0-md5:	b9495a64e9234494a0750da02769ed00
+Patch0:		ruby-facter-shebang.patch
+URL:		https://github.com/puppetlabs/facter
 BuildRequires:	rpm-rubyprov
-BuildRequires:	rpmbuild(macros) >= 1.656
-Requires:	lsb-release
-Requires:	net-tools
-Requires:	which
-# dmidecode and pciutils are not available on all arches
-%ifarch %{ix86} %{x8664} ia64
-Requires:	dmidecode
-Requires:	pciutils
-%endif
+BuildRequires:	rpmbuild(macros) >= 1.665
+Requires:	ruby-hocon >= 1.3
+Requires:	ruby-thor >= 1.0.1
 Obsoletes:	facter < 1.5.9
-# due arch specific dependencies
-#BuildArch:	noarch
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# nothing to be placed there. we're not noarch only because of arch dependant requires
-%define		_enable_debug_packages	0
-
 %description
 Facter is a lightweight program that gathers basic node information
 about the hardware and operating system. Facter is especially useful
@@ -40,6 +30,7 @@ expressions in Puppet that key off the values returned by facts.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
+%patch -P0 -p1
 
 %build
 # write .gemspec
@@ -57,7 +48,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.md etc/facter.conf
+%doc LICENSE
 %attr(755,root,root) %{_bindir}/facter
 %{ruby_vendorlibdir}/%{pkgname}
 %{ruby_vendorlibdir}/%{pkgname}.rb
diff --git a/ruby-facter-shebang.patch b/ruby-facter-shebang.patch
new file mode 100644
index 0000000..7279cf1
--- /dev/null
+++ b/ruby-facter-shebang.patch
@@ -0,0 +1,32 @@
+--- facter-4.10.0.orig/bin/facter	2024-10-17 00:00:00.000000000 +0000
++++ facter-4.10.0/bin/facter	2024-10-17 00:00:00.000000000 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+ # frozen_string_literal: true
+
+ require 'pathname'
+--- facter-4.10.0.orig/lib/docs/generate.rb	2024-10-17 00:00:00.000000000 +0000
++++ facter-4.10.0/lib/docs/generate.rb	2024-10-17 00:00:00.000000000 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+ # frozen_string_literal: true
+
+ # Generates a markdown file containing fact documentation.
+--- facter-4.10.0.orig/lib/facter/framework/cli/cli.rb	2024-10-17 00:00:00.000000000 +0000
++++ facter-4.10.0/lib/facter/framework/cli/cli.rb	2024-10-17 00:00:00.000000000 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+ # frozen_string_literal: true
+
+ require 'thor'
+--- facter-4.10.0.orig/lib/facter/framework/cli/cli_launcher.rb	2024-10-17 00:00:00.000000000 +0000
++++ facter-4.10.0/lib/facter/framework/cli/cli_launcher.rb	2024-10-17 00:00:00.000000000 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+ # frozen_string_literal: true
+
+ require_relative '../../../facter/framework/logging/logger'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-facter.git/commitdiff/9a1e5d00898bcf70bca32bdeb0b5379fd072098c



More information about the pld-cvs-commit mailing list