[packages/ruby-proxifier] Rel 2
arekm
arekm at pld-linux.org
Sat Mar 28 00:37:01 CET 2026
commit 3cbc185be187d27cdeff75208e1e99ad832867ba
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Mar 28 00:36:48 2026 +0100
Rel 2
ruby-proxifier-shebang.patch | 16 ++++++++++++++++
ruby-proxifier.spec | 8 ++++----
2 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/ruby-proxifier.spec b/ruby-proxifier.spec
index c85e647..96c4f1a 100644
--- a/ruby-proxifier.spec
+++ b/ruby-proxifier.spec
@@ -2,15 +2,15 @@
Summary: Proxifier is a gem to force ruby to use a proxy
Name: ruby-%{pkgname}
Version: 1.0.3
-Release: 1
+Release: 2
License: BSD-like
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: abfb31d36a2ea4feac73cd2f0363feaa
+Patch0: %{name}-shebang.patch
URL: https://github.com/samuelkadolph/ruby-proxifier
BuildRequires: rpm-rubyprov
-BuildRequires: rpmbuild(macros) >= 1.656
-BuildRequires: sed >= 4.0
+BuildRequires: rpmbuild(macros) >= 1.665
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -20,7 +20,7 @@ TCPSocket to use proxies.
%prep
%setup -q -n %{pkgname}-%{version}
-%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+%patch -P0 -p1
%build
# write .gemspec
diff --git a/ruby-proxifier-shebang.patch b/ruby-proxifier-shebang.patch
new file mode 100644
index 0000000..1c069ed
--- /dev/null
+++ b/ruby-proxifier-shebang.patch
@@ -0,0 +1,16 @@
+--- a/bin/pirb
++++ b/bin/pirb
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ executable = File.expand_path("../" + Gem.default_exec_format % "irb", Gem.ruby)
+ full_gem_path = Gem.loaded_specs["proxifier"].full_gem_path
+--- a/bin/pruby
++++ b/bin/pruby
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ executable = Gem.ruby
+ full_gem_path = Gem.loaded_specs["proxifier"].full_gem_path
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-proxifier.git/commitdiff/3cbc185be187d27cdeff75208e1e99ad832867ba
More information about the pld-cvs-commit
mailing list