File vis5d+.spec of Package vis5d+
#
# spec file for package vis5d+
#
# 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: vis5d+
Version: 1.3.0
Release: 0
Summary: A free volumetric rendering program
License: GPL-2.0
Group: Development/Tools/Other
Source0: %{name}-1.3.0-beta.tar.gz
Source1: vis5dp.png
#PATCH-FIX-UPSTREAM vis5d+-1.3.0-round.diff
Patch0: vis5d+-1.3.0-round.diff
#PATCH-FIX-UPSTREAM vis5d+-1.3.0-return.patch
Patch1: vis5d+-1.3.0-return.patch
#PATCH-FIX-UPSTREAM vis5d+-1.3.0-implicit.patch
Patch2: vis5d+-1.3.0-implicit.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://vis5d.sourceforge.net/
BuildRequires: Mesa-devel
%if 0%{?suse_version} >= 1230
BuildRequires: Mesa-libGLU-devel
%endif
BuildRequires: gcc-c++
%if 0%{?suse_version} == 1210
BuildRequires: libnetcdf-devel
%else
BuildRequires: netcdf-devel
%endif
BuildRequires: pkg-config
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
%description
Vis5d+ is intended as a central repository for enhanced versions and
development work on Vis5d, a free OpenGL-based volumetric visualization
program for scientific datasets in 3+ dimensions.
%package devel
Summary: Headers and libraries for vis5d+
Group: Development/Libraries/C and C++
Requires: libvis5d2_0 = %{version}
%description devel
This package contains the files needed for compiling programs using the vis5d+
library.
%package devel-static
Summary: Static libraries for vis5d+
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
%description devel-static
This package contains the static libray files needed for the vis5d+.
%package -n libvis5d2_0
Summary: The libvis5d+ Library Package
Group: System/Libraries
%description -n libvis5d2_0
Shared library for the libvis5d package.
%prep
%setup -q -n %{name}-1.3.0-beta
%patch0
%patch1
%patch2
%build
%configure
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name}
# Install application icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 664 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/
%suse_update_desktop_file -c %{name} %{name} "A visualization tool for 3D datasets" vis5d vis5dp Science Math
rm -f %{buildroot}%{_libdir}/lib*.la
%post -n libvis5d2_0 -p /sbin/ldconfig
%postun -n libvis5d2_0 -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc doc/vis5d.pdf doc/html
%{_bindir}/comp_to_v5d
%{_bindir}/topoinfo
%{_bindir}/v5dappend
%{_bindir}/v5dedit
%{_bindir}/v5dimport
%{_bindir}/v5dinfo
%{_bindir}/v5dstats
%{_bindir}/vis5d
%{_datadir}/vis5d+/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/vis5dp.png
%files devel
%defattr(-,root,root)
%{_includedir}/vis5d+/
%{_libdir}/pkgconfig/vis5d+.pc
%{_libdir}/libv5d.so
%{_libdir}/libvis5d.so
%files devel-static
%defattr(-,root,root)
%{_libdir}/libv5d.a
%{_libdir}/libvis5d.a
%files -n libvis5d2_0
%defattr(-,root,root)
%{_libdir}/libv5d.so.*
%{_libdir}/libvis5d.so.*
%changelog