commit 20f7e0a060c623c13919b598c3b34a191dad0851
Author: Jan Rękorajski <[email protected]>
Date:   Wed Jun 12 19:11:38 2013 +0200

    - fix building and packaging ruby
    - rel 3

 openbabel.spec           |  7 +++++--
 ruby-gcc-no-option.patch | 11 +++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/openbabel.spec b/openbabel.spec
index f95aec6..1932473 100644
--- a/openbabel.spec
+++ b/openbabel.spec
@@ -4,12 +4,13 @@ Summary:      A cross-platform chemistry program and library 
designed to convert file
 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
@@ -105,6 +106,7 @@ Wiązanie języka Ruby do biblioteki OpenBabel.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %cmake . \
@@ -120,6 +122,7 @@ Wiązanie języka Ruby do biblioteki OpenBabel.
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
+       RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarchdir} \
        DESTDIR=$RPM_BUILD_ROOT
 
 %py_postclean
@@ -201,4 +204,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
diff --git a/ruby-gcc-no-option.patch b/ruby-gcc-no-option.patch
new file mode 100644
index 0000000..5d241d7
--- /dev/null
+++ b/ruby-gcc-no-option.patch
@@ -0,0 +1,11 @@
+--- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openbabel.git/commitdiff/20f7e0a060c623c13919b598c3b34a191dad0851

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to