* Bugfixes:
+ display : do not define "display" for json rpc diagnostics (gh#HaxeFoundation/haxe#11746)
+ cpp : null check interfaces (gh#HaxeFoundation/haxe#11743)
+ hl : ignore WANT_READ/WANT_WRITE errors when the socket is known to be blocking (gh#HaxeFoundation/haxe#11655)
+ hl : fix weird compiler error (gh#HaxeFoundation/haxe#11690)
+ jvm : fix --java out -D jvm deprecation warning (gh#HaxeFoundation/haxe#11739)
+ macro : Context.reportError should not abort build macros (gh#HaxeFoundation/haxe#11741)
- update to 4.3.5
* General improvements:
+ display : migrated diagnostics to Json RPC (gh#HaxeFoundation/haxe#11707)
+ macro : expose TVar VStatic flag in macros. (gh#HaxeFoundation/haxe#11683)
* Bugfixes:
+ all : fix @:structInit with getter + setter (gh#HaxeFoundation/haxe#11662)
+ all : add missing recursion when checking abstract casts (gh#HaxeFoundation/haxe#11676)
+ all : fail nicer if unify_min can't find a common type (gh#HaxeFoundation/haxe#11684)
+ all : fix pretty errors failure (gh#HaxeFoundation/haxe#11700)
+ all : disallow local statics when inlining (gh#HaxeFoundation/haxe#11725)
+ display : unused pattern variables should be marked as unused (gh#HaxeFoundation/haxe#7282)
+ display : diagnostics miss "used without being initialized" errors (gh#HaxeFoundation/haxe#7931)
+ display : recursive inline is not supported on enum abstract constructor (gh#HaxeFoundation/haxe#11177)
+ display : Void as value error disappears on second compilation (gh#HaxeFoundation/haxe#11184)
+ display : false positives of "This cast has no effect, but some of its sub-expressions" (gh#HaxeFoundation/haxe#11203)
+ cpp : inherit @:unreflective on generic classes
+ hl : fix bit shift + assignment in while loop header (gh#HaxeFoundation/haxe#10783)
+ hl : fix do-while loop in genhl+hlopt (gh#HaxeFoundation/haxe#11461)
+ hl/c : use uint64 instead of uint64_t for shift cast (gh#HaxeFoundation/haxe#11721)
+ macro : don't choke on namePos for reification pattern matching (gh#HaxeFoundation/haxe#11671)
* Deprecation / future version handling:
+ macro : Compiler.include() warning when used outside init macros
- Use fdupes to avoid having duplicated files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haxe/haxe?expand=0&rev=42
110 lines
3.8 KiB
RPMSpec
110 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package haxe
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
%global commit_haxelib f17fffa97554b1bdba37750e3418051f017a5bc2
|
|
%global commit_hx3compat f1f18201e5c0479cb5adf5f6028788b37f37b730
|
|
|
|
Name: haxe
|
|
Version: 4.3.6
|
|
Release: 0
|
|
Summary: Multiplatform programming language
|
|
License: GPL-2.0-or-later AND MIT
|
|
ExclusiveArch: aarch64 ppc64 ppc64le riscv64 s390x x86_64
|
|
Group: Development/Languages/Other
|
|
# As described in http://haxe.org/foundation/open-source.html:
|
|
# * The Haxe Compiler - GPLv2+
|
|
# * The Haxe Standard Library - MIT
|
|
Url: https://haxe.org/
|
|
Source0: https://github.com/HaxeFoundation/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: https://github.com/HaxeFoundation/haxelib/archive/%{commit_haxelib}.tar.gz#/haxelib-%{commit_haxelib}.tar.gz
|
|
Source2: https://github.com/HaxeFoundation/hx3compat/archive/%{commit_hx3compat}.tar.gz#/hx3compat-%{commit_hx3compat}.tar.gz
|
|
|
|
BuildRequires: help2man
|
|
BuildRequires: neko-devel >= 2.3.0
|
|
BuildRequires: neko >= 2.3.0
|
|
BuildRequires: ocaml >= 4.08
|
|
BuildRequires: ocaml-dune
|
|
BuildRequires: ocamlfind(camlp5)
|
|
BuildRequires: ocamlfind(camlp-streams)
|
|
BuildRequires: ocamlfind(extlib)
|
|
BuildRequires: ocamlfind(findlib)
|
|
BuildRequires: ocamlfind(luv)
|
|
BuildRequires: ocaml-luv-devel >= 0.5.12
|
|
BuildRequires: ocamlfind(ptmap)
|
|
BuildRequires: ocamlfind(sedlex)
|
|
BuildRequires: ocamlfind(sha)
|
|
BuildRequires: ocamlfind(xml-light)
|
|
BuildRequires: pkgconfig(zlib)
|
|
BuildRequires: pcre2-devel
|
|
BuildRequires: mbedtls-devel < 3
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
Requires: neko >= 2.3.0
|
|
|
|
%description
|
|
Haxe is a high-level multiplatform programming language and compiler
|
|
that can produce applications and source code for many different
|
|
platforms from a single code-base. The Haxe compiler can compile Haxe
|
|
source code to Adobe Flash SWF files, ActionScript 3, JavaScript,
|
|
C++, PHP, C#, Java, Python, Lua, and Neko VM binary files.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
pushd extra/haxelib_src && tar -xf %{SOURCE1} --strip-components=1 && popd
|
|
pushd extra/haxelib_src/hx3compat && tar -xf %{SOURCE2} --strip-components=1 && popd
|
|
|
|
# note that the Makefile does not support parallel building
|
|
make haxe
|
|
|
|
# Compile haxelib
|
|
pushd extra/haxelib_src && \
|
|
%cmake && \
|
|
make %{?_smp_mflags} && \
|
|
cp haxelib ../../../haxelib
|
|
popd
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
|
cp -p haxe %{buildroot}%{_bindir}
|
|
cp -p haxelib %{buildroot}%{_bindir}
|
|
cp -rfp std %{buildroot}%{_datadir}/%{name}
|
|
|
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
|
|
|
# Generate man pages
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
help2man ./haxe --version-option=-version --no-discard-stderr --no-info --output=%{buildroot}%{_mandir}/man1/haxe.1
|
|
help2man ./haxelib --help-option=help --version-option=version --no-info --output=%{buildroot}%{_mandir}/man1/haxelib.1
|
|
|
|
%check
|
|
%{buildroot}%{_bindir}/haxe -version
|
|
%{buildroot}%{_bindir}/haxelib version
|
|
|
|
%files
|
|
%doc README.md extra/LICENSE.txt extra/CHANGES.txt extra/CONTRIB.txt
|
|
%{_bindir}/haxe
|
|
%{_bindir}/haxelib
|
|
%{_mandir}/man1/haxe.1*
|
|
%{_mandir}/man1/haxelib.1*
|
|
%{_datadir}/%{name}/
|
|
|
|
%changelog
|