986ccb1a9cac2f9b7c9dabf963f57924c23dad75
[charm.git] / charm.spec
1 #
2 # spec file for building charm rpm for redhat.
3 #
4 Summary: Charm++
5
6 %define buildsmp 0
7 %define charm_options  %{nil}
8
9 %if %{buildsmp}
10 Name: Charm-smp
11 %define charm_options  %{charm_option} smp
12 %else
13 Name: Charm
14 %endif
15
16 Version: 5.9
17 Release: 12
18 Copyright: GPL
19 Group: Applications/System
20 BuildRoot: /var/tmp/%{name}-root
21 Source: http://charm.cs.uiuc.edu/distrib/Charm-%{version}-%{release}.tar.bz2
22 URL: http://charm.cs.uiuc.edu
23 Vendor: PPL <ppl@uiuc.edu>
24
25 %description
26 Charm++ RPM for Linux
27
28 %prep
29 %setup -n %{name}-%{version}-%{release}
30 bzip2 -dc  %{_sourcedir}/Charm-%{version}-%{release}.tar.bz2 | tar xvf -
31 %build
32 ./build AMPI net-linux %{charm_options} -O -DCMK_OPTIMIZE
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35 %install
36 mkdir -p $RPM_BUILD_ROOT
37 cd tmp; make DESTDIR=$RPM_BUILD_ROOT/usr/local/%{name} install
38 %post
39  
40 %files
41 /usr/local/%{name}/*
42 %doc README LICENSE CHANGES README.cygwin README.win32
43