-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchemesis-simulator.spec
68 lines (57 loc) · 1.58 KB
/
chemesis-simulator.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%global realname chemesis
%global instdir %{_datadir}/%{name}
Name: %{realname}-simulator
Summary: A simulation platform for biochemical reactions
Version: 2.4
Release: 4%{?dist}
Url: http://krasnow1.gmu.edu/CENlab/software.html
Source0: http://krasnow1.gmu.edu/CENlab/software/chemesis%{version}.tgz
License: GPLv2.1+ and LGPLv2.1+
BuildRequires: bison flex flex-devel
BuildRequires: ncurses-devel
BuildRequires: libX11-devel libXt-devel libXext-devel libXmu-devel
BuildRequires: netcdf-devel
BuildRequires: genesis-simulator-devel
%description
Chemesis is a library of biochemical reaction objects for modeling calcium
concentration. It is an extension of the genesis simulator.
%ifarch x86_64
%global extraflags -DLONGWORDS
%endif
%prep
%setup -q -n %{realname}%{version}
cat >>Makefile <<EOF
MACHINE=Linux
OS=BSD
XLIB=%{_libdir}
CC=gcc
CPP=cpp -P
CFLAGS=-O2 -D__NO_MATH_INLINES %{?extraflags}
LD=ld
RANLIB=ranlib
AR=ar
YACC=bison -y
LEX=flex -l
LEXLIB=-lfl
LIBS += \$(LEXLIB) -lm -lnetcdf
TERMCAP=-lncurses
TERMOPT=-DTERMIO -DDONT_USE_SIGIO
EOF
make clean
rm -f chemesis
%build
make GENESIS_LIB=%{_libdir}/genesis/lib \
GENESIS_INCLUDE=-I%{_includedir}/genesis \
SIMLIB='$(GENESIS_LIB)' \
NETCDFOBJ='$(GENESIS_LIB)/netcdflib.o' \
SIMSRC='$(SIMLIB)'
%install
install -D chemesis %{buildroot}%{_bindir}/chemesis
mkdir -p %{buildroot}%{_datadir}/chemesis
cp -pr Scripts %{buildroot}%{_datadir}/chemesis/
cp %{_docdir}/genesis-simulator-devel*/COPYRIGHT .
%files
%{_bindir}/chemesis
%{_datadir}/chemesis
%doc COPYRIGHT