Add supporting pkg-config accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/5.0/unified/20181102.030745 accepted/tizen/5.5/unified/20191031.012120 accepted/tizen/5.5/unified/mobile/hotfix/20201027.074424 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100749 accepted/tizen/6.0/unified/20201030.110710 accepted/tizen/6.0/unified/hotfix/20201102.234951 accepted/tizen/6.0/unified/hotfix/20201103.051433 accepted/tizen/6.5/unified/20211029.014145 accepted/tizen/7.0/unified/20221110.062626 accepted/tizen/7.0/unified/hotfix/20221116.111038 accepted/tizen/8.0/unified/20231005.095126 accepted/tizen/9.0/unified/20241030.234947 accepted/tizen/unified/20180913.063844 submit/tizen/20180912.043921 submit/tizen_5.0/20181101.000007 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 submit/tizen_6.5/20211028.163501 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorHaesik Jun <haesik.jun@samsung.com>
Tue, 11 Sep 2018 07:40:32 +0000 (16:40 +0900)
committerHaesik Jun <haesik.jun@samsung.com>
Tue, 11 Sep 2018 07:59:17 +0000 (16:59 +0900)
Change-Id: I4a0f6c404b4da38dd5ae8bed6f8c111915668637
Signed-off-by: Haesik, Jun <haesik.jun@samsung.com>
cmake/option/option_noarch-tizen.cmake
config/tizen/packaging/libtuv.spec
packaging/libtuv.spec

index 19ffdd4..a316cba 100644 (file)
 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")
index 14e9b16..eaeb01e 100644 (file)
@@ -17,7 +17,7 @@ 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
@@ -43,6 +43,7 @@ Development libraries for %{name}
 
 %prep
 %setup -q -c
+cp %{SOURCE1} .
 cp %{SOURCE1001} .
 
 %build
@@ -54,9 +55,9 @@ mkdir -p %{buildroot}%{_includedir}/libtuv
 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
index 80675f8..eaeb01e 100644 (file)
@@ -1,9 +1,23 @@
+# 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
@@ -29,6 +43,7 @@ Development libraries for %{name}
 
 %prep
 %setup -q -c
+cp %{SOURCE1} .
 cp %{SOURCE1001} .
 
 %build
@@ -40,9 +55,9 @@ mkdir -p %{buildroot}%{_includedir}/libtuv
 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