File vsgPoints.spec of Package vsgPoints

#
# spec file for package vsgPoints
#
# 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/
#


%define _so_nr 0
%define libname lib%{name}%{_so_nr}

Name:           vsgPoints
Version:        0.2.0
Release:        0
Summary:        VulkanSceneGraph Point Cloud rendering
License:        MIT
Group:          Productivity/Graphics/Other
URL:            https://github.com/vsg-dev/vsgPoints
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  cmake(vsg)
BuildRequires:  cmake(vsgXchange)
BuildRequires:  fdupes
BuildRequires:  gcc-c++

%description
Cross platform, open source (MIT license) C++17 library and example set for
rendering large point cloud data using VulkanSceneGraph

%package -n %{libname}
Summary:        Shared libraries for vsgPoints
Group:          System/Libraries

%description -n %{libname}
This package contains the shared libraries for vsgPoints.

%package devel
Summary:        Development files for vsgPoints
Group:          Development/Libraries/C and C++
Requires:       %{libname} = %{version}

%description devel
The VulkanSceneGraph is a graphics toolkit for the development of
graphic applications such as flight simulators, games, virtual
reality and scientific visualization. Based around the concept of a
scene graph, it provides an object-oriented framework on top of
OpenGL.

This package contains the header and development files for
rendering large point cloud data using VulkanSceneGraph.

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake -DCMAKE_RELWITHDEBINFO_POSTFIX=
%cmake_build

%install
%cmake_install

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%files
%_bindir/vsg*
%_libdir/cmake/%name

%files -n %{libname}
%_libdir/lib%{name}.so.*

%files devel
%_includedir/vsg*
%_libdir/lib%{name}.so

%changelog
openSUSE Build Service is sponsored by