Re-enable rdoc generation.

This commit is contained in:
Vít Ondruch 2018-01-09 15:06:35 +01:00
parent e60bb4e892
commit f53727dd1b

View File

@ -2,7 +2,7 @@
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.9.18 Version: 1.9.18
Release: 4%{?dist} Release: 5%{?dist}
Summary: FFI Extensions for Ruby Summary: FFI Extensions for Ruby
Group: Development/Languages Group: Development/Languages
@ -43,36 +43,6 @@ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
# Create the gem as gem install only works on a gem file # Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec gem build %{gem_name}.gemspec
# FIXME (2018/01/05)
# With ruby25, rdoc generation segfaults. Disabling for now.
rm -rf BINDIR
mkdir BINDIR
cat > BINDIR/gem << EOF
#! /bin/bash
args=
while [ \$# -ge 1 ]
do
arg_o="\$1"
case "\$arg_o" in
--document=* )
arg="--document=ri"
;;
* )
arg="\$arg_o"
;;
esac
args="\$args \$arg"
shift
done
set -x
exec /usr/bin/gem \$args
EOF
chmod 0755 BINDIR/gem
export PATH="$(pwd)/BINDIR:$PATH"
%gem_install %gem_install
%install %install
@ -122,6 +92,9 @@ popd
%{gem_instdir}/Rakefile %{gem_instdir}/Rakefile
%changelog %changelog
* Tue Jan 09 2018 Vít Ondruch <vondruch@redhat.com> - 1.9.18-5
- Re-enable rdoc generation.
* Fri Jan 05 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.18-4 * Fri Jan 05 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.18-4
- F-28: rebuild for ruby25 - F-28: rebuild for ruby25
- Disabling rdoc generation for now to avoid segfault - Disabling rdoc generation for now to avoid segfault