]> git.pld-linux.org Git - packages/ecasound.git/commitdiff
- fixed ruby subpackage building master
authorAdam Osuchowski <adwol@pld-linux.org>
Sat, 25 Feb 2017 23:01:33 +0000 (00:01 +0100)
committerAdam Osuchowski <adwol@pld-linux.org>
Sat, 25 Feb 2017 23:01:33 +0000 (00:01 +0100)
ecasound-ruby.patch [new file with mode: 0644]
ecasound.spec

diff --git a/ecasound-ruby.patch b/ecasound-ruby.patch
new file mode 100644 (file)
index 0000000..4c1ff0f
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ruN ecasound-2.9.1.orig/configure.ac ecasound-2.9.1/configure.ac
+--- ecasound-2.9.1.orig/configure.ac   2014-01-03 11:34:07.000000000 +0100
++++ ecasound-2.9.1/configure.ac        2017-02-25 23:46:30.167878523 +0100
+@@ -749,7 +749,7 @@
+   rubyecasound_support=no
+   ECA_S_RUBY_SITEDIR=""
+ else
+-  ECA_S_RUBY_SITEDIR="`ruby -e 'require "rbconfig"; include Config; print CONFIG[["sitedir"]] + "/" + CONFIG[["MAJOR"]] + "." + CONFIG[["MINOR"]]'`"
++  ECA_S_RUBY_SITEDIR="`ruby -rrbconfig -e 'print RbConfig::CONFIG[["vendordir"]]'`"
+ fi
+ AC_SUBST(ECA_S_RUBY_SITEDIR)
index 0373a2c1383c0e44fb82a499a550b9793ec6c0ef..9478ff23e1e3fc472632d49868d5be11493394b9 100644 (file)
@@ -16,6 +16,7 @@ Source0:      http://ecasound.seul.org/download/%{name}-%{version}.tar.gz
 # Source0-md5: 13c7be1e4eddc0bbf3792dc17777e465
 Patch0:                %{name}-link.patch
 Patch1:                %{name}-acam.patch
+Patch2:                %{name}-ruby.patch
 URL:           http://www.eca.cx/ecasound/
 %{?with_alsa:BuildRequires:    alsa-lib-devel >= 0.9.0}
 %{?with_arts:BuildRequires:    arts-devel}
@@ -144,6 +145,7 @@ Moduł języka Ruby dla programu ecasound.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
@@ -166,6 +168,7 @@ CXXFLAGS="%{rpmcflags} -D_REENTRANT %{!?debug:-DNDEBUG}"
        --enable-shared \
        --enable-sys-readline \
        --enable-pyecasound \
+       %{?with_ruby:--enable-rubyecasound} \
        --with-largefile \
        --with-python-includes=%{py_incdir} \
        --with-python-modules=%{py_libdir}
@@ -236,5 +239,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with ruby}
 %files -n ruby-%{name}
 %defattr(644,root,root,755)
-%{ruby_sitelibdir}/ecasound.rb
+%{ruby_vendorlibdir}/ecasound.rb
 %endif
This page took 0.043655 seconds and 4 git commands to generate.