Package not found: systemsmanagement/ansible

File f3d.spec of Package f3d

#
# spec file for package f3d
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#


%if 0%{?fedora}
%global __brp_check_rpaths %{nil}
%endif
Name:           f3d
Version:        @SERVICE@
Release:        0
Summary:        Fast and minimalist 3D viewer
License:        BSD-3-Clause
Group:          Productivity/Graphics/Viewers
URL:            https://github.com/f3d-app/f3d
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}.rpmlintrc
BuildRequires:  cmake
%if 0%{?suse_version} >= 1550 || 0%{?fedora} || 0%{?mageia}
BuildRequires:  cmake(Alembic)
BuildRequires:  cmake(Imath)
%endif
BuildRequires:  cmake(OpenCASCADE)
BuildRequires:  cmake(vtk) >= 9.0
%if 0%{?sle_version} >= 150400
BuildRequires:  gcc11-c++
%else
BuildRequires:  gcc-c++
%endif
BuildRequires:  help2man
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(assimp)
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400 || 0%{?fedora}
BuildRequires:  pkgconfig(draco)
%endif
BuildRequires:  pkgconfig(eigen3)
BuildRequires:  pkgconfig(glew)
%if 0%{?mageia}
BuildRequires:  pkgconfig(nlohmann_json)
%endif
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(xt)

%description
F3D is a VTK-based 3D viewer following the KISS principle, so it is
minimalist, efficient, has no GUI, has simple interaction mechanisms and is
fully controllable using arguments in the command line.

%package        bash-completion
Summary:        Bash completion for %{name}
Group:          System/Shells
Requires:       bash-completion
Supplements:    (%{name} and bash)
BuildArch:      noarch

%description    bash-completion
Bash command line completion support for %{name}.

%package        fish-completion
Summary:        Fish Completion for %{name}
Group:          System/Shells
Requires:       fish
Supplements:    (%{name} and fish)
BuildArch:      noarch

%description    fish-completion
Fish command line completion support for %{name}.

%package        zsh-completion
Summary:        Zsh Completion for %{name}
Group:          System/Shells
Requires:       zsh
Supplements:    (%{name} and zsh)
BuildArch:      noarch

%description    zsh-completion
ZSH command line completion support for %{name}.

%prep
%autosetup

%build
%cmake \
    -DBUILD_TESTING=OFF \
    -DF3D_BINDINGS_JAVA=OFF \
    -DF3D_BINDINGS_PYTHON=OFF \
    -DF3D_LINUX_APPLICATION_LINK_FILESYSTEM=ON \
    -DF3D_LINUX_GENERATE_MAN=ON \
    -DF3D_LINUX_INSTALL_DEFAULT_CONFIGURATION_FILE_IN_PREFIX=ON \
    -DF3D_MODULE_EXTERNAL_RENDERING=OFF \
    -DF3D_MODULE_RAYTRACING=OFF \
    -DF3D_PLUGINS_STATIC_BUILD=OFF \
%if 0%{?sle_version} >= 150400
    -DCMAKE_CXX_COMPILER=%{_bindir}/g++-11 \
    -DF3D_PLUGIN_BUILD_ALEMBIC=OFF \
%else
    -DF3D_PLUGIN_BUILD_ALEMBIC=ON \
%endif
    -DF3D_PLUGIN_BUILD_ASSIMP=ON \
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400 || 0%{?fedora}
    -DF3D_PLUGIN_BUILD_DRACO=ON \
%else
    -DF3D_PLUGIN_BUILD_DRACO=OFF \
%endif
    -DF3D_PLUGIN_BUILD_EXODUS=ON \
    -DF3D_PLUGIN_BUILD_OCCT=ON
%cmake_build

%install
%cmake_install
rm -rfv %{buildroot}%{_datadir}/doc/F3D
rm -rfv %{buildroot}%{_libdir}/libVTKExtensions*.a

%files
%doc README.md
%{_bindir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-plugin-*.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-plugin-*.desktop
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/plugins
%{_datadir}/%{name}/plugins/*.json
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_datadir}/metainfo/app.%{name}.F3D.metainfo.xml
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/%{name}*.thumbnailer
%{_mandir}/man?/%{name}.?%{?ext_man}
%license LICENSE.md doc/THIRD_PARTY_LICENSES.md

%files bash-completion
%dir %{_datadir}/bash-completion/
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/%{name}

%files fish-completion
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/%{name}.fish

%files zsh-completion
%dir %{_datadir}/zsh/
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_%{name}

%changelog
openSUSE Build Service is sponsored by