]> git.pld-linux.org Git - packages/openbabel.git/commitdiff
- fix building and packaging ruby auto/th/openbabel-2.3.1-3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 12 Jun 2013 17:11:38 +0000 (19:11 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 12 Jun 2013 17:11:38 +0000 (19:11 +0200)
- rel 3

openbabel.spec
ruby-gcc-no-option.patch [new file with mode: 0644]

index f95aec69ddb207c0282fc8106b214083fd794735..1932473f7db2e35eee2c66614d92474145788cf5 100644 (file)
@@ -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 (file)
index 0000000..5d241d7
--- /dev/null
@@ -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
This page took 0.110836 seconds and 4 git commands to generate.