File openbabel.spec of Package openbabel
#
# spec file for package openbabel (Version 2.2.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: openbabel
Version: 2.2.0
Release: 4
License: GPL v2 only
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ libxml2-devel 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
%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: GPL v2 only
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: GPL v2 only
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
%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
%dir /usr/include/inchi
/usr/include/inchi/inchi_api.h
%dir %{_includedir}/openbabel-2.0
%{_includedir}/openbabel-2.0/openbabel/
%{_libdir}/*.so
%{_libdir}/*.la
%changelog
* Tue Jul 22 2008 dmueller@suse.de
- cripple tarball to remove binary dll's we don't need (bnc#411171)
* Sat Jul 19 2008 dmueller@suse.de
- various fixes, fix library package name
* Wed Jul 09 2008 dmueller@suse.de
- review last change
* Wed Jul 09 2008 cniehaus@kde.org
- update to OpenBabel 2.2.0:
* http://openbabel.org/wiki/Open_Babel_2.2.0
* Sun Oct 21 2007 dmueller@suse.de
- gcc 4.3 fixes
* Tue Oct 09 2007 dmueller@suse.de
- Initial package (2.1.1)