File openbabel.spec of Package openbabel
#
# spec file for package openbabel (Version 2.2.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: openbabel
Version: 2.2.3
Release: 2
License: GPLv2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ libxml2-devel pkg-config swig zlib-devel
Group: Development/Libraries/C and C++
Summary: Open Babel - The Open Source Chemistry Toolbox
Url: http://openbabel.sourceforge.net/
Source: %name-%version-crippled.tar.bz2
Source99: cripple_source.sh
Patch0: build-checks.diff
Patch1: openbabel-2.2.3-no-build-date.patch
%description
Open Babel is a chemical toolbox designed to speak the many languages
of chemical data. It's an open, collaborative project allowing anyone
to search, convert, analyze, or store data from molecular modeling,
chemistry, solid-state materials, biochemistry, or related areas.
Authors:
--------
Michael Banck
Geoff Hutchison
Chris Morley
%package -n libopenbabel3
License: GPLv2
Summary: Open Babel - The Open Source Chemistry Toolbox
Group: Development/Libraries/C and C++
%description -n libopenbabel3
Open Babel is a chemical toolbox designed to speak the many languages
of chemical data. It's an open, collaborative project allowing anyone
to search, convert, analyze, or store data from molecular modeling,
chemistry, solid-state materials, biochemistry, or related areas.
Authors:
--------
Michael Banck
Geoff Hutchison
Chris Morley
%package -n libopenbabel-devel
License: GPLv2
Summary: Open Babel - The Open Source Chemistry Toolbox
Group: Development/Libraries/C and C++
Requires: libopenbabel3 = %version
Requires: zlib-devel
%description -n libopenbabel-devel
Open Babel is a chemical toolbox designed to speak the many languages
of chemical data. It's an open, collaborative project allowing anyone
to search, convert, analyze, or store data from molecular modeling,
chemistry, solid-state materials, biochemistry, or related areas.
Authors:
--------
Michael Banck
Geoff Hutchison
Chris Morley
%prep
%setup
%patch0
%patch1
%build
%configure
%{__make} %{?jobs:-j %jobs}
%install
%makeinstall
%post -n libopenbabel3 -p /sbin/ldconfig
%postun -n libopenbabel3 -p /sbin/ldconfig
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/openbabel
%{_bindir}/roundtrip
/usr/share/openbabel
/usr/share/man/man1/*
/usr/bin/ob*
/usr/bin/babel
%files -n libopenbabel3
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files -n libopenbabel-devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/openbabel-2.0.pc
/usr/include/inchi102
%dir %{_includedir}/openbabel-2.0
%{_includedir}/openbabel-2.0/openbabel/
%{_libdir}/*.so
%{_libdir}/*.la
%changelog