File glChAosP.spec of Package glChAosP

#
# spec file for package glChAosP
#
# Copyright (c) 2020-2024 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/
#

%define         orig_name glChAoS.P

Name:           glChAosP
Version:        1.5.3
Release:        0
Summary:        3D GPUs Strange Attractors and Hypercomplex Fractals explorer
License:        BSD-2-Clause
Group:          Productivity/Scientific/Other
Url:            https://github.com/BrutPitt/glChAoS.P
Source0:        %{orig_name}-%{version}.tar.gz
Source1:        glChAoSP
BuildRequires:  chrpath
BuildRequires:  cmake >= 3.15
BuildRequires:  cmake-gui >= 3.15
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glfw3)

%description
3D GPUs Strange Attractors and Hypercomplex Fractals explorer - up to 256 Million
particles in RealTime.

%prep
%autosetup -n %{orig_name}-%{version}

%build
cd src
%cmake -DBUILD_wglChAoSP='NO'
make %{?_smp_mflags}

%install
#Manual install of data and binary
mkdir -p %{buildroot}%{_datadir}/%{name}
for X in "ChaoticAttractors colorMaps Fonts  renderCfg Shaders startData"
do cp -ar $X %{buildroot}%{_datadir}/%{name}
done
chrpath -d glChAoSP_Linux
install -Dm0755 glChAoSP_Linux %{buildroot}%{_bindir}/glChAoSP_Linux
install -Dm0755 %{S:1}  %{buildroot}%{_bindir}/glChAoSP
#Remove hidden-file!
rm -f %{buildroot}%{_datadir}/%{name}/renderCfg/.dummy.txt

%files
%license license.txt
%{_bindir}/glChAoSP
%{_bindir}/glChAoSP_Linux
%{_datadir}/%{name}

%changelog

openSUSE Build Service is sponsored by