Hello community,

here is the log from the commit of package moonjit for openSUSE:Leap:15.2 
checked in at 2020-03-23 07:13:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/moonjit (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.moonjit.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "moonjit"

Mon Mar 23 07:13:13 2020 rev:3 rq:786878 version:2.2.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/moonjit/moonjit.changes        2020-01-15 
15:30:58.814762931 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.moonjit.new.3160/moonjit.changes      
2020-03-23 07:13:26.318482140 +0100
@@ -1,0 +2,18 @@
+Thu Mar 12 12:09:34 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- No need to namespace luajit with update-alternatives, we really
+  want just one version of it to be provided to keep things
+  simple
+
+-------------------------------------------------------------------
+Thu Mar 12 11:42:21 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 2.2.0:
+  * The v2.2 release of moonjit brings many new features that bring the
+    project closer to its aim of unifying LuaJIT forks and compatibility
+    with Lua. 
+- Do not suffix the version anymore as we support all lua variants,
+  removes the patch:
+  * luajit-lua-versioned.patch
+
+-------------------------------------------------------------------

Old:
----
  2.1.2.tar.gz
  luajit-lua-versioned.patch

New:
----
  2.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ moonjit.spec ++++++
--- /var/tmp/diff_new_pack.lUzJ4O/_old  2020-03-23 07:13:26.698482368 +0100
+++ /var/tmp/diff_new_pack.lUzJ4O/_new  2020-03-23 07:13:26.698482368 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package moonjit
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,17 +19,14 @@
 %define lua_suffix 5_1
 %define lib_suffix 2
 Name:           moonjit
-Version:        2.1.2
+Version:        2.2.0
 Release:        0
 Summary:        JIT compiler for Lua language
 License:        MIT
 URL:            https://github.com/moonjit/moonjit
 Source0:        https://github.com/moonjit/moonjit/archive/%{version}.tar.gz
 Source1:        baselibs.conf
-Patch0:         luajit-lua-versioned.patch
 BuildRequires:  pkgconfig
-Requires(post): update-alternatives
-Requires(preun): update-alternatives
 Conflicts:      luajit
 Provides:       lua51-luajit
 Provides:       luajit = %{version}
@@ -56,13 +53,12 @@
 
 %prep
 %setup -q -n moonjit-%{version}
-%autopatch -p1
 
 # Fix variables
 sed -i "s,PREFIX= %{_prefix}/local,PREFIX= %{_prefix}," Makefile
 
 %build
-CFLAGS="%{optflags}" \
+export CFLAGS="%{optflags} -DLUAJIT_ENABLE_LUA52COMPAT"
 make %{?_smp_mflags} \
        Q= \
        DYNAMIC_CC="cc -fPIC" \
@@ -83,14 +79,8 @@
 rm %{buildroot}/%{_libdir}/*.a
 
 # Beta version make install does not do this
-ln -sf luajit-%{lua_suffix}-%{version} 
%{buildroot}/%{_bindir}/luajit-%{lua_suffix}
-
-# update-alternatives
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
-touch %{buildroot}%{_sysconfdir}/alternatives/luajit
-touch %{buildroot}%{_sysconfdir}/alternatives/luajit.1%{ext_man}
-ln -sf %{_sysconfdir}/alternatives/luajit %{buildroot}%{_bindir}/luajit
-ln -sf %{_sysconfdir}/alternatives/luajit.1%{ext_man} 
%{buildroot}%{_mandir}/man1/luajit.1%{ext_man}
+ln -sf moonjit-%{version} %{buildroot}/%{_bindir}/moonjit
+ln -sf moonjit-%{version} %{buildroot}/%{_bindir}/luajit
 
 %check
 %ifarch %arm ppc ppc64 ppc64le
@@ -99,33 +89,21 @@
 make %{?_smp_mflags} check
 %endif
 
-%post
-%{_sbindir}/update-alternatives --install %{_bindir}/luajit luajit 
%{_bindir}/luajit-%{lua_suffix}-%{version} 60 \
-       --slave %{_mandir}/man1/luajit.1%{ext_man} luajit.1%{ext_man} 
%{_mandir}/man1/luajit-%{lua_suffix}.1%{ext_man}
-
-%preun
-if [ "$1" = 0 ] ; then
-       %{_sbindir}/update-alternatives --remove luajit 
%{_bindir}/luajit-%{lua_suffix}-%{version}
-fi
-
 %post -n libluajit-%{lua_suffix}-%{lib_suffix} -p /sbin/ldconfig
 %postun -n libluajit-%{lua_suffix}-%{lib_suffix} -p /sbin/ldconfig
 
 %files
-%ghost %{_sysconfdir}/alternatives/luajit
-%ghost %{_sysconfdir}/alternatives/luajit.1%{ext_man}
 %{_bindir}/luajit
-%{_bindir}/luajit-%{lua_suffix}
-%{_bindir}/luajit-%{lua_suffix}-%{version}
+%{_bindir}/moonjit
+%{_bindir}/moonjit-%{version}
 %{_mandir}/man1/luajit.1%{?ext_man}
-%{_mandir}/man1/luajit-%{lua_suffix}.1%{?ext_man}
-%{_datadir}/luajit-%{lua_suffix}-%{version}/
+%{_datadir}/moonjit-%{version}/
 
 %files -n libluajit-%{lua_suffix}-%{lib_suffix}
 %{_libdir}/libluajit-5.1.so.*
 
 %files devel
-%{_includedir}/luajit-%{lua_suffix}-2.1/
+%{_includedir}/moonjit-2.2/
 %{_libdir}/libluajit-5.1.so
 %{_libdir}/pkgconfig/luajit.pc
 

++++++ 2.1.2.tar.gz -> 2.2.0.tar.gz ++++++
++++ 7950 lines of diff (skipped)


Reply via email to