File libopenbabel3.spec of Package libopenbabel3

#
# 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/
#


%define oldname openbabel

Name:           libopenbabeli3
Version:        2.2.3
Release:        2
License:        GPLv2
BuildRoot:      %{_tmppath}/%{oldname}-%{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:         %oldname-%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.

This package contains only the library which is needed by other
program. You may need to install the openbabel package to get full
access to all components of Open Babel.



Authors:
--------
    Michael Banck
    Geoff Hutchison
    Chris Morley

%package -n libopenbabel3-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 libopenbabel3-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 -n %oldname-%version
%patch0
%patch1

%build
%configure
%{__make} %{?jobs:-j %jobs}

%install
%makeinstall
rm -rf $RPM_BUILD_ROOT/%{_libdir}/openbabel
rm -rf $RPM_BUILD_ROOT/%{_bindir}
rm -rf $RPM_BUILD_ROOT/%{_datadir}/man
rm -rf $RPM_BUILD_ROOT/%{_datadir}/openbabel

%post -p /sbin/ldconfig

%postun -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
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*

%files -n libopenbabel3-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
openSUSE Build Service is sponsored by