[packages/ruby-rake-compiler] Up to 1.3.1
arekm
arekm at pld-linux.org
Sat Mar 28 00:34:25 CET 2026
commit 8b03f2d26c3ca79397b9e4ec0f4dfc3175265b52
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Mar 28 00:34:13 2026 +0100
Up to 1.3.1
ruby-rake-compiler.spec | 24 +++++++++++++++---------
shebang.patch | 8 ++++++++
2 files changed, 23 insertions(+), 9 deletions(-)
---
diff --git a/ruby-rake-compiler.spec b/ruby-rake-compiler.spec
index 3e69db6..9b49d94 100644
--- a/ruby-rake-compiler.spec
+++ b/ruby-rake-compiler.spec
@@ -6,15 +6,16 @@
Summary: Rake-based Ruby C Extension task generator
Summary(pl.UTF-8): Generator zadań Rake'a do budowania rozszerzeń języka Ruby napisanych w C
Name: ruby-%{gemname}
-Version: 1.0.7
-Release: 2
+Version: 1.3.1
+Release: 1
License: MIT
Group: Development/Languages
Source0: https://rubygems.org/downloads/%{gemname}-%{version}.gem
-# Source0-md5: ec3acc332e3c86760b3f4dbdc5351192
+# Source0-md5: 4ac4629eae87b2ad8f754852ed16afbc
URL: https://rubygems.org/gems/rake-compiler/
+Patch0: shebang.patch
BuildRequires: rpm-rubyprov
-BuildRequires: rpmbuild(macros) >= 1.656
+BuildRequires: rpmbuild(macros) >= 1.665
%if %{with tests}
#BuildRequires: ruby-cucumber
#BuildRequires: ruby-isolate
@@ -67,10 +68,12 @@ Ten pakiet zawiera dokumentację do modułu języka Ruby rake-compiler.
%prep
%setup -q -n %{gemname}-%{version}
-
-%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+ruby(\s|$),#!%{__ruby}\1,' bin/rake-compiler
+%patch -P0 -p1
%build
+# write .gemspec
+%__gem_helper spec
+
%if %{with tests}
# Modify Isolate file
cp -p Isolate{,.orig}
@@ -80,7 +83,7 @@ sed -i -e 's|gem |# gem|' Isolate
# rake aborted!
# undefined method `desc' for #<Cucumber::Rake::Task:0xb742ebb0>
# rake spec
-ruby -Ilib -S rspec spec/
+%{__ruby} -Ilib -S rspec spec/
# back to the original
%{__mv} Isolate{.orig,}
@@ -88,19 +91,22 @@ ruby -Ilib -S rspec spec/
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{gemname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.rdoc History.txt LICENSE.txt
+%doc README.md History.md LICENSE.txt
%attr(755,root,root) %{_bindir}/rake-compiler
%dir %{ruby_vendorlibdir}/rake
%{ruby_vendorlibdir}/rake/baseextensiontask.rb
+%{ruby_vendorlibdir}/rake/compiler_config.rb
%{ruby_vendorlibdir}/rake/extensioncompiler.rb
%{ruby_vendorlibdir}/rake/extensiontask.rb
%{ruby_vendorlibdir}/rake/javaextensiontask.rb
+%{ruby_specdir}/%{gemname}-%{version}.gemspec
diff --git a/shebang.patch b/shebang.patch
new file mode 100644
index 0000000..9e19e82
--- /dev/null
+++ b/shebang.patch
@@ -0,0 +1,8 @@
+--- rake-compiler-1.3.1/bin/rake-compiler.orig 2024-01-01 00:00:00.000000000 +0000
++++ rake-compiler-1.3.1/bin/rake-compiler 2024-01-01 00:00:00.000000000 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+ #--
+ # Copyright (c) 2008 Luis Lavena
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rake-compiler.git/commitdiff/8b03f2d26c3ca79397b9e4ec0f4dfc3175265b52
More information about the pld-cvs-commit
mailing list