File vcglib.spec of Package vcglib

#
# spec file for package vcglib
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2018 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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:           vcglib
Version:        2023.12
Release:        0
Summary:        Visualization and Computer Graphics Library
License:        GPL-3.0-only
URL:            https://vcg.isti.cnr.it/software_libs/vcglib/
Source:         https://github.com/cnr-isti-vclab/vcglib/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes

%description
The Visualization and Computer Graphics Library (VCGlib for short) is an
open source, portable, and templated library written in C++, with no
external dependencies, for manipulation, processing, cleaning, and
simplifying triangle meshes.

%package devel
Summary:        Visualization and Computer Graphics Library

%description devel
The Visualization and Computer Graphics Library (VCGlib for short) is an
open source, portable, and templated library written in C++, with no
external dependencies, for manipulation, processing, cleaning, and
simplifying triangle meshes.

This package contains the header files with the templates.

%prep
%autosetup

%build
#Just a placeholder, no build required.

%install
for dir in complex/algorithms/update complex/algorithms/create complex/algorithms/local_optimization \
    complex/algorithms complex \
    connectors container math \
    simplex/edge simplex/face simplex/tetrahedron simplex/vertex \
    space/index/aabb_binary_tree space/index/kdtree space/index space/intersection space
do
    install -m 644 -D -t %{buildroot}%{_includedir}/vcg/vcg/${dir} vcg/${dir}/*.h
done
install -m 644 -D -t %{buildroot}%{_includedir}/vcg/vcg/math/ vcg/math/*.ipp
install -m 644 -D -t %{buildroot}%{_includedir}/vcg/wrap/ wrap/callback.h
install -m 644 -D -t %{buildroot}%{_includedir}/vcg/wrap/io_trimesh/ wrap/io_trimesh/*.h
install -m 644 -D -t %{buildroot}%{_includedir}/vcg/wrap/ply/ wrap/ply/*.h
%fdupes %{buildroot}%{_includedir}

%files devel
%license LICENSE.txt
%{_includedir}/vcg

%changelog
openSUSE Build Service is sponsored by