[openbabel] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

Vít Ondruch vondruch at fedoraproject.org
Mon Mar 25 11:14:21 UTC 2013


commit e25f3a7a8320a8796582f044c2f4d38e8a818cbb
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Mar 22 14:02:45 2013 +0100

    Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

 openbabel.spec |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/openbabel.spec b/openbabel.spec
index a1d6941..781e1e3 100644
--- a/openbabel.spec
+++ b/openbabel.spec
@@ -2,7 +2,6 @@
 %define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib)
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
 
 %define beta_ver %{nil}
 %define beta_str %{nil}
@@ -10,7 +9,7 @@
 
 Name: openbabel
 Version: 2.3.1
-Release: 7%{beta_ver}%{?dist}
+Release: 8%{beta_ver}%{?dist}
 Summary: Chemistry software file format converter
 License: GPLv2
 Group: Applications/File
@@ -121,10 +120,10 @@ Python wrapper for the Open Babel library.
 %package -n ruby-%{name}
 Summary: Ruby wrapper for the Open Babel library
 Group: Development/Libraries
-%if 0%{?fedora} >= 17
-Requires: ruby(abi) = 1.9.1
+%if 0%{?fedora} >= 19
+Requires: ruby(release)
 %else
-Requires: ruby(abi) = 1.8
+Requires: ruby(abi) = 1.9.1
 %endif
 Requires: %{name} = %{version}-%{release}
 
@@ -137,9 +136,7 @@ Ruby wrapper for the Open Babel library.
 %patch4 -p1 -b .plugindir
 %patch5 -p1 -b .gcc47
 %patch6 -p1 -b .noswig_ruby
-%if 0%{?fedora} >= 17
 %patch7 -p1 -b .ruby_vendor
-%endif
 chmod 644 src/formats/{fchk,genbank,mmcif}format.cpp
 chmod 644 src/math/align.cpp
 chmod 644 include/openbabel/{graphsym.h,math/align.h}
@@ -158,8 +155,7 @@ make VERBOSE=1 %{?_smp_mflags}
 
 %install
 %{__rm} -rf $RPM_BUILD_ROOT
-touch scripts/CMakeLists.txt
-make VERBOSE=1 DESTDIR=$RPM_BUILD_ROOT install
+make VERBOSE=1 DESTDIR=$RPM_BUILD_ROOT ruby_headers= install
 
 rm $RPM_BUILD_ROOT%{_libdir}/cmake/openbabel2/*.cmake
 rm $RPM_BUILD_ROOT%{_libdir}/perl5/perllocal.pod
@@ -225,13 +221,12 @@ install -Dpm644 babel.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/ba
 
 %files -n ruby-%{name}
 %defattr(-, root, root, -)
-%if 0%{?fedora} >= 17
 %{ruby_vendorarchdir}/openbabel.so
-%else
-%{ruby_sitearch}/openbabel.so
-%endif
 
 %changelog
+* Fri Mar 22 2013 Vít Ondruch <vondruch at redhat.com> - 2.3.1-8
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.1-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list