Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046459
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: 1.100.2
Release: alt1.1

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

Url: http://openbabel.sourceforge.net
Source: %name-%version.tar.gz

%define libname lib%name

# Automatically added by buildreq on Mon Jun 30 2003

BuildRequires: gcc-c++ libstdc++-devel

Summary(ru_RU.KOI8-R): Конвертор биохимических форматов данных
Summary(uk_UA.KOI8-U): Конвертор б╕ох╕м╕чних формат╕в даних

%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.KOI8-R
Open Babel -- продолжение проекта Babel как кросплатформенного инструмента
для конвертирования многочисленных форматов данных, используемых в
молекулярном моделировании и вычислительной химии.

%description -l uk_UA.KOI8-U
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

%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.

%prep
%setup -q
%configure --enable-shared=yes

%build
%make_build

%install
%make install DESTDIR=%buildroot

#install includes, remove "math" subdirectory

%__mkdir_p %buildroot%_includedir/%name
%__subst 's/math\/vector3.h/vector3.h/g' src/*.h
%__subst 's/math\/matrix3x3.h/matrix3x3.h/g' src/*.h
%__subst 's/math\/vector3.h/vector3.h/g' src/math/*.h
%__subst 's/math\/matrix3x3.h/matrix3x3.h/g' src/math/*.h

# cooker hack

%__cp src/*.h %buildroot%_includedir/%name
%__cp src/math/*.h %buildroot%_includedir/%name

%files
%doc AUTHORS ChangeLog README THANKS
%doc doc/FAQ* doc/Migration*
%doc doc/README* doc/babel*.inc doc/dioxin.*
%_bindir/*
%_man1dir/*
%_datadir/%name

%files -n %libname
%_libdir/*.so.*

%files -n %libname-devel
%_includedir/%name/*.h
%_libdir/*.so
%_libdir/pkgconfig/*.pc

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

%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