diff --git a/marisa.spec b/marisa.spec index 0669772..84fc31f 100644 --- a/marisa.spec +++ b/marisa.spec @@ -84,16 +84,19 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} +# build Perl bindings pushd bindings/perl %{__perl} Makefile.PL INC="-I%{_builddir}/%{name}-%{version}/lib" LIBS="-L%{_builddir}/%{name}-%{version}/lib/.libs" make %{?_smp_mflags} popd +# build Python bindings pushd bindings/python %{__python} setup.py build_ext --include-dirs="%{_builddir}/%{name}-%{version}/lib" --library-dirs="%{_builddir}/%{name}-%{version}/lib/.libs" %{__python} setup.py build popd +# build Ruby bindings pushd bindings/ruby ruby extconf.rb --with-opt-include="%{_builddir}/%{name}-%{version}/lib" --with-opt-lib="%{_builddir}/%{name}-%{version}/lib/.libs" make @@ -114,7 +117,7 @@ popd # install Ruby bindings pushd bindings/ruby -%make_install INSTALL="install -p" +%make_install INSTALL="install -p" hdrdir=%{_includedir} rubyhdrdir=%{_includedir} popd find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'