File gromacs.spec of Package gromacs
#
# spec file for package gromacs (Version 3.3.1)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: gromacs
BuildRequires: fftw3-devel xorg-x11-devel
Version: 3.3.1
Release: 166
Summary: Molecular Dynamics Package
Url: http://www.gromacs.org
License: GPL v2 or later
Group: Productivity/Scientific/Chemistry
AutoReqProv: on
Source0: gromacs-%{version}.tar.bz2
Patch: gromacs-%{version}.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GROMACS is a versatile and extremely well optimized package to perform
molecular dynamics computer simulations and subsequent trajectory
analysis. It is developed for biomolecules like proteins, but the
extremely high performance means it is used also in several other field
like polymer chemistry and solid state physics. This version has the
dynamic libs and executables; to hack new utility programs you also
need the headers and static libs in gromacs-dev. Linux kernel 2.4 or
later is STRONGLY recommended on Pentium III and later processors since
GROMACS then can use assembly loops with SSE instructions.
Authors:
--------
David van der Spoel <spoel@gromacs.org>
Berk Hess <hess@gromacs.org>
Erik Lindahl <lindahl@gromacs.org>
%package devel
License: GPL v2 or later
Summary: Molecular dynamics package
Group: Productivity/Scientific/Chemistry
Requires: %{name} = %{version} fftw3-devel glibc-devel xorg-x11-devel
%description devel
GROMACS is a versatile and extremely well optimized package to perform
molecular dynamics computer simulations and subsequent trajectory
analysis. It is developed for biomolecules like proteins, but the
extremely high performance means it is used also in several other field
like polymer chemistry and solid state physics. This version has the
dynamic libs and executables; to hack new utility programs you also
need the headers and static libs in gromacs-dev. Linux kernel 2.4 or
later is STRONGLY recommended on Pentium III and later processors since
GROMACS then can use assembly loops with SSE instructions.
Authors:
--------
David van der Spoel <spoel@gromacs.org>
Berk Hess <hess@gromacs.org>
Erik Lindahl <lindahl@gromacs.org>
%prep
%setup -q
%patch
%build
autoreconf --force --install
%{?suse_update_config:%{suse_update_config -f}}
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --disable-static --with-pic --enable-shared --without-motif-libraries
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=${RPM_BUILD_ROOT} install
mv ${RPM_BUILD_ROOT}/usr/share/man/man1/disco.1 ${RPM_BUILD_ROOT}/usr/share/man/man1/g_disco.1
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%dir %{_datadir}/gromacs
%{_datadir}/gromacs/top
%{_datadir}/gromacs/tutor
%docdir %{_datadir}/gromacs/html
%{_datadir}/gromacs/html/
%{_mandir}/man1/*
%{_libdir}/libgmx.so.*
%{_libdir}/libgmxana.so.*
%{_libdir}/libmd.so.*
%files devel
%defattr(644,root,root,755)
%{_datadir}/gromacs/template
%{_libdir}/*.so
%dir %{_includedir}/gromacs
%{_includedir}/gromacs/*
%changelog