[packages/ruby-sqlite3] Rel 2; avoid dragging in mini_portile2 dep
arekm
arekm at pld-linux.org
Mon Mar 16 19:34:12 CET 2026
commit 5484f0fad9fcf77209b9d0fc6654ada23cc98c91
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 16 19:34:02 2026 +0100
Rel 2; avoid dragging in mini_portile2 dep
ruby-sqlite3-no-mini_portile2.patch | 10 ++++++++++
ruby-sqlite3.spec | 7 +++++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/ruby-sqlite3.spec b/ruby-sqlite3.spec
index 22cf8d6..96cd27f 100644
--- a/ruby-sqlite3.spec
+++ b/ruby-sqlite3.spec
@@ -7,11 +7,12 @@ Summary: SQLite3 module for Ruby
Summary(pl.UTF-8): Moduł SQLite3 dla Ruby
Name: ruby-sqlite3
Version: 2.9.2
-Release: 1
+Release: 2
License: BSD
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: 8536ccb2de363c0b0c7daae7d20d388c
+Patch0: %{name}-no-mini_portile2.patch
URL: https://github.com/sparklemotion/sqlite3-ruby
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
@@ -57,9 +58,11 @@ Dokumentacji w formacie ri dla %{pkgname}.
%prep
%setup -q -n %{pkgname}-%{version}
+# remove mini_portile2 dep from gemspec generated by rpm from .gem metadata
+# (not needed when building with --enable-system-libraries)
+%patch -P0 -p1 -d ..
%build
-# write .gemspec
%__gem_helper spec
cd ext/%{pkgname}
diff --git a/ruby-sqlite3-no-mini_portile2.patch b/ruby-sqlite3-no-mini_portile2.patch
new file mode 100644
index 0000000..4cff80a
--- /dev/null
+++ b/ruby-sqlite3-no-mini_portile2.patch
@@ -0,0 +1,10 @@
+Remove mini_portile2 runtime dependency from gemspec.
+Not needed when building with --enable-system-libraries (system sqlite3).
+
+--- a/sqlite3-2.9.2.gemspec.orig
++++ b/sqlite3-2.9.2.gemspec
+@@ -24,5 +24,4 @@
+ s.specification_version = 4
+
+- s.add_runtime_dependency(%q<mini_portile2>.freeze, ["~> 2.8.0".freeze])
+ end
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-sqlite3.git/commitdiff/5484f0fad9fcf77209b9d0fc6654ada23cc98c91
More information about the pld-cvs-commit
mailing list