[packages/ruby-rcairo] Rel 2
arekm
arekm at pld-linux.org
Sat Mar 28 00:33:41 CET 2026
commit 33fc0170f8c7e950f7c8af04cfa144804a513cf5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Mar 28 00:33:30 2026 +0100
Rel 2
ruby-rcairo.spec | 7 +++---
samples-shebang.patch | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 4 deletions(-)
---
diff --git a/ruby-rcairo.spec b/ruby-rcairo.spec
index f7670c7..5b3d33f 100644
--- a/ruby-rcairo.spec
+++ b/ruby-rcairo.spec
@@ -3,20 +3,20 @@ Summary: Cairo module for Ruby
Summary(pl.UTF-8): Moduł Cairo dla języka Ruby
Name: ruby-%{pkgname}
Version: 1.18.4
-Release: 1
+Release: 2
License: GPL v2+ or custom (see COPYING)
Group: Development/Languages
Source0: https://www.cairographics.org/releases/rcairo-%{version}.tar.gz
# Source0-md5: 5f13366474e7e0dc6b219da1556d8230
Patch0: %{name}-hdr.patch
Patch1: no-native-packages.patch
+Patch2: samples-shebang.patch
URL: https://www.cairographics.org/rcairo/
BuildRequires: cairo-devel >= 1.14.0
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.410
BuildRequires: ruby-devel >= 1:1.8
BuildRequires: ruby-pkg-config >= 1.2.2
-BuildRequires: sed >= 4.0
Requires: cairo >= 1.14.0
Requires: ruby >= 1:1.8
# dropped?
@@ -50,8 +50,7 @@ Plik nagłówkowy rozszerzenia rcairo dla języka Ruby.
%setup -q -n rcairo-%{version}
%patch -P0 -p1
%patch -P1 -p1
-
-%{__sed} -i -e '1s,/usr/bin/env ruby,%{__ruby},' samples/*.rb samples/agg/*.rb
+%patch -P2 -p1
%build
%{__ruby} extconf.rb
diff --git a/samples-shebang.patch b/samples-shebang.patch
new file mode 100644
index 0000000..f94c823
--- /dev/null
+++ b/samples-shebang.patch
@@ -0,0 +1,63 @@
+diff -urN rcairo-1.18.4.orig/samples/agg/aa_test.rb rcairo-1.18.4/samples/agg/aa_test.rb
+--- rcairo-1.18.4.orig/samples/agg/aa_test.rb 2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/samples/agg/aa_test.rb 2026-03-28 00:03:42.230294347 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ # ported from examples/aa_test.cpp in AGG source tree.
+
+diff -urN rcairo-1.18.4.orig/samples/blur.rb rcairo-1.18.4/samples/blur.rb
+--- rcairo-1.18.4.orig/samples/blur.rb 2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/samples/blur.rb 2026-03-28 00:03:42.232099530 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+ $LOAD_PATH.unshift File.join(top, "ext", "cairo")
+diff -urN rcairo-1.18.4.orig/samples/link.rb rcairo-1.18.4/samples/link.rb
+--- rcairo-1.18.4.orig/samples/link.rb 2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/samples/link.rb 2026-03-28 00:03:42.235980240 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+ $LOAD_PATH.unshift File.join(top, "ext", "cairo")
+diff -urN rcairo-1.18.4.orig/samples/png.rb rcairo-1.18.4/samples/png.rb
+--- rcairo-1.18.4.orig/samples/png.rb 2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/samples/png.rb 2026-03-28 00:03:42.226720236 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+ $LOAD_PATH.unshift File.join(top, "ext", "cairo")
+diff -urN rcairo-1.18.4.orig/samples/scalable.rb rcairo-1.18.4/samples/scalable.rb
+--- rcairo-1.18.4.orig/samples/scalable.rb 2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/samples/scalable.rb 2026-03-28 00:03:42.228517203 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+ $LOAD_PATH.unshift File.join(top, "ext", "cairo")
+diff -urN rcairo-1.18.4.orig/samples/text2.rb rcairo-1.18.4/samples/text2.rb
+--- rcairo-1.18.4.orig/samples/text2.rb 2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/samples/text2.rb 2026-03-28 00:03:42.224966608 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+ $LOAD_PATH.unshift File.join(top, "ext", "cairo")
+diff -urN rcairo-1.18.4.orig/samples/text-on-path.rb rcairo-1.18.4/samples/text-on-path.rb
+--- rcairo-1.18.4.orig/samples/text-on-path.rb 2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/samples/text-on-path.rb 2026-03-28 00:03:42.233889274 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+ $LOAD_PATH.unshift File.join(top, "ext", "cairo")
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rcairo.git/commitdiff/33fc0170f8c7e950f7c8af04cfa144804a513cf5
More information about the pld-cvs-commit
mailing list