fix rpath
This commit is contained in:
parent
6d026567cb
commit
1e177aa65b
22
lutok.spec
22
lutok.spec
@ -1,12 +1,12 @@
|
|||||||
Name: lutok
|
Name: lutok
|
||||||
Version: 0.4
|
Version: 0.4
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: Provides a clean and safe C++ interface for lua
|
Summary: Provides a clean and safe C++ interface for lua
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://code.google.com/p/lutok/
|
URL: http://code.google.com/p/lutok/
|
||||||
Source0: http://lutok.googlecode.com/files/lutok-%{version}.tar.gz
|
Source0: http://lutok.googlecode.com/files/lutok-%{version}.tar.gz
|
||||||
Requires: lua >= 5.2
|
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
|
%description
|
||||||
Lutok provides a small C ++ wrapper around Lua to simplify the interaction
|
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
|
%build
|
||||||
%configure --docdir=%{_defaultdocdir}/lutok-doc-%{version} --disable-static \
|
%configure --docdir=%{_defaultdocdir}/lutok-doc-%{version} --disable-static \
|
||||||
--htmldir=%{_defaultdocdir}/lutok-doc-%{version}/html --without-doxygen
|
--htmldir=%{_defaultdocdir}/lutok-doc-%{version}/html --without-doxygen
|
||||||
%make_build testsdir=%{_libexecdir}/lutok/tests
|
%make_build testsdir=%{_libexecdir}/lutok/tests V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install doc_DATA= testsdir=%{_libexecdir}/lutok/tests
|
%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
|
%delete_la
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
@ -67,7 +76,7 @@ This package provides runtime tests for the Lutok library.
|
|||||||
%files
|
%files
|
||||||
%doc AUTHORS COPYING NEWS README
|
%doc AUTHORS COPYING NEWS README
|
||||||
%{_libdir}/liblutok.so.3*
|
%{_libdir}/liblutok.so.3*
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/lutok
|
%{_includedir}/lutok
|
||||||
%{_libdir}/liblutok.so
|
%{_libdir}/liblutok.so
|
||||||
@ -80,5 +89,8 @@ This package provides runtime tests for the Lutok library.
|
|||||||
%{_libexecdir}/lutok/tests
|
%{_libexecdir}/lutok/tests
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sept 10 2021 gongzhengtang<gongzhengtang@huawei.com> - 0.4-14
|
||||||
|
- fix rpath
|
||||||
|
|
||||||
* Tue Dec 31 2019 yangjian<yangjian79@huawei.com> - 0.4-13
|
* Tue Dec 31 2019 yangjian<yangjian79@huawei.com> - 0.4-13
|
||||||
- Package init
|
- Package initi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user