File neuron-interviews.spec of Package neuron-interviews

#
# spec file for package neuron-interviews
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           neuron-interviews
Version:        19
%define neuron_ver 7.4
Release:        0
Summary:        Graphics toolkit for X11 for neuron
License:        BSD-3-Clause
Group:          Development/Libraries/X11
Url:            http://www.neuron.yale.edu/
Source:         http://www.neuron.yale.edu/ftp/neuron/versions/v%{neuron_ver}/iv-%{version}.tar.gz
# PATCH-FIX-OPENSUSE interviews-18-use_system_tiff.patch
# use system tiff since builtin tiff fails compiliation tests
Patch0:         interviews-18-use_system_tiff.patch
BuildRequires:  gcc-c++
BuildRequires:  libtiff-devel
BuildRequires:  libX11-devel
BuildRequires:  libXext-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
InterViews is a native C++ toolkit for the X Window System developed
by Mark Linton and his team at Stanford University and later Silicon
Graphics.

This version is modified by the NEURON development community.

%package devel
Summary:        Development files for %{name}
Requires:       %{name} = %{version}
Requires:       gcc-c++
Requires:       libtiff-devel
Requires:       libX11-devel
Requires:       libXext-devel

%description devel
Development files and headers needed to build software using %{name}

%package devel-static
Summary:        Static development files for %{name}
Requires:       %{name}-devel = %{version}

%description devel-static
Static development files and headers needed to build software using 
%{name}


%prep
%setup -q -n iv-%{version}
%patch0 -p1

%build
chmod a-x README
chmod a-x Copyright

%configure --with-x
make %{?_smp_mflags}

%install
%make_install

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc README Copyright
%{_bindir}/iclass
%{_bindir}/idemo
%{_bindir}/idraw
%{_datadir}/app-defaults/
%{_libdir}/libIVhines.so.*
%{_libdir}/libUnidrawhines.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/iv*.h
%{_includedir}/Dispatch/
%{_includedir}/InterViews/
%{_includedir}/IV-*/
%{_includedir}/OS/
%{_libdir}/libIVhines.so
%{_libdir}/libUnidrawhines.so

%files devel-static
%defattr(-,root,root,-)
%{_libdir}/libIVhines.la
%{_libdir}/libUnidrawhines.la

%changelog
openSUSE Build Service is sponsored by