forked from pool/luabind
- Switch to service based tarball creation
- Cleanup the threads limiting - 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/luabind?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
dba43532f7
commit
c11085b784
14
_service
Normal file
14
_service
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<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>
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c2b612d4f5437edd4c2eafe24869edd9269e61eada01da3369f42e251a10c7e0
|
|
||||||
size 133316
|
|
3
luabind-0.9.1+git20150408.a0edf58.tar.xz
Normal file
3
luabind-0.9.1+git20150408.a0edf58.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5b7fac12c7a1c339260824d5974fada00e5220938b94741e517cec3594f7dc82
|
||||||
|
size 132360
|
@@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 14 15:17:57 UTC 2017 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Switch to service based tarball creation
|
||||||
|
- Cleanup the threads limiting
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 14 15:12:07 UTC 2017 - tchvatal@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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 4 18:27:53 UTC 2017 - rpm@fthiessen.de
|
Tue Apr 4 18:27:53 UTC 2017 - rpm@fthiessen.de
|
||||||
|
|
||||||
|
48
luabind.spec
48
luabind.spec
@@ -16,35 +16,34 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define base_version 0.9.1
|
%define sover %(echo "0.9.1" | sed "s/\\./_/g")
|
||||||
%define sover %(echo "%{base_version}" | sed "s/\\./_/g")
|
|
||||||
Name: luabind
|
Name: luabind
|
||||||
Version: %{base_version}+20150408
|
Version: 0.9.1+git20150408.a0edf58
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Lua C++ bindings
|
Summary: Lua C++ bindings
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: https://github.com/rpavlik/luabind
|
Url: https://github.com/rpavlik/luabind
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
Source99: update.sh
|
|
||||||
Patch0: fix-cmake-lib-version.patch
|
Patch0: fix-cmake-lib-version.patch
|
||||||
Patch1: install-pkgconfig.patch
|
Patch1: install-pkgconfig.patch
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: lua53-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: procps
|
||||||
|
Requires: lua53
|
||||||
%if 0%{?suse_version} > 1325
|
%if 0%{?suse_version} > 1325
|
||||||
BuildRequires: libboost_headers-devel
|
BuildRequires: libboost_headers-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: cmake
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: pkgconfig(lua)
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Luabind headers
|
Summary: Luabind headers
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: lib%{name}%{sover} = %{version}
|
Requires: lib%{name}%{sover} = %{version}
|
||||||
Requires: lua-devel
|
Requires: lua53-devel
|
||||||
|
|
||||||
%package -n lib%{name}%{sover}
|
%package -n lib%{name}%{sover}
|
||||||
Summary: Luabind Library
|
Summary: Luabind Library
|
||||||
@@ -70,15 +69,26 @@ This package contains the library.
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -DBUILD_SHARED_LUABIND=ON -DLIB_DIR="%{_lib}"
|
# Parallel build settings ...
|
||||||
FREEMEM="$(cat /proc/meminfo | grep -Po 'MemFree.*(\d+)' | grep -Po '\d+')"
|
limit_jobs="%{?jobs:%{jobs}}"
|
||||||
N="$(nproc)"
|
# do not eat all memory
|
||||||
# Needs about 350MB / Thread (or get killed because of oom)
|
echo "Available memory:"
|
||||||
if [ "$(($FREEMEM/350000))" -lt "$N" ]; then
|
free
|
||||||
N="$(($FREEMEM/350000))"
|
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
|
fi
|
||||||
[ "$N" -eq "0" ] && N=1
|
test "$limit_jobs" -le 0 && limit_jobs=1 && echo "Warning: Do not use the parallel build at all becuse of memory limits"
|
||||||
make -j$N
|
|
||||||
|
%cmake \
|
||||||
|
-DLUA_INCLUDE_DIR=%{lua_incdir} \
|
||||||
|
-DBUILD_SHARED_LUABIND=ON \
|
||||||
|
-DLIB_DIR="%{_lib}"
|
||||||
|
make -j$limit_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
@@ -87,13 +97,11 @@ make -j$N
|
|||||||
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/luabind
|
%{_includedir}/luabind
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%{_libdir}/lib%{name}.so
|
%{_libdir}/lib%{name}.so
|
||||||
|
|
||||||
%files -n lib%{name}%{sover}
|
%files -n lib%{name}%{sover}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_libdir}/lib%{name}.so.*
|
%{_libdir}/lib%{name}.so.*
|
||||||
|
|
||||||
|
22
update.sh
22
update.sh
@@ -1,22 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
NAME="luabind"
|
|
||||||
BASE_VERSION="0.9.1"
|
|
||||||
GIT_URL="https://github.com/rpavlik/luabind.git"
|
|
||||||
# Remove old source tarball
|
|
||||||
osc rm --force "$NAME"*".tar.xz"
|
|
||||||
git clone "$GIT_URL" "$NAME"
|
|
||||||
cd "$NAME"
|
|
||||||
# Get date of last commit
|
|
||||||
DATE=$(git log -1 --format=%cI | grep -Po "^[0-9-]*" | sed "s/-//g")
|
|
||||||
export VERSION="$BASE_VERSION+$DATE"
|
|
||||||
echo "New date: $DATE New Version: $VERSION"
|
|
||||||
cd ..
|
|
||||||
# Create tarball
|
|
||||||
mv "$NAME" "$NAME-$VERSION"
|
|
||||||
tar --exclude-vcs -cJf "$NAME-$VERSION".tar.xz "$NAME-$VERSION"
|
|
||||||
rm -rf "$NAME-$VERSION/"
|
|
||||||
# Update version in spec file
|
|
||||||
sed -i "s/Version:.*/Version: $VERSION/" "$NAME.spec"
|
|
||||||
# Add files to obs
|
|
||||||
osc add "$NAME-$VERSION.tar.xz"
|
|
Reference in New Issue
Block a user