RPM packaging: fix tdebindings build on opensuse tumbleweed

pull/3/head
François Andriot 9 years ago
parent de586bb860
commit 05215592f1

@ -173,17 +173,27 @@ BuildRequires: ruby >= 1.8
%if 0%{?fedora} >= 19 %if 0%{?fedora} >= 19
BuildRequires: rubypick BuildRequires: rubypick
%endif %endif
# Check for Ruby library directory
%if "%{?ruby_libarchdir}" != "" %if "%{?ruby_libarchdir}" != ""
%define ruby_arch %{?ruby_libarchdir} %define ruby_arch %{?ruby_libarchdir}
%else %else
%if "%{?rb_archdir}" != ""
%define ruby_arch %{?rb_archdir}
%else
%{!?ruby_arch: %define ruby_arch %(ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]')} %{!?ruby_arch: %define ruby_arch %(ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]')}
%endif %endif
%endif
%if "%{?ruby_libdir}" != "" %if "%{?ruby_libdir}" != ""
%define ruby_rubylibdir %{?ruby_libdir} %define ruby_rubylibdir %{?ruby_libdir}
%else %else
%if "%{?rb_libdir}" != ""
%define ruby_rubylibdir %{?rb_libdir}
%else
%{!?ruby_rubylibdir: %define ruby_rubylibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')} %{!?ruby_rubylibdir: %define ruby_rubylibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')}
%endif %endif
%endif
# Ruby 1.9 includes are located in strance directories ... (taken from ruby 1.9 spec file) # Ruby 1.9 includes are located in strance directories ... (taken from ruby 1.9 spec file)
%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/;s/armv.*/arm/') %global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/;s/armv.*/arm/')

Loading…
Cancel
Save