File ovito.spec of Package ovito

#
# spec file for package ovito
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#
%define _lto_cflags %{nil}
%define __builder ninja
Name:		ovito
Version:	0
Release:        0
Summary:	A scientific data visualization and analysis software for atomistic simulation models
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:	GPL-3.0-or-later
URL:		https://www.ovito.org/
Source:		_service
BuildRequires:	cmake
BuildRequires:	qt6-concurrent-devel
BuildRequires:	qt6-core-devel
BuildRequires:	qt6-gui-devel
BuildRequires:	qt6-network-devel
BuildRequires:	qt6-dbus-devel
BuildRequires:	qt6-opengl-devel
BuildRequires:	qt6-printsupport-devel
BuildRequires:	qt6-widgets-devel
BuildRequires:	qt6-openglwidgets-devel
BuildRequires:	qt6-xml-devel
BuildRequires:	qt6-svg-devel
BuildRequires:	libavutil-devel
BuildRequires:	libavresample-devel
BuildRequires:	libavfilter-devel
BuildRequires:	libavcodec-devel
BuildRequires:	libavdevice-devel
BuildRequires:	netcdf-devel
BuildRequires:	libssh-devel
BuildRequires:	boost-devel
BuildRequires:	hdf5-devel
BuildRequires:	libswscale-devel
BuildRequires:	ninja
BuildRequires:	cmake(zstd)
BuildRequires:	cmake(kissfft)
%package        ssh-askpass
Summary:        OVITO ssh askpass
%description    ssh-askpass
OVITO ssh askpass


%description
OVITO is a scientific data visualization and analysis software for atomistic, molecular and other
particle-based simulations.
The user documentation for the latest release of OVITO is found here:
https://www.ovito.org/docs/current/
Note that the software vendor OVITO GmbH offers two official versions of the program: OVITO Basic and OVITO Pro.
OVITO Basic, which provides only a subset of the functions of OVITO Pro, is based on the source code in this
repository.
%prep
%setup -q -n %_sourcedir/%name-%version -T -D
%__mkdir -p %_builddir/%_sourcedir
%__ln -rs %_sourcedir/%name-%version %_builddir/%_sourcedir
%__sed -i "s|lib/ovito|%_lib/ovito|g" CMakeLists.txt
%build
%cmake -DOVITO_BUILD_APPSTORE_VERSION=ON \
-DOpenGL_GL_PREFERENCE=GLVND \
-DOVITO_BUILD_SSH_CLIENT=ON \
-DCMAKE_EXE_LINKER_FLAGS="" \
-DCMAKE_MODULE_LINKER_FLAGS="" \
-DCMAKE_SHARED_LINKER_FLAGS=""
%cmake_build

%install
%cmake_install
%files
%license LICENSE.GPL.txt LICENSE.MIT.txt
%doc README.md
%{_bindir}/ovito
%dir %{_libdir}/ovito
%{_libdir}/ovito/lib*.so*
%dir %{_libdir}/ovito/plugins
%{_libdir}/ovito/plugins/*.so
%dir %{_datadir}/ovito
%{_datadir}/ovito/*
%files ssh-askpass
%{_bindir}/ssh_askpass
%changelog

openSUSE Build Service is sponsored by