Add patch to fix docs generation when building gems with ruby 2.1

This commit is contained in:
Andrey Bondrov 2014-06-27 21:59:40 +11:00
parent a4f7aa97bf
commit 78a814d1c6
2 changed files with 18 additions and 3 deletions

View file

@ -0,0 +1,12 @@
diff -urN rpm-5.4.10/macros/ruby.in rpm-5.4.10-patched/macros/ruby.in
--- rpm-5.4.10/macros/ruby.in 2014-06-27 21:56:06.777854502 +1100
+++ rpm-5.4.10-patched/macros/ruby.in 2014-06-27 21:57:30.851220895 +1100
@@ -36,7 +36,7 @@
export LC_CTYPE=UTF-8 \
DESTDIR=${DESTDIR:-%{buildroot}} \\\
%__gem_helper install \\\
- --env-shebang --rdoc --ri --force --ignore-dependencies \\\
+ --env-shebang --rdoc --ri --force \\\
%{!-i:--install-dir %{buildroot}%{ruby_gemdir}}%{-i:--install-dir %{-i*}} \\\
%{!-n:--bindir %{buildroot}%{_bindir}}%{-n:--bindir%{-n*}} \\\
%{!-C:--fix-permissions}

View file

@ -60,7 +60,7 @@ Summary: The RPM package management system
Name: rpm
Epoch: 1
Version: %{libver}.%{minorver}
Release: %{?prereldate:0.%{prereldate}.}39
Release: %{?prereldate:0.%{prereldate}.}40
License: LGPLv2.1+
Group: System/Configuration/Packaging
URL: http://rpm5.org/
@ -471,6 +471,8 @@ Patch216: rpm-5.4.14-ruby-archdirs.patch
Patch217: rpm-5.4.14-ruby-abi-versioned.patch
Patch218: rpm-5.4.14-gem_helper-spec-arg.patch
Patch219: rpm-5.4.14-rubygems2-support.patch
# Needed to make docs generation work for gems
Patch220: rpm-5.4.10-ruby2.1-fixes.patch
Patch221: rpm-5.4.14-fix-dependency-generation-when-ruby_version-is-empty.patch
# ROSA stuff
@ -480,11 +482,11 @@ Patch502: rpm-5.4.9-package-name.patch
# for specspo
Patch503: rpm-5.4.9-specspo.patch
Patch504: rpm-5.4.10-postpone_subpackage_build_failures.patch
Patch504: rpm-5.4.10-postpone_subpackage_build_failures.patch
# Turn back old implementation of __urlgetfile handling,
# the new one doesn't work in ROSA atm
Patch505: rpm-5.4.10-turn-back-urlgetfile.patch
Patch505: rpm-5.4.10-turn-back-urlgetfile.patch
# This is a durty hack since we use the same flag for NodeJS and Mono,
# but there is no other easy way to add more dependency generators for now
@ -905,6 +907,7 @@ This package contains the RPM API documentation generated in HTML format.
%patch217 -p1 -b .rubyabiver~
%patch218 -p1 -b .gem_spec~
%patch219 -p1 -b .rubygems2~
%patch220 -p1 -b .ruby2.1~
%patch221 -p1 -b .no_ruby_version~
%patch501 -p1 -b .rosa_vendor~