include("cmake/option/option_unix_common.cmake")
include("cmake/option/option_linux_common.cmake")
+# package config
+SET(prefix "/usr")
+SET(exec_prefix "${prefix}/bin")
+SET(includedir "${prefix}/include/${PROJECT_NAME}")
+SET(libdir "${prefix}/lib")
+SET(libname "${PROJECT_NAME}")
+CONFIGURE_FILE(${libname}.pc.in ${libname}.pc @ONLY)
+
# gbs-tizen specific
if(DEFINED TARGET_BOARD)
if(${TARGET_BOARD} STREQUAL "rpi3")
Release: 0
Summary: Asynchronous I/O for embedded system
Group: Development/System
-License: Apache-2.0
+License: Apache-2.0 and MIT
Source: %{name}-%{version}.tar.gz
Source1: %{name}.pc.in
Source1001: %{name}.manifest
%prep
%setup -q -c
+cp %{SOURCE1} .
cp %{SOURCE1001} .
%build
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp ./build/%{platform}/%{build_mode}/lib/* %{buildroot}%{_libdir}/
-
cp ./include/*.h %{buildroot}%{_includedir}/libtuv
-cp ./config/tizen/packaging/%{name}.pc.in %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
+cp ./build/%{platform}/%{build_mode}/cmake/libtuv.pc %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+# Copyright 2018-present Samsung Electronics Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
Name: libtuv
Version: 1.0.0
Release: 0
Summary: Asynchronous I/O for embedded system
Group: Development/System
-License: Apache-2.0
+License: Apache-2.0 and MIT
Source: %{name}-%{version}.tar.gz
Source1: %{name}.pc.in
Source1001: %{name}.manifest
%prep
%setup -q -c
+cp %{SOURCE1} .
cp %{SOURCE1001} .
%build
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp ./build/%{platform}/%{build_mode}/lib/* %{buildroot}%{_libdir}/
-
cp ./include/*.h %{buildroot}%{_includedir}/libtuv
-cp ./config/tizen/packaging/%{name}.pc.in %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
+cp ./build/%{platform}/%{build_mode}/cmake/libtuv.pc %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig