---- openbabel-2.3.0/CMakeLists.txt.orig 2010-10-23 00:05:07.000000000 +0200
-+++ openbabel-2.3.0/CMakeLists.txt 2011-01-24 17:39:04.922359941 +0100
+--- openbabel-2.3.1/CMakeLists.txt.orig 2011-09-15 21:45:59.000000000 +0200
++++ openbabel-2.3.1/CMakeLists.txt 2011-10-21 17:52:35.278016550 +0200
@@ -45,17 +45,17 @@
CACHE PATH "Install dir for binaries")
set(LIB_SUFFIX "" CACHE STRING "Suffix of the directory name, e.g. 64 for lib64")
CACHE PATH "Install dir for libraries")
if(MSVC)
set(OB_PLUGIN_INSTALL_DIR "${BIN_INSTALL_DIR}"
-@@ -321,9 +321,9 @@
+@@ -351,9 +351,9 @@
# Some rpath handling for Linux and Mac
if(UNIX AND BUILD_SHARED)
if(APPLE)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
-@@ -450,7 +450,7 @@
+@@ -487,7 +487,7 @@
"${openbabel_BINARY_DIR}/OpenBabel2ConfigVersion.cmake" @ONLY)
# Now to configure the installed config file.
--set(OB_CONFIG_DIR "${LIB_INSTALL_DIR}/openbabel")
-+set(OB_CONFIG_DIR "${OBLIB_INSTALL_DIR}/openbabel")
+-set(OB_CONFIG_DIR "${LIB_INSTALL_DIR}/cmake/openbabel2")
++set(OB_CONFIG_DIR "${OBLIB_INSTALL_DIR}/cmake/openbabel2")
set(OpenBabel2_INCLUDE_DIRS "\${OpenBabel2_INSTALL_PREFIX}/${OB_INCLUDE_DIRS}")
set(OB_EXPORTS_FILE
"\${OpenBabel2_INSTALL_PREFIX}/${OB_CONFIG_DIR}/OpenBabel2_EXPORTS.cmake")
+++ /dev/null
---- openbabel-2.3.0/scripts/CMakeLists.txt.orig 2010-10-25 19:37:42.000000000 +0200
-+++ openbabel-2.3.0/scripts/CMakeLists.txt 2011-01-24 17:32:52.634356589 +0100
-@@ -84,12 +84,12 @@
- VERBATIM)
-
- if (PYTHON_PREFIX)
-- install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${openbabel_SOURCE_DIR}/scripts/python/setup.py install --prefix=${PYTHON_PREFIX} WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts)")
-+ install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${openbabel_SOURCE_DIR}/scripts/python/setup.py install --prefix=${PYTHON_PREFIX} --root=\$ENV{DESTDIR} --optimize=2 WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts)")
- else (PYTHON_PREFIX)
- if (${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
-- install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${openbabel_SOURCE_DIR}/scripts/python/setup.py install WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts)")
-+ install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${openbabel_SOURCE_DIR}/scripts/python/setup.py install --root=\$ENV{DESTDIR} --optimize=2 WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts)")
- else (${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
-- install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${openbabel_SOURCE_DIR}/scripts/python/setup.py install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts)")
-+ install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${openbabel_SOURCE_DIR}/scripts/python/setup.py install --prefix=${CMAKE_INSTALL_PREFIX} --root=\$ENV{DESTDIR} --optimize=2 WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts)")
- endif (${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
- endif (PYTHON_PREFIX)
-
# TODO:
-# - install+package ruby, java, csharp bindings
+# - install+package java, csharp bindings
Summary: A cross-platform chemistry program and library designed to convert file formats
Summary(pl.UTF-8): Międzyplatformowy program chemiczny i biblioteka do konwersji formatów plików
Name: openbabel
-Version: 2.3.0
-Release: 2
+Version: 2.3.1
+Release: 1
License: GPL v2
Group: Libraries
Source0: http://downloads.sourceforge.net/openbabel/%{name}-%{version}.tar.gz
-# Source0-md5: effda01ed4a31d18d8e3d08191799608
-Patch0: %{name}-ruby.patch
-Patch1: %{name}-python.patch
-Patch2: %{name}-prefix.patch
-Patch3: %{name}-perl.patch
+# Source0-md5: 1f029b0add12a3b55582dc2c832b04f8
+Patch0: %{name}-prefix.patch
URL: http://openbabel.sourceforge.net/
+BuildRequires: cairo-devel
BuildRequires: cmake >= 2.6.0
BuildRequires: eigen >= 2
BuildRequires: libstdc++-devel
BuildRequires: rpm-perlprov
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.577
+BuildRequires: ruby-devel
BuildRequires: wxGTK2-devel
BuildRequires: zlib-devel
#BuildRequires: jdk
#BuildRequires: mono-csharp
-#BuildRequires: ruby-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%description -n python-openbabel -l pl.UTF-8
Wiązanie Pythona do biblioteki OpenBabel.
+%package -n ruby-openbabel
+Summary: Ruby binding for OpenBabel
+Summary(pl.UTF-8): Wiązanie języka Ruby do biblioteki OpenBabel
+Group: Development/Languages
+Requires: %{name} = %{version}-%{release}
+
+%description -n ruby-openbabel
+Ruby binding for OpenBabel.
+
+%description -n ruby-openbabel -l pl.UTF-8
+Wiązanie języka Ruby do biblioteki OpenBabel.
+
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
%build
%cmake . \
-DCSHARP_EXECUTABLE=/usr/bin/mcs \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
+ -DOBPERL_INSTALLDIRS="vendor" \
-DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config
%{__make}
%attr(755,root,root) %{_libdir}/openbabel/%{version}/*.so
%{_datadir}/openbabel
%{_mandir}/man1/babel.1*
+%{_mandir}/man1/obabel.1*
%{_mandir}/man1/obchiral.1*
%{_mandir}/man1/obconformer.1*
%{_mandir}/man1/obenergy.1*
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libinchi.so
%attr(755,root,root) %{_libdir}/libopenbabel.so
-%{_libdir}/openbabel/OpenBabel2*.cmake
%{_includedir}/inchi
%{_includedir}/openbabel-2.0
%{_pkgconfigdir}/openbabel-2.0.pc
+%{_libdir}/cmake/openbabel2
%files gui
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/OBGUI
+%attr(755,root,root) %{_bindir}/obgui
+%{_mandir}/man1/OBGUI.1*
%files -n perl-Chemistry-OpenBabel
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/_openbabel.so
%{py_sitedir}/openbabel.py[co]
%{py_sitedir}/pybel.py[co]
-%{py_sitedir}/openbabel-1.6-py*.egg-info
+%{py_sitedir}/openbabel-1.7-py*.egg-info
+
+%files -n ruby-openbabel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{ruby_sitearchdir}/openbabel.so