diff --git a/allow-erlang25-compilation.patch b/allow-erlang25-compilation.patch new file mode 100644 index 0000000..61280a7 --- /dev/null +++ b/allow-erlang25-compilation.patch @@ -0,0 +1,11 @@ +--- a/rebar.config 2021-03-19 20:42:47.000000000 +0800 ++++ b/rebar.config 2023-09-16 16:26:22.738810933 +0800 +@@ -2,7 +2,7 @@ + + %% accept R15B02.., any R16B except R16B03 + %% also accept OTP v17, altough it may not work properly on that release yet.. +-{require_otp_vsn, "R16B$|R16B[^0]|R16B0[^3]|R16B03-1|17|18|19|20|21|22|23"}. ++{require_otp_vsn, "R16B$|R16B[^0]|R16B0[^3]|R16B03-1|17|18|19|20|21|22|23|24|25"}. + + {erl_opts, [debug_info]}. + {yrl_opts, [{includefile, "include/erlydtl_preparser.hrl"}]}. diff --git a/erlang-erlydtl.spec b/erlang-erlydtl.spec index 5fae6bd..6d10799 100644 --- a/erlang-erlydtl.spec +++ b/erlang-erlydtl.spec @@ -2,18 +2,19 @@ %global upstream erlydtl Name: erlang-%{realname} Version: 0.14.0 -Release: 2 +Release: 3 BuildArch: noarch Summary: Erlang implementation of the Django Template Language License: MIT and Apache-2.0 -URL: https://github.com/%{upstream}/%{realname} -VCS: scm:git:https://github.com/%{upstream}/%{realname}.git -Source0: https://github.com/%{upstream}/%{realname}/archive/refs/tags/0.14.0.tar.gz -Patch1: erlang-erlydtl-0001-Verbose-testing.patch -Patch2: erlang-erlydtl-0002-No-such-function-exported-gettext_compile-write_pret.patch -Patch3: erlang-erlydtl-0003-No-such-function-exported-gettext_compile-fmt_filein.patch -Patch4: erlang-erlydtl-0004-No-such-fun-gettext_compile-open_po_file-3.patch -Patch5: erlang-erlydtl-0005-No-such-fun-gettext_compile-close_file-0.patch +URL: https://github.com/%{upstream}/%{realname} +VCS: scm:git:https://github.com/%{upstream}/%{realname}.git +Source0: https://github.com/%{upstream}/%{realname}/archive/refs/tags/0.14.0.tar.gz +Patch1: erlang-erlydtl-0001-Verbose-testing.patch +Patch2: erlang-erlydtl-0002-No-such-function-exported-gettext_compile-write_pret.patch +Patch3: erlang-erlydtl-0003-No-such-function-exported-gettext_compile-fmt_filein.patch +Patch4: erlang-erlydtl-0004-No-such-fun-gettext_compile-open_po_file-3.patch +Patch5: erlang-erlydtl-0005-No-such-fun-gettext_compile-close_file-0.patch +Patch6: allow-erlang25-compilation.patch Provides: ErlyDTL = %{version}-%{release} BuildRequires: erlang-rebar BuildRequires: erlang-eunit @@ -50,6 +51,9 @@ cp -arv priv %{buildroot}/%{erlang_appdir}/ %changelog +* Mon Sep 18 2023 wangkai <13474090681@163.com> - 0.14.0-3 +- Allow erlang25 compilation to fix build error + * Thu Jul 20 2023 yaoxin - 0.14.0-2 - Fix build error