File haxe-heaps.spec of Package haxe-heaps

#
# spec file for package haxe-heaps
#
# Copyright (c) 2022 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 haxelibdir %{_libexecdir}/haxe/heaps
%define haxelibver 1,9,1

Name:           haxe-heaps
Version:        1.9.1+git438
Release:        0
Summary:        Haxe game framework 
License:        MIT
Group:          Development/Languages/Other
URL:            https://heaps.io/
Source:         %{name}-%{version}.tar.xz
BuildRequires:  xz
BuildArch:      noarch
Requires:       haxe-format

%description
Heaps is a cross platform graphics engine designed for high performance games.
It's designed to leverage modern GPUs that are commonly available on desktop,
mobile and consoles.

Heaps is currently working on:

 *  HTML5 (requires WebGL)
 *  Mobile (iOS, tvOS and Android)
 *  Desktop with OpenGL (Win/Linux/OSX) or DirectX (Windows only)
 *  Consoles (Nintendo Switch, Sony PS4, XBox One - requires being a registered
    developer)
 *  Flash Stage3D


%prep
%setup -q

%build

%install
install -d %{buildroot}%{haxelibdir}/%{haxelibver}
install -m644 haxelib.json %{buildroot}%{haxelibdir}/%{haxelibver}
for folder in h2d h3d hxd hxsl; do
	find $folder -type d -exec install -d %{buildroot}%{haxelibdir}/%{haxelibver}/{} \;
	find $folder -type f -exec install -m644 {} %{buildroot}%{haxelibdir}/%{haxelibver}/{} \;
done
echo -n 1.9.1 > %{buildroot}%{haxelibdir}/.current

%files
%license LICENSE
%doc CHANGELOG.md README.md
%dir %{_libexecdir}/haxe
%{haxelibdir}

%changelog
openSUSE Build Service is sponsored by