File project.diff of Package hashlink

--- hashlink.changes.orig
+++ hashlink.changes
@@ -64,6 +64,16 @@ Tue Feb  7 20:43:32 UTC 2023 - Jaime Mar
 - Drop 0001-cmake-Link-sdl.hdll-with-OpenGL.patch: accepted upstream
 
 -------------------------------------------------------------------
+Sat Sep 10 23:37:07 UTC 2022 - Jordi Fita <jfita@infoblitz.com> - 1.12
+
+- Add haxe-hashlink package for haxelib
+
+-------------------------------------------------------------------
+Sat Sep 10 23:23:57 UTC 2022 - Jordi Fita <jfita@infoblitz.com> - 1.12
+
+- Add build-openal-hdll.patch: Build openal.hdll for Linux too
+
+-------------------------------------------------------------------
 Sun Jul 10 16:36:47 UTC 2022 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
 
 - Add 0001-fix-rpath.patch: Fix the RPATH of the hl binary to comply with rpm validations
--- hashlink.spec.orig
+++ hashlink.spec
@@ -16,6 +16,9 @@
 #
 
 
+%define haxelibdir %{_libexecdir}/haxe/%{name}
+%define haxelibver 0,1,0
+
 %ifarch %{ix86} %{x86_64}
 %define with_vm 1
 %endif
@@ -24,6 +27,7 @@ Version:        1.15
 Release:        0
 Summary:        A virtual machine for Haxe
 License:        MIT
+Group:          Development/Languages/Other
 URL:            https://hashlink.haxe.org/
 Source0:        https://github.com/HaxeFoundation/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE
@@ -73,6 +77,13 @@ Requires:       libhl1  = %{version}
 Contains the files required to compile to a native executable the HashLink/C
 code generated by the haxe compiler.
 
+%package -n haxe-%{name}
+Summary:        Haxelib files for %{name}
+
+%description -n haxe-%{name}
+Contains the files to install the runtime in haxelib required to generate HashLink/C
+code without errors.
+
 %prep
 %autosetup -n hashlink-%{version} -p1
 
@@ -85,6 +96,9 @@ haxelib dev hashlink other/haxelib
 
 %install
 %cmake_install
+install -d %{buildroot}%{haxelibdir}/%{haxelibver}
+install -m644 other/haxelib/haxelib.json other/haxelib/Run.hx %{buildroot}%{haxelibdir}/%{haxelibver}
+echo -n 0.1.0 > %{buildroot}%{haxelibdir}/.current
 
 %check
 # uvsample.hl fails when run in parallel
@@ -114,4 +128,9 @@ haxelib dev hashlink other/haxelib
 %{_includedir}/*.h
 %{_includedir}/hlc_main.c
 
+%files -n haxe-%{name}
+%license LICENSE
+%dir %{_libexecdir}/haxe
+%{haxelibdir}
+
 %changelog
openSUSE Build Service is sponsored by