tizen 2.3 release tizen_2.3 submit/tizen_2.3/20150202.063456 tizen_2.3_release
authorjk7744.park <jk7744.park@samsung.com>
Sun, 1 Feb 2015 04:50:02 +0000 (13:50 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Sun, 1 Feb 2015 04:50:02 +0000 (13:50 +0900)
12 files changed:
.nofile [moved from modules_wearable/.nofile with 100% similarity]
CMakeLists.txt [moved from modules_wearable/CMakeLists.txt with 100% similarity]
dukgenerator.pc.in [moved from modules_wearable/dukgenerator.pc.in with 100% similarity]
inc/dukgen.h [moved from modules_wearable/inc/dukgen.h with 100% similarity]
modules_mobile/CMakeLists.txt [deleted file]
modules_mobile/dukgenerator.pc.in [deleted file]
modules_mobile/inc/dukgen.h [deleted file]
modules_mobile/packaging/dukgenerator.spec [deleted file]
modules_mobile/src/dukgen.c [deleted file]
modules_wearable/packaging/dukgenerator.spec [deleted file]
packaging/dukgenerator.spec
src/dukgen.c [moved from modules_wearable/src/dukgen.c with 100% similarity]

similarity index 100%
rename from modules_wearable/.nofile
rename to .nofile
similarity index 100%
rename from modules_wearable/inc/dukgen.h
rename to inc/dukgen.h
diff --git a/modules_mobile/CMakeLists.txt b/modules_mobile/CMakeLists.txt
deleted file mode 100644 (file)
index 2c2ad84..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(dukgenerator C)
-
-SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(EXEC_PREFIX "\${prefix}")
-SET(LIBDIR "\${prefix}/lib")
-SET(INCLUDEDIR "\${prefix}/include")
-
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/inc)
-
-SET(pc_requires " cryptsvc ")
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED ${pc_requires})
-
-FOREACH(flag ${pkgs_CFLAGS})
-       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(source_dir "./src")
-SET(include_dir "./inc")
-
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${EXTRA_CFLAGS}")
-
-##################################################################################################################
-SET(SRCS
-       ${source_dir}/dukgen.c
-)
-
-SET(libcryptsvc_LDFLAGS " -module -avoid-version ${pkgs_LDFLAGS} ")
-SET(libcryptsvc_CFLAGS " ${CFLAGS} -fvisibility=hidden -g -fPIC -I${CMAKE_CURRENT_SOURCE_DIR}/inc ")
-SET(libcryptsvc_CPPFLAGS " -DPIC ")
-
-#ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
-ADD_LIBRARY(${PROJECT_NAME} ${SRCS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
-SET_TARGET_PROPERTIES(
-       ${PROJECT_NAME}
-       PROPERTIES
-       VERSION ${FULLVER}
-       SOVERSION ${MAJORVER}
-)
-##################################################################################################################
-
-FIND_PROGRAM(UNAME NAMES uname)
-EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
-IF("${ARCH}" STREQUAL "arm")
-       ADD_DEFINITIONS("-DTARGET")
-       MESSAGE("add -DTARGET")
-ENDIF("${ARCH}" STREQUAL "arm")
-
-SET(PC_NAME ${PROJECT_NAME})
-SET(PC_DESCRIPTION ${DESCRIPTION})
-SET(PC_LDFLAGS -l${PROJECT_NAME})
-SET(PC_REQUIRED ${pc_requires})
-CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
-
-INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/inc/ DESTINATION /usr/include)
-
-ADD_DEFINITIONS(-D_bool_cryptsvc)
diff --git a/modules_mobile/dukgenerator.pc.in b/modules_mobile/dukgenerator.pc.in
deleted file mode 100755 (executable)
index 2cd5754..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# Package Information for pkg-config
-
-prefix=@PREFIX@
-libdir=@PREFIX@/lib
-includedir=@PREFIX@/include
-
-Name: @PC_NAME@
-Description: @DESCRIPTION@
-Version: @FULLVER@
-Requires: @PC_REQUIRED@
-Libs: -L${libdir} @PC_LDFLAGS@
-Cflags: -I${includedir}
-
diff --git a/modules_mobile/inc/dukgen.h b/modules_mobile/inc/dukgen.h
deleted file mode 100644 (file)
index 1317176..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-//
-// Copyright (c) 2013 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.
-//
-
-#ifndef _DUK_GENERATOR_H_
-#define _DUK_GENERATOR_H_
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-__attribute__((visibility("hidden")))
-char* GetDeviceUniqueKey(char* pAppId, int idLen, int keyLen);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif //_DUK_GENERATOR_H_
-
-
-
diff --git a/modules_mobile/packaging/dukgenerator.spec b/modules_mobile/packaging/dukgenerator.spec
deleted file mode 100644 (file)
index b5cab3d..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-Name:      dukgenerator
-Summary:   nothing
-Version:    1.0.0
-Release:    7
-Group:      security
-License:    Apache License, Version 2.0
-Source0:    %{name}-%{version}.tar.gz
-BuildRequires: cmake
-
-BuildRequires: pkgconfig(openssl)
-BuildRequires: pkgconfig(cryptsvc)
-
-%description
-
-%package devel
-Summary: nothing
-Group: security
-Requires: %{name} = %{version}-%{release}
-
-%description devel
-
-%prep
-%setup -q
-
-%build
-MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION=%{summary}
-make %{?jobs:-j%jobs}
-
-
-%install
-rm -rf %{buildroot}
-#%make_install
-%{__make} DESTDIR=%{?buildroot:%{buildroot}} INSTALL_ROOT=%{?buildroot:%{buildroot}} install
-rm -f %{?buildroot:%{buildroot}}%{_infodir}/dir
-find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f --
-
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
-
-
-%files
-%{_libdir}/*.a
-%{_datadir}/license/%{name}
-
-
-%files devel
-%{_includedir}/*
-%{_libdir}/pkgconfig/dukgenerator.pc
diff --git a/modules_mobile/src/dukgen.c b/modules_mobile/src/dukgen.c
deleted file mode 100755 (executable)
index 86a2e4d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// Copyright (c) 2013 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.
-//
-//
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <openssl/evp.h>
-#include <openssl/rand.h>
-#include <SecCryptoSvc.h>
-#include <dukgen.h>
-
-char* GetDeviceUniqueKey(char* pAppId, int idLen, int keyLen)
-{
-       unsigned char* pUniqueKey = NULL;
-       char* pDuk = NULL;
-       bool result = true;
-
-       pUniqueKey = (unsigned char*)calloc(keyLen,1);
-       result = SecFrameGeneratePlatformUniqueKey((unsigned int)keyLen , pUniqueKey);
-       if(result == false)
-       {
-               free(pUniqueKey);
-               return NULL;
-       }
-
-       pDuk = (char*)calloc(keyLen, 1);
-       PKCS5_PBKDF2_HMAC_SHA1(pAppId, idLen, (unsigned char*)pUniqueKey, keyLen, 1, keyLen, (unsigned char*)pDuk);
-       free(pUniqueKey);
-
-       return pDuk;
-}
diff --git a/modules_wearable/packaging/dukgenerator.spec b/modules_wearable/packaging/dukgenerator.spec
deleted file mode 100644 (file)
index eee018c..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-Name:      dukgenerator
-Summary:   nothing
-Version:    1.0.0
-Release:    7
-Group:      security
-License:    Apache License, Version 2.0
-Source0:    %{name}-%{version}.tar.gz
-BuildRequires: cmake
-
-BuildRequires: pkgconfig(openssl)
-BuildRequires: pkgconfig(cryptsvc)
-
-%description
-
-%package devel
-Summary: nothing
-Group: security
-Requires: %{name} = %{version}-%{release}
-
-%description devel
-
-%prep
-%setup -q
-
-%build
-%if 0%{?tizen_build_binary_release_type_eng}
-export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
-export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
-%endif
-MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION=%{summary}
-make %{?jobs:-j%jobs}
-
-
-%install
-rm -rf %{buildroot}
-#%make_install
-%{__make} DESTDIR=%{?buildroot:%{buildroot}} INSTALL_ROOT=%{?buildroot:%{buildroot}} install
-rm -f %{?buildroot:%{buildroot}}%{_infodir}/dir
-find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f --
-
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
-
-
-%files
-%{_libdir}/*.a
-%{_datadir}/license/%{name}
-
-
-%files devel
-%{_includedir}/*
-%{_libdir}/pkgconfig/dukgenerator.pc
index 81197ae..eee018c 100644 (file)
@@ -1,13 +1,10 @@
 Name:      dukgenerator
 Summary:   nothing
-Version:    1.0.1
+Version:    1.0.0
 Release:    7
 Group:      security
 License:    Apache License, Version 2.0
 Source0:    %{name}-%{version}.tar.gz
-
-%if "%{_repository}" == "wearable"
-
 BuildRequires: cmake
 
 BuildRequires: pkgconfig(openssl)
@@ -26,11 +23,6 @@ Requires: %{name} = %{version}-%{release}
 %setup -q
 
 %build
-echo "########################################"
-echo "TIZEN_PROFILE_WEARABLE"
-echo "########################################"
-cp -R modules_wearable/* .
-
 %if 0%{?tizen_build_binary_release_type_eng}
 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
@@ -60,57 +52,3 @@ cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
 %files devel
 %{_includedir}/*
 %{_libdir}/pkgconfig/dukgenerator.pc
-
-
-%else
-
-BuildRequires: cmake
-
-BuildRequires: pkgconfig(openssl)
-BuildRequires: pkgconfig(cryptsvc)
-
-%description
-
-%package devel
-Summary: nothing
-Group: security
-Requires: %{name} = %{version}-%{release}
-
-%description devel
-
-%prep
-%setup -q
-
-%build
-echo "########################################"
-echo "TIZEN_PROFILE_MOBILE"
-echo "########################################"
-cp -R modules_mobile/* .
-
-MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION=%{summary}
-make %{?jobs:-j%jobs}
-
-
-%install
-rm -rf %{buildroot}
-#%make_install
-%{__make} DESTDIR=%{?buildroot:%{buildroot}} INSTALL_ROOT=%{?buildroot:%{buildroot}} install
-rm -f %{?buildroot:%{buildroot}}%{_infodir}/dir
-find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f --
-
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
-
-
-%files
-%{_libdir}/*.a
-%{_datadir}/license/%{name}
-
-
-%files devel
-%{_includedir}/*
-%{_libdir}/pkgconfig/dukgenerator.pc
-
-
-%endif
similarity index 100%
rename from modules_wearable/src/dukgen.c
rename to src/dukgen.c