File f3d.spec of Package f3d

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


Name:           f3d
Version:        1.2.1
Release:        lp154.1.15
Summary:        Fast and minimalist 3D viewer
License:        BSD-3-Clause
Group:          Productivity/Graphics/Viewers
URL:            https://f3d-app.github.io/f3d
Source:         https://codeload.github.com/f3d-app/%{name}/tar.gz/refs/tags/v%{version}#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  help2man
BuildRequires:  pkgconfig
BuildRequires:  cmake(OpenCASCADE)
BuildRequires:  cmake(vtk) >= 9.0
BuildRequires:  pkgconfig(assimp)
BuildRequires:  pkgconfig(eigen3)
BuildRequires:  pkgconfig(glew)
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 \
    -DF3D_MODULE_RAYTRACING=OFF \
    -DF3D_MODULE_EXODUS=ON \
    -DF3D_MODULE_OCCT=ON \
    -DF3D_MODULE_ASSIMP=ON \
    -DF3D_INSTALL_DEFAULT_CONFIGURATION_FILE=ON \
    -DF3D_INSTALL_THUMBNAILER_FILES=ON \
    -DF3D_INSTALL_MIME_TYPES_FILE=ON \
    -DF3D_GENERATE_MAN=ON
%cmake_build

%install
%cmake_install
rm -rf %{buildroot}%{_datadir}/doc/%{name}

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

%files
%doc README.md
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/config.json
%{_bindir}/%{name}
%{_libdir}/lib%{name}.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_datadir}/metainfo/io.github.f3d_app.f3d.metainfo.xml
%dir %{_datadir}/mime
%dir %{_datadir}/mime/packages
%{_datadir}/mime/packages/%{name}-*-formats.xml
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/%{name}*.thumbnailer
%{_mandir}/man?/%{name}.?%{?ext_man}
%license LICENSE 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
* Wed Dec 15 2021 Андрей Алыпов <and.november@opensuse.org>
- Update to version 1.2.1
  * Fix format list in documentation
  * typo
  * Fixup
  * initialize quiet
  * Respect output window conf
  * Improving .deb package
  * Handle readers with CMake
  * Rerun failing tests in serial
  * Fix link in readme
  * Added the missing CPACK_PACKAGE_CONTACT
  * Added DEB to cPack generator
  * Fix useless whatis entry in man page.
  * Add shadow warning during strict compil
  * Fix Shadowing
  * Reindent file
  * fix name
  * Improve installation doc
  * SSAO in long timeout to avoid failure on macos
  * Updating VTK for https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8682/
  * Fix an error in codecov conf
  * typo
  * Adding spack package
  * Update website again
  * Adding more badges
* Wed Jul  8 2020 Андрей Алыпов <and.november@opensuse.org>
- initial package (version 1.1.0) for openSUSE
openSUSE Build Service is sponsored by