1 %global repository https
://codeblue.umich.edu
/git
/hoomd
-blue
2 # The git refspec to build is specified by defining %{refspec}.
3 # The version number to tag the build with is %{version}.
4 # Both should be specified, as we cannot determine the version until we have checked out the code
5 # - if they are not speicified, then the most recent tag is built
6 %global version
%{?version}%{!?version:0.10.0}
7 %global refspec
%{?refspec}%{!?refspec:v0.10.0}
8 %global release
%{?release}%{!?release:0}
10 # the Red Hat convention is to put 64-bit libs in lib64
11 %global libsuffix %
(uname
-p |sed
-n 's
/.
*64$
/64/p'
)
12 %global libname lib%
(uname
-p |sed
-n 's
/.
*64$
/64/p'
)
13 %global python %
(which python
)
14 %global sitedir %
(%{python} -c "from distutils.sysconfig import get_python_lib
; print get_python_lib
(plat_specific
=True
)"
)
16 BuildRoot: %{_tmppath}/%{name}-root
17 Summary: Highly Optimized Object
-oriented Many
-particle Dynamics
-- Blue Edition
22 # sources will be retrieved with subversion
23 # Source: http://codeblue.umich.edu/hoomd-blue/downloads/0.10/hoomd-0.10.0.tar.bz2
24 URL: http
://codeblue.umich.edu
/hoomd
-blue
/
27 BuildRequires
: gcc
-c
++, boost
-devel
, zlib
-devel
, glibc
-devel
, python
-devel
28 Requires: python
>= 2.4, boost
>= 1.32
31 HOOMD
-blue stands
for Highly Optimized Object
-oriented Many
-particle Dynamics
-- Blue Edition. It performs general purpose particle dynamics simulations on a single workstation
, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.
33 Object
-oriented design patterns are used
in HOOMD
-blue so it versatile and expandable. Various types of potentials
, integration methods and file formats are currently supported
, and more are added with each release. The code is available and open
source, so anyone can write a plugin or change the
source to add additional functionality.
35 Simulations are configured and run using simple python scripts
, allowing complete control over the force field choice
, integrator
, all parameters
, how many
time steps are run
, etc... . The scripting system is designed to be as simple as possible to the non
-programmer.
37 HOOMD
-blue is a direct continuation of the project HOOMD
, originally developed at Ames Lab and Iowa State University
: http
://www.ameslab.gov
/hoomd. The HOOMD
-blue lead development effort is at the University of Michigan
, though the software has many contributors from around the world. The "blue" suffix is actually part of the acronym and stands
for Blue Edition
, a subtle hint to one of the University of Michigan school colors.
40 rm -rf $RPM_BUILD_DIR
/%{name}-%{version}
43 git clone
%{repository} .
47 git checkout
%{refspec}
53 cmake
-DCMAKE_INSTALL_PREFIX
=$RPM_BUILD_ROOT
/usr
-DLIB_SUFFIX
=%{libsuffix} -DENABLE_EMBED_CUDA=ON -DPYTHON_SITEDIR=$RPM_BUILD_ROOT/%{sitedir} -DPYTHON_EXECUTABLE=%{python}
56 cd $RPM_BUILD_DIR
/%{name}-%{version}
61 rm -rf $RPM_BUILD_ROOT
64 echo "
%{sitedir}/hoomd.so"
>> fluid
-file
-list
65 echo "
%{sitedir}/hoomd_plugins"
>> fluid
-file
-list
66 echo "
%{sitedir}/hoomd_script"
>> fluid
-file
-list
67 echo "
/usr
/%{libname}/hoomd"
>> fluid
-file
-list
71 rm -rf $RPM_BUILD_ROOT
77 %files -f fluid
-file
-list
81 /usr
/bin
/hoomd
-config.sh
83 /usr
/share
/icons
/hicolor
/48x48
/mimetypes
/application
-x
-hoomd.png
84 /usr
/share
/icons
/hicolor
/48x48
/apps
/hoomd.png
85 /usr
/share
/icons
/hicolor
/128x128
/mimetypes
/application
-x
-hoomd.png
86 /usr
/share
/icons
/hicolor
/128x128
/apps
/hoomd.png
87 /usr
/share
/icons
/hicolor
/32x32
/mimetypes
/application
-x
-hoomd.png
88 /usr
/share
/icons
/hicolor
/32x32
/apps
/hoomd.png
89 /usr
/share
/mime
/packages
/hoomd.xml
90 /usr
/share
/applications
/HOOMD.desktop