Hello community,

here is the log from the commit of package luabind for openSUSE:Factory checked 
in at 2017-09-11 16:22:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/luabind (Old)
 and      /work/SRC/openSUSE:Factory/.luabind.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "luabind"

Mon Sep 11 16:22:44 2017 rev:4 rq:522882 version:0.9.1+git20150408.a0edf58

Changes:
--------
--- /work/SRC/openSUSE:Factory/luabind/luabind.changes  2017-04-11 
09:45:08.497263806 +0200
+++ /work/SRC/openSUSE:Factory/.luabind.new/luabind.changes     2017-09-11 
16:23:31.706487593 +0200
@@ -1,0 +2,23 @@
+Sun Sep 10 11:50:34 UTC 2017 - r...@fthiessen.de
+
+- Fixed license
+
+-------------------------------------------------------------------
+Fri Jul 14 15:17:57 UTC 2017 - tchva...@suse.com
+
+- Switch to service based tarball creation
+- Cleanup the threads limiting
+
+-------------------------------------------------------------------
+Fri Jul 14 15:12:07 UTC 2017 - tchva...@suse.com
+
+- Update to version 0.9.1+git20150408.a0edf58:
+  * Update call_member.hpp
+  * Added BOOST_NOEXCEPT_IF(false)
+  * added BOOST_NOECEPT_IF(false)
+  * Added another BOOST_NOEXCEPT_IF(false) to proxy_member_void_caller
+  * Revert "Added BOOST_NOEXCEPT_IF(false) to destructors"
+  * Enable CMake folders and put tests into one
+  * Only enable folders if we are the top level project
+
+-------------------------------------------------------------------

Old:
----
  luabind-0.9.1+20150408.tar.xz
  update.sh

New:
----
  _service
  luabind-0.9.1+git20150408.a0edf58.tar.xz

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

Other differences:
------------------
++++++ luabind.spec ++++++
--- /var/tmp/diff_new_pack.ywAEAc/_old  2017-09-11 16:23:32.170422449 +0200
+++ /var/tmp/diff_new_pack.ywAEAc/_new  2017-09-11 16:23:32.170422449 +0200
@@ -16,35 +16,34 @@
 #
 
 
-%define base_version 0.9.1
-%define sover        %(echo "%{base_version}" | sed "s/\\./_/g")
+%define sover   0_9_1
 Name:           luabind
-Version:        %{base_version}+20150408
+Version:        0.9.1+git20150408.a0edf58
 Release:        0
 Summary:        Lua C++ bindings
-License:        GPL-2.0
+License:        MIT
 Group:          Development/Libraries/C and C++
 Url:            https://github.com/rpavlik/luabind
 Source:         %{name}-%{version}.tar.xz
-Source99:       update.sh
 Patch0:         fix-cmake-lib-version.patch
 Patch1:         install-pkgconfig.patch
+BuildRequires:  cmake
+BuildRequires:  gcc-c++
+BuildRequires:  lua53-devel
+BuildRequires:  pkgconfig
+BuildRequires:  procps
+Requires:       lua53
 %if 0%{?suse_version} > 1325
 BuildRequires:  libboost_headers-devel
 %else
 BuildRequires:  boost-devel
 %endif
-BuildRequires:  cmake
-BuildRequires:  gcc-c++
-BuildRequires:  pkgconfig
-BuildRequires:  pkgconfig(lua)
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %package devel
 Summary:        Luabind headers
 Group:          Development/Libraries/C and C++
 Requires:       lib%{name}%{sover} = %{version}
-Requires:       lua-devel
+Requires:       lua53-devel
 
 %package -n lib%{name}%{sover}
 Summary:        Luabind Library
@@ -70,15 +69,26 @@
 %patch1 -p1
 
 %build
-%cmake -DBUILD_SHARED_LUABIND=ON -DLIB_DIR="%{_lib}"
-FREEMEM="$(cat /proc/meminfo | grep -Po 'MemFree.*(\d+)' | grep -Po '\d+')"
-N="$(nproc)"
-# Needs about 350MB / Thread (or get killed because of oom)
-if [ "$(($FREEMEM/350000))" -lt "$N" ]; then
-       N="$(($FREEMEM/350000))"
+# Parallel build settings ...
+limit_jobs="%{?jobs:%{jobs}}"
+# do not eat all memory
+echo "Available memory:"
+free
+echo "System limits:"
+ulimit -a
+if test -n "$limit_jobs" -a "$limit_jobs" -gt 1 ; then
+    mem_per_process=350
+    max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"`
+    max_jobs="$(($max_mem / $mem_per_process))"
+    test "$limit_jobs" -gt "$max_jobs" && limit_jobs="$max_jobs" echo 
"Warning: Reducing number of jobs to $max_jobs because of memory limits"
 fi
-[ "$N" -eq "0" ] && N=1
-make -j$N
+test "$limit_jobs" -le 0 && limit_jobs=1 && echo "Warning: Do not use the 
parallel build at all becuse of memory limits"
+
+%cmake \
+    -DLUA_INCLUDE_DIR=%{lua_incdir} \
+    -DBUILD_SHARED_LUABIND=ON \
+    -DLIB_DIR="%{_lib}"
+make -j$limit_jobs
 
 %install
 %cmake_install
@@ -87,13 +97,11 @@
 %postun -n lib%{name}%{sover} -p /sbin/ldconfig
 
 %files devel
-%defattr(-,root,root)
 %{_includedir}/luabind
 %{_libdir}/pkgconfig/%{name}.pc
 %{_libdir}/lib%{name}.so
 
 %files -n lib%{name}%{sover}
-%defattr(-,root,root)
 %doc LICENSE
 %{_libdir}/lib%{name}.so.*
 

++++++ _service ++++++
<services>
  <service mode="disabled" name="tar_scm">
    <param name="url">https://github.com/rpavlik/luabind.git</param>
    <param name="scm">git</param>
    <param name="changesgenerate">enable</param>
    <param name="filename">luabind</param>
    <param name="versionformat">0.9.1+git%cd.%h</param>
  </service>
  <service mode="disabled" name="recompress">
    <param name="file">*.tar</param>
    <param name="compression">xz</param>
  </service>
  <service mode="disabled" name="set_version"/>
</services>

Reply via email to