Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37402643
en ru br
ALT Linux repos
S:3.1.1-alt3
5.0: 2.2.0-alt1
4.1: 2.2.0-alt0.M41.1
4.0: 2.0.2-alt1
3.0: 1.100.2-alt1.1

Group :: Sciences/Chemistry
RPM: openbabel

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: openbabel
Version: 2.4.1
Release: alt1

Summary: Chemistry software file format converter
License: GPL
Group: Sciences/Chemistry

Url: http://openbabel.sourceforge.net
Source0: http://dl.sf.net/%name/%name-%version.tar.gz
Source1: %name.watch
Packager: Michael Shigorin <mike at altlinux.org>

# Automatically added by buildreq on Sun Apr 13 2014

# optimized out: cmake-modules fontconfig libcloog-isl4 libgdk-pixbuf libstdc++-devel libwayland-client libwayland-server pkg-config python-base zlib-devel
BuildRequires: cmake eigen2 gcc-c++ libcairo-devel libwxGTK-devel libxml2-devel python-devel xml-utils

BuildPreReq: python-devel eigen2

Summary(ru_RU.UTF-8): Конвертор биохимических форматов данных
Summary(uk_UA.UTF-8): Конвертор біохімічних форматів даних

%description
Open Babel is a project designed to pick up where Babel left off,
as a cross-platform program and library designed to interconvert
between many file formats used in molecular modeling and computational
chemistry.

%description -l ru_RU.UTF-8
Open Babel - продолжение проекта Babel как кросплатформенного
инструмента для конвертирования многочисленных форматов данных,
используемых в молекулярном моделировании и вычислительной химии.

%description -l uk_UA.UTF-8
Open Babel - продовження проекту Babel як кросплатформенного
інструменту для конвертування численних форматів даних, що
використовуються у молекулярному моделюванні та обчислювальній хімії.

%package -n lib%name
Summary: Shared libraries for programs which will use Open Babel
Group: System/Libraries

%package -n lib%name-devel
Summary: Development tools for programs which will use the lib%name library
Group: Development/C++
Requires: lib%name = %version-%release

%package -n python-module-%name
Summary: Python bindings for Open Babel
Group: Development/Python
Requires: lib%name = %version-%release

%if_enabled static
%package -n lib%name-devel-static
Summary: Static development files for lib%name
Group: Development/C++
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
Static development files for lib%name
%endif

%description -n lib%name
Shared libraries for programs which will use Open Babel

%description -n lib%name-devel
The lib%name-devel package includes the header files and static libraries
necessary for developing programs using the lib%name library.

If you are going to develop programs which will use this library
you should install lib%name-devel.  You'll also need to have the
lib%name package installed.

%description -n python-module-%name
Python bindings for Open Babel.

%prep
%setup
echo PYTHON_BINDINGS:BOOL=ON >CMakeCache.txt

%build
%add_optflags -I%_includedir/eigen2
%cmake_insource
%make_build VERBOSE=1

%install
%makeinstall_std

%if_enabled static
%else
rm -f %buildroot%_libdir/*.a
rm -f %buildroot%_libdir/%name/{%version/,}*.{a,la}
%endif

%files
%doc AUTHORS README* THANKS
%doc doc/FAQ* doc/README* doc/dioxin.*
%_bindir/*
%_man1dir/*
%_datadir/%name

%files -n lib%name
%_libdir/*.so.*
%dir %_libdir/%name/
%dir %_libdir/%name/%version/
%_libdir/%name/%version/*.so

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%_libdir/cmake/openbabel2

%files -n python-module-%name
%python_sitelibdir/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

# TODO:

# - BR: eigen3 (FTBFS as of 20140413)

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin