%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %global realname genesis %global instdir %{_datadir}/%{name} Name: %{realname}-simulator Summary: A general purpose simulation platform Version: 2.3 Release: 2%{?dist} Url: http://www.genesis-sim.org/GENESIS/ Source0: http://www.genesis-sim.org/GENESIS/genesis-ftp/%{realname}-%{version}-src.tar.bz2 License: GPLv2.1+ and LGPLv2.1+ BuildRequires: bison flex flex-devel BuildRequires: ncurses-devel BuildRequires: libX11-devel libXt-devel BuildRequires: netcdf-devel %description GENESIS (short for GEneral NEural SImulation System) is a general purpose simulation platform that was developed to support the simulation of neural systems ranging from subcellular components and biochemical reactions to complex models of single neurons, simulations of large networks, and systems-level models. As such, GENESIS, and its version for parallel and networked computers (PGENESIS) was the first broad scale modeling system in computational biology to encourage modelers to develop and share model features and components. Most current GENESIS applications involve realistic simulations of biological neural systems. Although the software can also model more abstract networks, other simulators are more suitable for backpropagation and similar connectionist modeling. %package devel Summary: Static library and tools for building genesis extensions %description devel %{_summary}. %package docs BuildArch: noarch Summary: Documentation for %{name} %description docs %{_summary}. %ifarch x86_64 %global extraflags -DLONGWORDS %endif %prep %setup -q -n %{realname}-%{version}/%{realname} rm -rf ./src/diskio/interface/netcdf/netcdf-3.4 sed -i 's/netcdflib.o: netcdflib/netcdflib.o:/' ./src/diskio/interface/netcdf/Makefile cp src/Makefile.dist src/Makefile cat >>src/Makefile <