File stimfit.spec of Package stimfit

# spec file of package stimfit

%global version 0.16.git

Name:           stimfit
Summary:        Stimfit - A program for viewing and analyzing electrophysiological data
Version:        %{version}
Release:        0
URL:            http://www.stimfit.org
License:        LGPL-2.1+
Group:          Productivity/Scientific/Other
Source:         stimfit-%{version}.tar.gz

%if 0%{?centos}
BuildRequires: epel-release
BuildRequires: cmake3
BuildRequires: boost-devel
BuildRequires: python-rpm-macros
%else
BuildRequires: cmake
%endif

BuildRequires: gcc-c++ 
BuildRequires: python3-devel 
BuildRequires: zlib-devel
BuildRequires: swig
BuildRequires: hdf5-devel
BuildRequires: blas-devel
BuildRequires: lapack-devel
BuildRequires: fftw3-devel
BuildRequires: python3-wheel
BuildRequires: python3-setuptools
BuildRequires: boost-devel

%if 0%{?fedora}
BuildRequires: python3-wxpython4
%else
%if 0%{?opensuse}
BuildRequires: python3-numpy-devel
BuildRequires: python3-wxPython
BuildRequires: python3-wxWidgets
BuildRequires: wxWidgets-devel
BuildRequires: python3-sip-devel
%else
BuildRequires: python3-numpy
%endif

%endif

Requires: python3
Requires: python3-numpy
Requires: blas 
Requires: lapack
Requires: fftw3
Requires: libhdf5

%description
Stimfit features an embedded Python shell that allows you
to extend the program functionality by using numerical libraries such as NumPy
and SciPy.

%prep
%setup -q

%build
%if 0%{?centos}
cmake3 . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo 
%else
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo
%endif
make %{?_smp_mflags}

%install
%make_install

%post
ldconfig

%postun
ldconfig

%files
%defattr(-,root,root,-)
%{_bindir}
%{python3_sitearch}
%{_prefix}/lib

%changelog
openSUSE Build Service is sponsored by