Bug #1560: Always save OPTS_CC/OPTS_CXX from configure for later charmc usage
[charm.git] / charm.spec
blob8e0fb4ddae042d5c9cd81b4a22439d14bfcdf7b0
2 # spec file for building charm rpm for redhat.
4 Summary: Charm++
6 %define buildsmp 0
7 %define charm_options %{nil}
9 %if %{buildsmp}
10 Name: Charm-smp
11 %define charm_options %{charm_option} smp
12 %else
13 Name: Charm
14 %endif
16 Version: 5.9
17 Release: 12
18 Copyright: UIUC Academic/Non-commercial
19 Group: Applications/System
20 BuildRoot: /var/tmp/%{name}-root
21 Source: http://charm.cs.illinois.edu/distrib/Charm-%{version}-%{release}.tar.bz2
22 URL: http://charm.cs.illinois.edu
23 Vendor: PPL <charm@cs.illinois.edu>
25 %description
26 Charm++ RPM for Linux
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-x86_64 %{charm_options} --with-production
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
40 %files
41 /usr/local/%{name}/*
42 %doc README LICENSE CHANGES README.cygwin README.win32