For current circumstances, we don't need explicit rpath for espp-service/client.
meson_options.txt is also revised for default value.
[Version] 0.3.4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
common_deps = []
-libdir_path = get_option('prefix') + '/' + get_option('libdir')
-message('libdir_path[' + libdir_path + ']')
-
message('================ common options ================')
conf_data.set('ESPP_SERVICE_VERSION', espp_service_version)
option('sock-path', type: 'string', value: '/tmp/espp_service.sock', description: 'ESPP service socket path')
option('dlog', type: 'boolean', value: true, description: 'Use dlog')
-option('service-app', type: 'boolean', value: false, description: 'Daemon is launched as Tizen service app')
+option('service-app', type: 'boolean', value: true, description: 'Daemon is launched as Tizen service app')
Name: espp-service
Summary: ESPP service package which contains client lib. and daemon binary
-Version: 0.3.3
+Version: 0.3.4
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
%setup -q -n %{name}-%{version}
cp %{SOURCE1} %{SOURCE2} .
-%define _lib_dir %{_libdir}
-
%build
meson setup --auto-features=disabled \
--prefix=/usr \
- --libdir=%{_lib_dir} \
+ --libdir=%{_libdir} \
--datadir=%{_datadir} \
-Dsock-path=/tmp/espp_service.sock \
%if "%{use_service_app}" == "1"
-Dservice-app=true \
+%else
+ -Dservice-app=false \
%endif
build
%files client
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%{_lib_dir}/*.so*
+%{_libdir}/*.so*
%exclude %{_libdir}/debug/*
%license LICENSE.APLv2
%files client-devel
%manifest %{name}.manifest
-%{_lib_dir}/*.so
+%{_libdir}/*.so
%{_libdir}/pkgconfig/espp-service*.pc
%{_includedir}/*.h
USER_SRCS = ./src/daemon/*.c ./src/common/*.c
# User Defines
-USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.3"
+USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.4"
# User Includes
USER_INC_DIRS = ./src/daemon ./src/common ./inc ./inc/esplusplayer_capi
version: espp_service_version,
soversion: version_major,
install: true,
- install_rpath: libdir_path
)
libespp_service_client_dep = declare_dependency(link_with : libespp_service_client,
include_directories : [configinc],
dependencies : daemon_deps,
install: true,
- install_rpath : libdir_path,
pie : true,
)