diff --git a/lutok.spec b/lutok.spec index 16a7981..313972a 100644 --- a/lutok.spec +++ b/lutok.spec @@ -1,12 +1,12 @@ Name: lutok Version: 0.4 -Release: 13 +Release: 14 Summary: Provides a clean and safe C++ interface for lua License: BSD URL: http://code.google.com/p/lutok/ Source0: http://lutok.googlecode.com/files/lutok-%{version}.tar.gz Requires: lua >= 5.2 -BuildRequires: gcc-c++ libatf-c++-devel >= 0.20 lua-devel >= 5.2 +BuildRequires: gcc-c++ libatf-c++-devel >= 0.20 lua-devel >= 5.2 chrpath %description Lutok provides a small C ++ wrapper around Lua to simplify the interaction @@ -55,10 +55,19 @@ This package provides runtime tests for the Lutok library. %build %configure --docdir=%{_defaultdocdir}/lutok-doc-%{version} --disable-static \ --htmldir=%{_defaultdocdir}/lutok-doc-%{version}/html --without-doxygen -%make_build testsdir=%{_libexecdir}/lutok/tests +%make_build testsdir=%{_libexecdir}/lutok/tests V=1 %install %make_install doc_DATA= testsdir=%{_libexecdir}/lutok/tests +chrpath -d %{buildroot}%{_libexecdir}/lutok/tests/state_test +chrpath -d %{buildroot}%{_libexecdir}/lutok/tests/c_gate_test +chrpath -d %{buildroot}%{_libexecdir}/lutok/tests/operations_test +chrpath -d %{buildroot}%{_libexecdir}/lutok/tests/exceptions_test +chrpath -d %{buildroot}%{_libexecdir}/lutok/tests/stack_cleaner_test +chrpath -d %{buildroot}%{_libexecdir}/lutok/tests/debug_test +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}/lutok/tests" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %delete_la %post -p /sbin/ldconfig @@ -67,7 +76,7 @@ This package provides runtime tests for the Lutok library. %files %doc AUTHORS COPYING NEWS README %{_libdir}/liblutok.so.3* - +%config(noreplace) /etc/ld.so.conf.d/* %files devel %{_includedir}/lutok %{_libdir}/liblutok.so @@ -80,5 +89,8 @@ This package provides runtime tests for the Lutok library. %{_libexecdir}/lutok/tests %changelog +* Fri Sept 10 2021 gongzhengtang - 0.4-14 +- fix rpath + * Tue Dec 31 2019 yangjian - 0.4-13 -- Package init +- Package initi