Macros should not be expanded during Ruby build.

This commit is contained in:
Vít Ondruch 2013-02-21 09:58:27 +01:00
parent bb479d9770
commit 03c34a7e1f
1 changed files with 4 additions and 4 deletions

View File

@ -448,17 +448,17 @@ cat >> %{buildroot}%{_sysconfdir}/rpm/macros.rubygems << \EOF
# -n<gem_file> Overrides gem file name for installation. # -n<gem_file> Overrides gem file name for installation.
# -d<install_dir> Set installation directory. # -d<install_dir> Set installation directory.
%%gem_install(d:n:) \ %%gem_install(d:n:) \
mkdir -p '%%{-d*}%%{!?-d:.%{gem_dir}}' \ mkdir -p %%{-d*}%%{!?-d:.%%{gem_dir}} \
\ \
CONFIGURE_ARGS="--with-cflags='%%{optflags}' $CONFIGURE_ARGS" \\\ CONFIGURE_ARGS="--with-cflags='%%{optflags}' $CONFIGURE_ARGS" \\\
gem install \\\ gem install \\\
-V \\\ -V \\\
--local \\\ --local \\\
--install-dir '%%{-d*}%%{!?-d:.%{gem_dir}}' \\\ --install-dir %%{-d*}%%{!?-d:.%%{gem_dir}} \\\
--bindir .%{_bindir} \\\ --bindir .%%{_bindir} \\\
--force \\\ --force \\\
--document=ri,rdoc \\\ --document=ri,rdoc \\\
'%%{-n*}%%{!?-n:%{gem_name}-%{version}.gem}' %%{-n*}%%{!?-n:%%{gem_name}-%%{version}.gem}
EOF EOF
# Install custom operating_system.rb. # Install custom operating_system.rb.