[packages/ruby-rails] Up to 8.1.3
arekm
arekm at pld-linux.org
Sat Mar 28 01:30:02 CET 2026
commit 6428698bfbe8b658082ee61f51e74bda5485f21a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Mar 28 01:29:19 2026 +0100
Up to 8.1.3
bogus-deps.patch | 11 -----
disable-sprockets.patch | 11 -----
ruby-rails.spec | 104 +++++++++++++-----------------------------------
shebang.patch | 8 ++++
system-bundle.patch | 20 ----------
5 files changed, 35 insertions(+), 119 deletions(-)
---
diff --git a/ruby-rails.spec b/ruby-rails.spec
index bf0d214..1fb46d1 100644
--- a/ruby-rails.spec
+++ b/ruby-rails.spec
@@ -5,53 +5,19 @@
%define pkgname rails
Summary: Web-application framework with template engine, control-flow layer, and ORM
Name: ruby-%{pkgname}
-Version: 3.2.19
-Release: 3
+Version: 8.1.3
+Release: 1
License: MIT
Group: Development/Languages
-Source0: http://rubygems.org/downloads/railties-%{version}.gem
-# Source0-md5: 541a47ca3d89fb1103dc2a54b41f86ff
-Source1: http://rubygems.org/downloads/rails-%{version}.gem
-# Source1-md5: 3545800bc87637a368eb9614b5309a4e
-URL: http://www.rubyonrails.org/
-Patch0: system-bundle.patch
-Patch1: disable-sprockets.patch
-Patch2: bogus-deps.patch
+Source0: https://rubygems.org/downloads/railties-%{version}.gem
+# Source0-md5: ace8aa575bb2dedf90b1eae92fe540be
+Source1: https://rubygems.org/downloads/rails-%{version}.gem
+# Source1-md5: 46e3141e356d6a07c4546abb457d5bbf
+Patch0: shebang.patch
+URL: https://rubyonrails.org
+BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
-BuildRequires: ruby-bundler >= 1.0.3
-BuildRequires: ruby-modules >= 1.9.2
-Requires: ruby-actionmailer = %{version}
-Requires: ruby-actionpack = %{version}
-Requires: ruby-activerecord = %{version}
-Requires: ruby-activeresource = %{version}
-Requires: ruby-activesupport = %{version}
-Requires: ruby-arel >= 3.0.2
-Requires: ruby-builder >= 3.0.0
-Requires: ruby-erubis >= 2.7.0
-Requires: ruby-i18n >= 0.6.4
-Requires: ruby-journey >= 1.0.4
-Requires: ruby-mail >= 2.5.4
-Requires: ruby-modules >= 1.9.2
-Requires: ruby-multi_json >= 1.0
-Requires: ruby-polyglot >= 0.3.1
-Requires: ruby-rack >= 1.4.5
-Requires: ruby-rack-cache >= 1.2
-Requires: ruby-rack-test >= 0.6.1
Requires: ruby-railties = %{version}-%{release}
-Requires: ruby-treetop >= 1.4.8
-Requires: ruby-tzinfo >= 0.3.29
-Conflicts: ruby-arel >= 3.1
-Conflicts: ruby-builder >= 4.0
-Conflicts: ruby-erubis >= 2.8.0
-Conflicts: ruby-i18n >= 1.0
-Conflicts: ruby-journey >= 1.1
-Conflicts: ruby-mail >= 2.6
-Conflicts: ruby-multi_json >= 2.0
-Conflicts: ruby-rack >= 1.5
-Conflicts: ruby-rack-cache >= 2.0
-Conflicts: ruby-rack-test >= 0.7
-Conflicts: ruby-treetop >= 1.5
-Conflicts: ruby-tzinfo >= 0.4
Obsoletes: railties
Obsoletes: ruby-Rails
BuildArch: noarch
@@ -62,9 +28,9 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _enable_debug_packages 0
%description
-Rails is a framework for building web-application using CGI, FCGI,
-mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2,
-SQL Server, or Oracle with eRuby- or Builder-based templates.
+Rails is a full-stack web framework optimized for programmer happiness
+and sustainable productivity. It encourages beautiful code by favoring
+convention over configuration.
%description -l pl.UTF-8
rails to skrypty wiążące biblioteki tworzące razem Ruby on Rails.
@@ -77,21 +43,10 @@ This package contains development tools.
%package -n ruby-railties
Summary: Gluing the Engine to the Rails
Group: Development/Languages
-Requires: ruby-rails = %{version}-%{release}
-#Requires: ruby-coffee-rails >= 3.2.1
-Requires: ruby-jquery-rails
-Requires: ruby-sass-rails >= 3.2.3
-Requires: ruby-sqlite3
-#Suggests: ruby-uglifier >= 1.0.3
-#Suggests: ruby-sprockets >= 2.2.1
-#Conflicts: ruby-sprockets >= 2.3
-#Conflicts: ruby-coffee-rails >= 3.3
-Conflicts: sass-rails >= 3.3
%description -n ruby-railties
-Rails is a framework for building web-application using CGI, FCGI,
-mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2,
-SQL Server, or Oracle with eRuby- or Builder-based templates.
+Rails internals: application bootup, plugins, generators, and rake
+tasks. Railties is responsible to glue all frameworks together.
This package contains railties module.
@@ -120,40 +75,29 @@ ri documentation for %{pkgname}.
Dokumentacji w formacie ri dla %{pkgname}.
%prep
-%setup -q -n %{pkgname}-%{version}
+%setup -q -n railties-%{version}
install -d railgem
%{__tar} xf %{SOURCE1} -C railgem/
%patch -P0 -p1
-%patch -P1 -p1
# write .gemspec
cd railgem
%__gem_helper spec
cd ..
%__gem_helper spec
-%patch -P2 -p1
find -newer README.rdoc -o -print | xargs touch --reference %{SOURCE0}
-%{__grep} -rl '/usr/bin/env' . | xargs %{__sed} -i -e '
- s,/usr/bin/env ruby,%{__ruby},
- s,/usr/bin/env spawn-fcgi,/usr/sbin/spawn-fcgi,
- s,/usr/bin/env \(#{File.expand_path(\$0)}\),\1,
-'
-
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
-%{__sed} -i -e 's/\(.*s.add_dependency.*rdoc.*\)~>\(.*3.4.*\)/\1>\2/g' \
- railties*.gemspec
-
%if %{with doc}
rdoc --ri --op ri lib
rdoc --op rdoc lib
-rm -r ri/{ActiveSupport,Object,Plugin,RecursiveHTTPFetcher}
rm ri/created.rid
+rm ri/cache.ri
%endif
%install
@@ -167,9 +111,8 @@ cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
%endif
-#-cp -a bin builtin configs dispatches doc environments helpers html fresh_rakefile README $RPM_BUILD_ROOT%{_datadir}/%{pkgname}
-cp -a bin $RPM_BUILD_ROOT%{_datadir}/%{pkgname}
-install -p bin/rails $RPM_BUILD_ROOT%{_bindir}/rails
+cp -a exe $RPM_BUILD_ROOT%{_datadir}/%{pkgname}
+install -p exe/rails $RPM_BUILD_ROOT%{_bindir}/rails
cp -p railties-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
cp -p railgem/%{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
@@ -194,10 +137,17 @@ rm -rf $RPM_BUILD_ROOT
%files ri
%defattr(644,root,root,755)
-%{ruby_ridir}/Rails*
+%{ruby_ridir}/Minitest
+%{ruby_ridir}/Object
+%{ruby_ridir}/Rails
+%{ruby_ridir}/RDoc
+%{ruby_ridir}/lib
%endif
%files -n ruby-railties
%defattr(644,root,root,755)
-%{ruby_vendorlibdir}/*
+%{ruby_vendorlibdir}/minitest
+%{ruby_vendorlibdir}/rails
+%{ruby_vendorlibdir}/rails.rb
+%{ruby_vendorlibdir}/railties_path.rb
%{ruby_specdir}/railties-%{version}.gemspec
diff --git a/bogus-deps.patch b/bogus-deps.patch
deleted file mode 100644
index f983674..0000000
--- a/bogus-deps.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- rails-3.2.19/railties-3.2.19.gemspec~ 2014-09-04 20:33:32.000000000 +0200
-+++ rails-3.2.19/railties-3.2.19.gemspec 2014-09-04 20:33:57.044760379 +0200
-@@ -26,7 +26,7 @@
- s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
- s.add_runtime_dependency(%q<rack-ssl>, ["~> 1.3.2"])
- s.add_runtime_dependency(%q<thor>, ["< 2.0", ">= 0.14.6"])
-- s.add_runtime_dependency(%q<rdoc>, ["~> 3.4"])
-+ s.add_runtime_dependency(%q<rdoc>, ["> 3.4"])
- s.add_runtime_dependency(%q<activesupport>, ["= 3.2.19"])
- s.add_runtime_dependency(%q<actionpack>, ["= 3.2.19"])
- else
diff --git a/disable-sprockets.patch b/disable-sprockets.patch
deleted file mode 100644
index c2af2ce..0000000
--- a/disable-sprockets.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- rails-3.2.19/lib/rails/generators/app_base.rb~ 2014-09-04 01:19:44.000000000 +0200
-+++ rails-3.2.19/lib/rails/generators/app_base.rb 2014-09-04 20:15:51.501465339 +0200
-@@ -37,7 +37,7 @@
- class_option :skip_active_record, :type => :boolean, :aliases => "-O", :default => false,
- :desc => "Skip Active Record files"
-
-- class_option :skip_sprockets, :type => :boolean, :aliases => "-S", :default => false,
-+ class_option :skip_sprockets, :type => :boolean, :aliases => "-S", :default => true,
- :desc => "Skip Sprockets files"
-
- class_option :database, :type => :string, :aliases => "-d", :default => "sqlite3",
diff --git a/shebang.patch b/shebang.patch
new file mode 100644
index 0000000..2946fd2
--- /dev/null
+++ b/shebang.patch
@@ -0,0 +1,8 @@
+--- railties-8.1.3/exe/rails.orig 2025-01-01 00:00:00.000000000 +0000
++++ railties-8.1.3/exe/rails 2025-01-01 00:00:00.000000000 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+ # frozen_string_literal: true
+
+ git_path = File.expand_path("../../.git", __dir__)
diff --git a/system-bundle.patch b/system-bundle.patch
deleted file mode 100644
index 099d100..0000000
--- a/system-bundle.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- rails-3.2.19/lib/rails/generators/app_base.rb~ 2014-08-31 21:37:50.000000000 +0200
-+++ rails-3.2.19/lib/rails/generators/app_base.rb 2014-09-04 01:19:44.733043577 +0200
-@@ -28,7 +28,7 @@
- class_option :skip_gemfile, :type => :boolean, :default => false,
- :desc => "Don't create a Gemfile"
-
-- class_option :skip_bundle, :type => :boolean, :default => false,
-+ class_option :skip_bundle, :type => :boolean, :default => true,
- :desc => "Don't run bundle install"
-
- class_option :skip_git, :type => :boolean, :aliases => "-G", :default => false,
-@@ -251,7 +251,7 @@
- # end-user gets the bundler commands called anyway, so no big deal.
- #
- # Thanks to James Tucker for the Gem tricks involved in this call.
-- print `"#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" #{command}`
-+ print `/usr/bin/bundle #{command}`
- end
-
- def run_bundle
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rails.git/commitdiff/6428698bfbe8b658082ee61f51e74bda5485f21a
More information about the pld-cvs-commit
mailing list