Summary(pl.UTF-8): Międzyplatformowy program chemiczny i biblioteka do konwersji formatów plików
Name: openbabel
Version: 2.3.1
-Release: 2
+Release: 3
License: GPL v2
Group: Libraries
Source0: http://downloads.sourceforge.net/openbabel/%{name}-%{version}.tar.gz
# Source0-md5: 1f029b0add12a3b55582dc2c832b04f8
Patch0: %{name}-prefix.patch
+Patch1: ruby-gcc-no-option.patch
URL: http://openbabel.sourceforge.net/
BuildRequires: cairo-devel
BuildRequires: cmake >= 2.6.0
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%cmake . \
rm -rf $RPM_BUILD_ROOT
%{__make} install \
+ RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarchdir} \
DESTDIR=$RPM_BUILD_ROOT
%py_postclean
%files -n ruby-openbabel
%defattr(644,root,root,755)
-%attr(755,root,root) %{ruby_sitearchdir}/openbabel.so
+%attr(755,root,root) %{ruby_vendorarchdir}/openbabel.so
--- /dev/null
+--- openbabel-2.3.1/scripts/ruby/extconf.rb~ 2011-01-11 15:53:32.000000000 +0100
++++ openbabel-2.3.1/scripts/ruby/extconf.rb 2013-06-12 18:59:40.032654427 +0200
+@@ -36,7 +36,7 @@
+ end
+
+ if have_library('openbabel')
+- with_ldflags("#$LDFLAGS -dynamic -flat_namespace") do #Enables cc to handle linking better.
++ with_ldflags("#$LDFLAGS -dynamic") do #Enables cc to handle linking better.
+ create_makefile('openbabel')
+ end
+ else