File libghemical5.spec of Package libghemical
#
# spec file for package libghemical5
#
# Copyright (c) 2012 Lars Vogdt
#
# 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 libver 5
%define realname libghemical
Name: libghemical%{libver}
Version: 3.0.0
Release: 1
License: GPL-2.0+
Summary: The MM and QM calculations backend
Url: http://www.uku.fi/~thassine/ghemical/
Group: Productivity/Scientific/Chemistry
Source0: %{realname}-%{version}.tar.bz2
Source1: libghemical%{libver}-rpmlintrc
Patch0: libghemical-3.0.0-no-return-in-nonvoid-function.patch
BuildRequires: Mesa-devel
BuildRequires: autogen
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: libmopac7-1-devel
BuildRequires: libopenbabel-devel
BuildRequires: pkg-config
Recommends: libghemical-data = %version
Obsoletes: %{realname} < 3.0.0
Provides: %{realname} = %version
BuildRequires: fdupes
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Ghemical is a computational chemistry software package released under the
GNU GPL.
This package contains the backend stuff that is needed to run Ghemical.
%package devel
Summary: Development files for libghemical
Group: Development/Languages/Other
Requires: %{name} = %{version}
Requires: libmopac7-1-devel
Obsoletes: %{realname}-devel < %version
Provides: %{realname}-devel = %version
%description devel
Ghemical is a computational chemistry software package released under the
GNU GPL.
This package contains development files to develop applications using
libghemical.
%package -n libghemical-data
Summary: Data files for libghemical
Group: Productivity/Scientific/Chemistry
Recommends: %name = %version
%description -n libghemical-data
This package contains the parameter files for libghemicals semi-empirical
methods.
%lang_package
%prep
%setup -q -n %realname-%version
%patch0 -p1
%build
%configure --disable-static \
--enable-mopac7 \
--disable-sctest \
--enable-openbabel
#--enable-mpqc \
make %{?_smp_mflags}
%install
%makeinstall
%fdupes -s %{buildroot}
%find_lang libghemical
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING TODO
%{_libdir}/libghemical.so.*
%files -n libghemical-data
%defattr (-, root, root)
%{_datadir}/libghemical
%files devel
%defattr (-, root, root)
%{_includedir}/ghemical
%{_libdir}/libghemical.so
%{_libdir}/libghemical.la
%{_libdir}/pkgconfig/libghemical.pc
%if 0%{?suse_version} || 0%{?sles_version}
%files lang -f libghemical.lang
%defattr(-,root,root,-)
%endif
%changelog