File liboglappth2.spec of Package liboglappth
#
# spec file for package liboglappth2
#
# 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/
#
Name: liboglappth2
Summary: The MM and QM calculations backend
Version: 1.0.0
Release: 1
License: GPL-2.0+
Url: http://www.bioinformatics.org/ghemical/ghemical/index.html
Group: Productivity/Scientific/Chemistry
Vendor: openSUSE-Education
Provides: liboglappth = %{version}-%{release}
BuildRequires: pkg-config
BuildRequires: Mesa-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
%if 0%{suse_version} > 1020
BuildRequires: fdupes
%endif
Source0: liboglappth-%{version}.tar.bz2
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 liboglappth
Group: Development/Languages/Other
Provides: liboglappth-devel = %{version}-%{release}
Requires: %{name} = %{version}
Requires: freeglut-devel
Requires: xorg-x11-devel
Requires: xorg-x11-libXext-devel
Requires: xorg-x11-libX11-devel
Requires: xorg-x11-libxcb-devel
Requires: xorg-x11-libXau-devel
Requires: glibc-devel
Requires: Mesa-devel
%description devel
Ghemical is a computational chemistry software package released under the
GNU GPL.
This package contains development files to develop applications using
liboglappth.
%prep
%setup -q -n liboglappth-%{version}
%build
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{suse_version} > 1020
%fdupes -s "%buildroot"
%endif
%clean
rm -rf "%buildroot"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING
%{_libdir}/liboglappth.so.*
%files devel
%defattr (-, root, root)
%{_includedir}/oglappth
%{_libdir}/liboglappth.so
%{_libdir}/liboglappth.la
%{_libdir}/pkgconfig/liboglappth.pc
%changelog