summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongkwon Park <hkwonn.park@samsung.com>2015-03-05 14:09:09 +0900
committerHongkwon Park <hkwonn.park@samsung.com>2015-03-05 14:09:09 +0900
commit6053a2103360a9647e892a4c6cfebc165a456f6d (patch)
treefe747d6631ff58b488adec7d5b44677727b1f33d
downloadbuild-config-6053a2103360a9647e892a4c6cfebc165a456f6d.tar.gz
build-config-6053a2103360a9647e892a4c6cfebc165a456f6d.tar.bz2
build-config-6053a2103360a9647e892a4c6cfebc165a456f6d.zip
Add build-config files of tizen_2.3_mobiletizen_2.3_mobile
Signed-off-by: Hongkwon Park <hkwonn.park@samsung.com>
-rw-r--r--build-emulator.conf399
-rw-r--r--build-target.conf789
l---------build.conf1
-rw-r--r--meta.xml15
-rwxr-xr-xupdate_from_obs36
5 files changed, 1240 insertions, 0 deletions
diff --git a/build-emulator.conf b/build-emulator.conf
new file mode 100644
index 0000000..8456005
--- /dev/null
+++ b/build-emulator.conf
@@ -0,0 +1,399 @@
+%define _project Tizen:2.3:Mobile
+
+### from Tizen:2.3:Mobile
+%define _repository emulator
+
+Macros:
+%vendor obs://build.tizen.org/Tizen:2.3:Mobile
+%_project Tizen:2.3:Mobile
+
+%distribution Tizen:2.3:Mobile / emulator
+%_project Tizen:2.3:Mobile
+
+### from Tizen:2.3:Mobile
+
+%_repository emulator
+:Macros
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build build-compare
+#####################################
+Substitute: gettext gettext-tools
+Ignore: pkg-config
+#####################################
+Prefer: opengl-es-virtual-drv opengl-es-virtual-drv-devel
+
+%ifarch armv7l armv7el
+Substitute: libncurses ncurses-libs
+Substitute: libncurses-devel ncurses-devel
+Preinstall: nss
+Ignore: bash:libncurses
+%endif
+Support: util-linux
+VMinstall: util-linux libblkid libuuid
+%ifarch %arm armv7l
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+%endif
+%ifarch %ix86 x86_64
+ExportFilter: \.armv5el\.rpm$ armv5el
+ExportFilter: \.armv5tel\.rpm$ armv5el
+ExportFilter: \.armv6el\.rpm$ armv6el
+ExportFilter: \.armv6l\.rpm$ armv6el
+ExportFilter: \.armv6vl\.rpm$ armv6el
+ExportFilter: \.armv7el\.rpm$ armv7el
+ExportFilter: \.armv7l\.rpm$ armv7l armv7el
+ExportFilter: \.armv7vl\.rpm$ armv7el
+ExportFilter: \.armv7hl\.rpm$ armv7hl armv8el
+ExportFilter: \.armv7thl\.rpm$ armv7thl armv8el
+ExportFilter: \.armv7tnhl\.rpm$ armv7tnhl armv8el
+ExportFilter: \.armv7nhl\.rpm$ armv7nhl armv8el
+%endif
+%ifarch aarch64
+ExportFilter: ^qemu-linux-user.*\..*\.rpm$ . armv7l armv7hl aarch64
+ExportFilter: ^qemu-accel-armv7hl.*\..*\.rpm$ . armv7hl
+ExportFilter: ^qemu-accel-armv7l.*\..*\.rpm$ . armv7l
+ExportFilter: ^qemu-accel-aarch64.*\..*\.rpm$ . aarch64
+ExportFilter: ^.*cross-aarch64.*\.rpm$ . aarch64
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+%endif
+# filter out packages of cross setup on ia32
+ExportFilter: .*vanish\.rpm
+PublishFilter: .*vanish\.rpm
+ExportFilter: .*dontuse\.rpm
+PublishFilter: .*dontuse\.rpm
+Prefer: coreutils
+#
+# ARM Start
+#
+%ifarch %arm
+# arm land
+Hostarch: i586
+Preinstall: qemu.x86_64
+
+%define cross_5 1
+%define cross_7 1
+%define native 1
+%define cross_7h 1
+%ifarch armv8el
+Changetarget: armv7hl-tizen-linux
+%define _gnu gnueabi
+%if %{cross_7h}
+Prefer: cross-armv7hl-binutils-accel-armv7hl
+Prefer: cross-armv7hl-gcc-accel-armv7hl
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%define speedtools 1
+Support: cross-armv7tnhl-platformfile
+%endif
+%endif
+
+########################
+# preselect rpm targets
+# more ifs for _repository possible as needed
+#########################
+%ifarch armv5el
+Changetarget: armv5tel-tizen-linux
+%define _gnu gnueabi
+%if %{cross_5}
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%endif
+%endif
+%ifarch armv6el
+Changetarget: armv6l-tizen-linux
+%define _gnu gnueabi
+%endif
+%ifarch armv7l armv7el
+Changetarget: armv7l-tizen-linux
+%define _gnu gnueabi
+%if %{cross_7}
+Support: cross-armv7l-platformfile
+Prefer: cross-armv7l-binutils-accel-armv7l
+Prefer: cross-armv7l-gcc-accel-armv7l
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%define speedtools 1
+%endif
+%endif
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+%ifarch aarch64
+Hostarch: x86_64
+Preinstall: qemu-accel-aarch64-cross-aarch64
+Runscripts: qemu-accel-aarch64-cross-aarch64
+Preinstall: libmount libblkid libuuid
+Macros:
+%_use_internal_dependency_generator 1
+:Macros
+%endif # aarch64
+%if %speedtools
+Support: patch-x86-arm findutils-x86-arm gawk-x86-arm fdupes-x86-arm
+Preinstall: libfile-x86-arm
+Preinstall: elfutils-libelf-x86-arm
+Preinstall: nss-softokn-freebl-x86-arm
+Preinstall: nss-x86-arm
+Preinstall: nspr-x86-arm
+Preinstall: libgcc-x86-arm
+Preinstall: libacl-x86-arm
+Preinstall: libattr-x86-arm
+Preinstall: libcap-x86-arm
+Preinstall: liblua-x86-arm
+Preinstall: popt-x86-arm
+Preinstall: xz-libs-x86-arm
+Preinstall: zlib-x86-arm
+Preinstall: file
+Preinstall: sqlite-x86-arm
+Preinstall: mpfr-x86-arm
+Preinstall: gmp-x86-arm
+Preinstall: mpc-x86-arm
+Preinstall: bzip2-libs-x86-arm
+Preinstall: rpm-x86-arm
+Preinstall: rpm-libs-x86-arm
+Required: tar-x86-arm
+Required: sed-x86-arm
+Required: elfutils-x86-arm
+Required: elfutils-libs-x86-arm
+Required: elfutils-libelf-x86-arm
+Required: diffutils-x86-arm
+Required: gzip-x86-arm
+Required: libgcc-x86-arm
+Required: libacl-x86-arm
+Required: libattr-x86-arm
+Required: coreutils
+Required: coreutils-x86-arm
+Required: libcap-x86-arm
+Required: liblua-x86-arm
+Required: popt-x86-arm
+Required: xz-libs-x86-arm
+Required: zlib-x86-arm
+Required: file
+Required: file-x86-arm
+Required: make
+Required: make-x86-arm
+Required: libfile-x86-arm
+Required: sqlite-x86-arm
+Required: rpm-x86-arm
+Required: rpm-libs-x86-arm
+Required: rpm-build-x86-arm
+Runscripts: rpm-x86-arm
+Runscripts: rpm-libs-x86-arm
+Runscripts: rpm-build-x86-arm
+Support: !rpmlint-mini
+Support: !rpmlint-mini-x86-arm
+Prefer: python-libs
+%endif
+
+%if %speedcommon
+# cross-compilation/speedup
+Preinstall: tizen-accelerator eglibc-x86-arm
+Runscripts: tizen-accelerator
+Required: tizen-accelerator
+%endif
+%if %speedbash
+# bash
+Preinstall: ncurses-libs-x86-arm
+Preinstall: bash-x86-arm
+Runscripts: bash-x86-arm
+%endif
+%if %speedbinutils
+Required: cross-arm-binutils-accel
+%endif
+%if %speedgcc
+Required: cross-arm-gcc-accel
+%endif
+Preinstall: rpm
+Preinstall: rpm-libs
+Required: rpm
+Prefer: rpm-libs
+Prefer: rpm
+# now i586 land
+%else
+
+Ignore: ncurses-libs-x86 libncurses-x86
+Preinstall: rpm rpm-libs
+Required: rpm
+%endif
+#
+# ARM End
+#
+Preinstall: setup filesystem tizen-release
+Preinstall: bash bzip2 coreutils diffutils liblua
+Preinstall: eglibc eglibc-common libacl libattr
+Preinstall: libgcc libcap
+Preinstall: popt readline sed tar zlib sqlite
+Preinstall: ncurses-libs
+Preinstall: elfutils-libelf bzip2-libs libstdc++ setup libfile
+Preinstall: xz-libs
+Preinstall: nss nspr
+Preinstall: nss-softokn-freebl
+Runscripts: setup
+VMinstall: perl libblkid e2fsprogs-libs libuuid perl-libs grep libpcre
+Preinstall:
+Required: binutils gcc eglibc rpm-build libtool lzo-devel
+Support: cpio gcc-c++ perl-libs perl findutils
+Support: perl-HTML-Tagset
+Support: perl-IO-Compress-Base
+Support: perl-Module-Pluggable
+Support: perl-Pod-Escapes
+Support: perl-TimeDate
+Support: perl-Compress-Raw-Zlib
+Support: perl-ExtUtils-ParseXS
+Support: perl-Pod-Simple
+Support: perl-Test-Simple
+Support: perl-IO-Compress-Zlib
+Support: perl-Test-Harness
+Support: perl-ExtUtils-MakeMaker
+Support: perl-CPAN
+Support: file findutils zlib bzip2
+Support: gzip
+Support: ncurses-libs
+Support: net-tools
+Support: make patch sed gawk tar grep coreutils pkgconfig autoconf automake
+Support: m4 libfile tzdata tizen-release
+Support: kernel-headers eglibc-headers
+Support: xz-lzma-compat
+Keep: binutils cpp file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind eglibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: eglibc-headers perl-libs
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: xz-lzma-compat
+Keep: mpc mpfr tar sed
+Keep: cloog cloog-ppl ppl ppl-pwl
+Keep: nss-softokn-freebl
+Keep: setup
+Ignore: iso-codes:xml-common
+##############################################################
+# This is for Main project
+Prefer: libasound libasound-devel
+Prefer: avsystem avsystem-devel
+%if %{_repository} == "target"
+Prefer: kernel-headers-linux-3.0
+%else
+Prefer: emulator-kernel-user-headers
+%endif
+Prefer: libjournal libjournal-proprietary
+##############################################################
+# This is for Global configuration
+# You should uncomment following two options for model project
+#Optflags: armv7l -Os -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb
+Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0
+##############################################################
+# This is for Global configuration
+Macros:
+%sec_build_project_name kirana_sdk
+%tizen_profile_name mobile
+%tizen_crash_enable 1
+:Macros
+##############################################################
+# This is build parameters
+%if (0%{!?_repository:1}) || ("%{_repository}" == "target")
+Macros:
+%tizen_build_binary_release_type_eng 1
+%tizen_build_binary_release_type_daily 1
+%sec_build_binary_debug_enable 1
+%sec_build_binary_crash_enable 1
+%tizen_build_binary_release_type_partner 1
+%sec_product_feature_multiwindow 0
+:Macros
+%endif
+%if %{_repository} == "emulator"
+Macros:
+%tizen_build_binary_release_type_eng 1
+%sec_build_binary_sdk 1
+%sec_build_binary_debug_enable 1
+%sec_build_binary_crash_enable 1
+%tizen_sdk 1
+:Macros
+%endif
+
+Macros:
+
+### from Tizen:2.3:Mobile
+%_repository emulator
+##############################################################
+# This is temporary global product features
+
+%sec_product_feature_profile_lite 1
+%dist %{?sec_build_conf_tizen_product_name}%{!?sec_build_conf_tizen_product_name:slp}
+%tizen_version 2.3.0
+%tizen 2.3
+%vendor tizen
+%_vendor tizen
+%_default_patch_fuzz 2
+# python main version
+%py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
+# directories
+%py_prefix %(echo `python -c "import sys; print sys.prefix"`)
+%py_libdir %{py_prefix}/lib/python%{py_ver}
+%py_incdir /usr/include/python%{py_ver}
+%py_sitedir %{py_libdir}/site-packages
+%py_dyndir %{py_libdir}/lib-dynload
+# pure python modules compilation
+%py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%ext_info .gz
+%ext_man .gz
+%info_add(:-:) test -x /sbin/install-info -a -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \
+%{nil}
+%info_del(:-:) test -x /sbin/install-info -a ! -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --quiet --delete --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \
+%{nil}
+%lang_package \
+%package locale \
+Summary: Translations and Locale for package %{name}\
+Group: Translations\
+AutoReqProv: 0\
+%description locale\
+This package provides translations for package %{name}.\
+%files locale -f %{name}.lang\
+%defattr(-,root,root,-)\
+%{nil}
+
+%docs_package \
+%package docs \
+Summary: Documentation for package %{name}\
+Group: Documentation\
+AutoReqProv: 0\
+%description docs\
+This package provides documentation for package %{name}.\
+%files docs -f documentation.list\
+%defattr(-,root,root,-)\
+%{nil}
+%devel_package \
+%package devel \
+Summary: Development files for package %{name}\
+Group: Development\
+%description devel\
+This package provides header files and other developer releated files for package %{name}.\
+%files devel \
+%{_includedir}/*\
+%{_libdir}/pkgconfig/*.pc\
+%{_libdir}/*.so\
+%{nil}
+
+%_smp_mflags -j4
+
+%remove_docs \
+rm -rf %{?buildroot:%{buildroot}}%{_infodir} \
+rm -rf %{?buildroot:%{buildroot}}%{_defaultdocdir} \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/doc/%{name} \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/gtk-doc \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/man \
+find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]" | xargs rm -f -- \
+find %{?buildroot:%{buildroot}} -regex ".*/man/../man./.*\.[0-9]" | xargs rm -f -- \
+find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]pm" | xargs rm -f --
diff --git a/build-target.conf b/build-target.conf
new file mode 100644
index 0000000..1c09eb4
--- /dev/null
+++ b/build-target.conf
@@ -0,0 +1,789 @@
+%define _project Tizen:2.3:Mobile
+
+### from Tizen:2.3:Mobile
+%define _repository emulator
+
+Macros:
+%vendor obs://build.tizen.org/Tizen:2.3:Mobile
+%_project Tizen:2.3:Mobile
+
+### from Tizen:2.3:Mobile
+
+%_repository emulator
+:Macros
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build build-compare
+#####################################
+Substitute: gettext gettext-tools
+Ignore: pkg-config
+#####################################
+Prefer: opengl-es-virtual-drv opengl-es-virtual-drv-devel
+
+%ifarch armv7l armv7el
+Substitute: libncurses ncurses-libs
+Substitute: libncurses-devel ncurses-devel
+Preinstall: nss
+Ignore: bash:libncurses
+%endif
+Support: util-linux
+VMinstall: util-linux libblkid libuuid
+%ifarch %arm armv7l
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+%endif
+%ifarch %ix86 x86_64
+ExportFilter: \.armv5el\.rpm$ armv5el
+ExportFilter: \.armv5tel\.rpm$ armv5el
+ExportFilter: \.armv6el\.rpm$ armv6el
+ExportFilter: \.armv6l\.rpm$ armv6el
+ExportFilter: \.armv6vl\.rpm$ armv6el
+ExportFilter: \.armv7el\.rpm$ armv7el
+ExportFilter: \.armv7l\.rpm$ armv7l armv7el
+ExportFilter: \.armv7vl\.rpm$ armv7el
+ExportFilter: \.armv7hl\.rpm$ armv7hl armv8el
+ExportFilter: \.armv7thl\.rpm$ armv7thl armv8el
+ExportFilter: \.armv7tnhl\.rpm$ armv7tnhl armv8el
+ExportFilter: \.armv7nhl\.rpm$ armv7nhl armv8el
+%endif
+%ifarch aarch64
+ExportFilter: ^qemu-linux-user.*\..*\.rpm$ . armv7l armv7hl aarch64
+ExportFilter: ^qemu-accel-armv7hl.*\..*\.rpm$ . armv7hl
+ExportFilter: ^qemu-accel-armv7l.*\..*\.rpm$ . armv7l
+ExportFilter: ^qemu-accel-aarch64.*\..*\.rpm$ . aarch64
+ExportFilter: ^.*cross-aarch64.*\.rpm$ . aarch64
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+%endif
+# filter out packages of cross setup on ia32
+ExportFilter: .*vanish\.rpm
+PublishFilter: .*vanish\.rpm
+ExportFilter: .*dontuse\.rpm
+PublishFilter: .*dontuse\.rpm
+Prefer: coreutils
+#
+# ARM Start
+#
+%ifarch %arm
+# arm land
+Hostarch: i586
+Preinstall: qemu.x86_64
+
+%define cross_5 1
+%define cross_7 1
+%define native 1
+%define cross_7h 1
+%ifarch armv8el
+Changetarget: armv7hl-tizen-linux
+%define _gnu gnueabi
+%if %{cross_7h}
+Prefer: cross-armv7hl-binutils-accel-armv7hl
+Prefer: cross-armv7hl-gcc-accel-armv7hl
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%define speedtools 1
+Support: cross-armv7tnhl-platformfile
+%endif
+%endif
+
+########################
+# preselect rpm targets
+# more ifs for _repository possible as needed
+#########################
+%ifarch armv5el
+Changetarget: armv5tel-tizen-linux
+%define _gnu gnueabi
+%if %{cross_5}
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%endif
+%endif
+%ifarch armv6el
+Changetarget: armv6l-tizen-linux
+%define _gnu gnueabi
+%endif
+%ifarch armv7l armv7el
+Changetarget: armv7l-tizen-linux
+%define _gnu gnueabi
+%if %{cross_7}
+Support: cross-armv7l-platformfile
+Prefer: cross-armv7l-binutils-accel-armv7l
+Prefer: cross-armv7l-gcc-accel-armv7l
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%define speedtools 1
+%endif
+%endif
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+%ifarch aarch64
+Hostarch: x86_64
+Preinstall: qemu-accel-aarch64-cross-aarch64
+Runscripts: qemu-accel-aarch64-cross-aarch64
+Preinstall: libmount libblkid libuuid
+Macros:
+%_use_internal_dependency_generator 1
+:Macros
+%endif # aarch64
+%if %speedtools
+Support: patch-x86-arm findutils-x86-arm gawk-x86-arm fdupes-x86-arm
+Preinstall: libfile-x86-arm
+Preinstall: elfutils-libelf-x86-arm
+Preinstall: nss-softokn-freebl-x86-arm
+Preinstall: nss-x86-arm
+Preinstall: nspr-x86-arm
+Preinstall: libgcc-x86-arm
+Preinstall: libacl-x86-arm
+Preinstall: libattr-x86-arm
+Preinstall: libcap-x86-arm
+Preinstall: liblua-x86-arm
+Preinstall: popt-x86-arm
+Preinstall: xz-libs-x86-arm
+Preinstall: zlib-x86-arm
+Preinstall: file
+Preinstall: sqlite-x86-arm
+Preinstall: mpfr-x86-arm
+Preinstall: gmp-x86-arm
+Preinstall: mpc-x86-arm
+Preinstall: bzip2-libs-x86-arm
+Preinstall: rpm-x86-arm
+Preinstall: rpm-libs-x86-arm
+Required: tar-x86-arm
+Required: sed-x86-arm
+Required: elfutils-x86-arm
+Required: elfutils-libs-x86-arm
+Required: elfutils-libelf-x86-arm
+Required: diffutils-x86-arm
+Required: gzip-x86-arm
+Required: libgcc-x86-arm
+Required: libacl-x86-arm
+Required: libattr-x86-arm
+Required: coreutils
+Required: coreutils-x86-arm
+Required: libcap-x86-arm
+Required: liblua-x86-arm
+Required: popt-x86-arm
+Required: xz-libs-x86-arm
+Required: zlib-x86-arm
+Required: file
+Required: file-x86-arm
+Required: make
+Required: make-x86-arm
+Required: libfile-x86-arm
+Required: sqlite-x86-arm
+Required: rpm-x86-arm
+Required: rpm-libs-x86-arm
+Required: rpm-build-x86-arm
+Runscripts: rpm-x86-arm
+Runscripts: rpm-libs-x86-arm
+Runscripts: rpm-build-x86-arm
+Support: !rpmlint-mini
+Support: !rpmlint-mini-x86-arm
+Prefer: python-libs
+%endif
+
+%if %speedcommon
+# cross-compilation/speedup
+Preinstall: tizen-accelerator eglibc-x86-arm
+Runscripts: tizen-accelerator
+Required: tizen-accelerator
+%endif
+%if %speedbash
+# bash
+Preinstall: ncurses-libs-x86-arm
+Preinstall: bash-x86-arm
+Runscripts: bash-x86-arm
+%endif
+%if %speedbinutils
+Required: cross-arm-binutils-accel
+%endif
+%if %speedgcc
+Required: cross-arm-gcc-accel
+%endif
+Preinstall: rpm
+Preinstall: rpm-libs
+Required: rpm
+Prefer: rpm-libs
+Prefer: rpm
+# now i586 land
+%else
+
+Ignore: ncurses-libs-x86 libncurses-x86
+Preinstall: rpm rpm-libs
+Required: rpm
+%endif
+#
+# ARM End
+#
+Preinstall: setup filesystem tizen-release
+Preinstall: bash bzip2 coreutils diffutils liblua
+Preinstall: eglibc eglibc-common libacl libattr
+Preinstall: libgcc libcap
+Preinstall: popt readline sed tar zlib sqlite
+Preinstall: ncurses-libs
+Preinstall: elfutils-libelf bzip2-libs libstdc++ setup libfile
+Preinstall: xz-libs
+Preinstall: nss nspr
+Preinstall: nss-softokn-freebl
+Runscripts: setup
+VMinstall: perl libblkid e2fsprogs-libs libuuid perl-libs grep libpcre
+Preinstall:
+Required: binutils gcc eglibc rpm-build libtool lzo-devel
+Support: cpio gcc-c++ perl-libs perl findutils
+Support: perl-HTML-Tagset
+Support: perl-IO-Compress-Base
+Support: perl-Module-Pluggable
+Support: perl-Pod-Escapes
+Support: perl-TimeDate
+Support: perl-Compress-Raw-Zlib
+Support: perl-ExtUtils-ParseXS
+Support: perl-Pod-Simple
+Support: perl-Test-Simple
+Support: perl-IO-Compress-Zlib
+Support: perl-Test-Harness
+Support: perl-ExtUtils-MakeMaker
+Support: perl-CPAN
+Support: file findutils zlib bzip2
+Support: gzip
+Support: ncurses-libs
+Support: net-tools
+Support: make patch sed gawk tar grep coreutils pkgconfig autoconf automake
+Support: m4 libfile tzdata tizen-release
+Support: kernel-headers eglibc-headers
+Support: xz-lzma-compat
+Keep: binutils cpp file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind eglibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: eglibc-headers perl-libs
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: xz-lzma-compat
+Keep: mpc mpfr tar sed
+Keep: cloog cloog-ppl ppl ppl-pwl
+Keep: nss-softokn-freebl
+Keep: setup
+Ignore: iso-codes:xml-common
+##############################################################
+# This is for Main project
+Prefer: libasound libasound-devel
+Prefer: avsystem avsystem-devel
+%if %{_repository} == "target"
+Prefer: kernel-headers-linux-3.0
+%else
+Prefer: emulator-kernel-user-headers
+%endif
+Prefer: libjournal libjournal-proprietary
+##############################################################
+# This is for Global configuration
+# You should uncomment following two options for model project
+#Optflags: armv7l -Os -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb
+Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0
+##############################################################
+# This is for Global configuration
+Macros:
+%sec_build_project_name kirana_sdk
+%tizen_profile_name mobile
+%tizen_crash_enable 1
+:Macros
+##############################################################
+# This is build parameters
+%if (0%{!?_repository:1}) || ("%{_repository}" == "target")
+Macros:
+%tizen_build_binary_release_type_eng 1
+%tizen_build_binary_release_type_daily 1
+%sec_build_binary_debug_enable 1
+%sec_build_binary_crash_enable 1
+%tizen_build_binary_release_type_partner 1
+%sec_product_feature_multiwindow 0
+:Macros
+%endif
+%if %{_repository} == "emulator"
+Macros:
+%tizen_build_binary_release_type_eng 1
+%sec_build_binary_sdk 1
+%sec_build_binary_debug_enable 1
+%sec_build_binary_crash_enable 1
+%tizen_sdk 1
+:Macros
+%endif
+
+### from Tizen:2.3:Mobile
+%define _repository target
+
+Macros:
+
+### from Tizen:2.3:Mobile
+%_repository emulator
+##############################################################
+# This is temporary global product features
+
+%sec_product_feature_profile_lite 1
+%dist %{?sec_build_conf_tizen_product_name}%{!?sec_build_conf_tizen_product_name:slp}
+%tizen_version 2.3.0
+%tizen 2.3
+%vendor tizen
+%_vendor tizen
+%_default_patch_fuzz 2
+# python main version
+%py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
+# directories
+%py_prefix %(echo `python -c "import sys; print sys.prefix"`)
+%py_libdir %{py_prefix}/lib/python%{py_ver}
+%py_incdir /usr/include/python%{py_ver}
+%py_sitedir %{py_libdir}/site-packages
+%py_dyndir %{py_libdir}/lib-dynload
+# pure python modules compilation
+%py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%ext_info .gz
+%ext_man .gz
+%info_add(:-:) test -x /sbin/install-info -a -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \
+%{nil}
+%info_del(:-:) test -x /sbin/install-info -a ! -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --quiet --delete --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \
+%{nil}
+%lang_package \
+%package locale \
+Summary: Translations and Locale for package %{name}\
+Group: Translations\
+AutoReqProv: 0\
+%description locale\
+This package provides translations for package %{name}.\
+%files locale -f %{name}.lang\
+%defattr(-,root,root,-)\
+%{nil}
+
+%docs_package \
+%package docs \
+Summary: Documentation for package %{name}\
+Group: Documentation\
+AutoReqProv: 0\
+%description docs\
+This package provides documentation for package %{name}.\
+%files docs -f documentation.list\
+%defattr(-,root,root,-)\
+%{nil}
+%devel_package \
+%package devel \
+Summary: Development files for package %{name}\
+Group: Development\
+%description devel\
+This package provides header files and other developer releated files for package %{name}.\
+%files devel \
+%{_includedir}/*\
+%{_libdir}/pkgconfig/*.pc\
+%{_libdir}/*.so\
+%{nil}
+
+%_smp_mflags -j4
+
+%remove_docs \
+rm -rf %{?buildroot:%{buildroot}}%{_infodir} \
+rm -rf %{?buildroot:%{buildroot}}%{_defaultdocdir} \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/doc/%{name} \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/gtk-doc \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/man \
+find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]" | xargs rm -f -- \
+find %{?buildroot:%{buildroot}} -regex ".*/man/../man./.*\.[0-9]" | xargs rm -f -- \
+find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]pm" | xargs rm -f --
+%distribution Tizen:2.3:Mobile / target
+%_project Tizen:2.3:Mobile
+
+### from Tizen:2.3:Mobile
+
+%_repository target
+:Macros
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build build-compare
+#####################################
+Substitute: gettext gettext-tools
+Ignore: pkg-config
+#####################################
+Prefer: opengl-es-virtual-drv opengl-es-virtual-drv-devel
+
+%ifarch armv7l armv7el
+Substitute: libncurses ncurses-libs
+Substitute: libncurses-devel ncurses-devel
+Preinstall: nss
+Ignore: bash:libncurses
+%endif
+Support: util-linux
+VMinstall: util-linux libblkid libuuid
+%ifarch %arm armv7l
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+%endif
+%ifarch %ix86 x86_64
+ExportFilter: \.armv5el\.rpm$ armv5el
+ExportFilter: \.armv5tel\.rpm$ armv5el
+ExportFilter: \.armv6el\.rpm$ armv6el
+ExportFilter: \.armv6l\.rpm$ armv6el
+ExportFilter: \.armv6vl\.rpm$ armv6el
+ExportFilter: \.armv7el\.rpm$ armv7el
+ExportFilter: \.armv7l\.rpm$ armv7l armv7el
+ExportFilter: \.armv7vl\.rpm$ armv7el
+ExportFilter: \.armv7hl\.rpm$ armv7hl armv8el
+ExportFilter: \.armv7thl\.rpm$ armv7thl armv8el
+ExportFilter: \.armv7tnhl\.rpm$ armv7tnhl armv8el
+ExportFilter: \.armv7nhl\.rpm$ armv7nhl armv8el
+%endif
+%ifarch aarch64
+ExportFilter: ^qemu-linux-user.*\..*\.rpm$ . armv7l armv7hl aarch64
+ExportFilter: ^qemu-accel-armv7hl.*\..*\.rpm$ . armv7hl
+ExportFilter: ^qemu-accel-armv7l.*\..*\.rpm$ . armv7l
+ExportFilter: ^qemu-accel-aarch64.*\..*\.rpm$ . aarch64
+ExportFilter: ^.*cross-aarch64.*\.rpm$ . aarch64
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+%endif
+# filter out packages of cross setup on ia32
+ExportFilter: .*vanish\.rpm
+PublishFilter: .*vanish\.rpm
+ExportFilter: .*dontuse\.rpm
+PublishFilter: .*dontuse\.rpm
+Prefer: coreutils
+#
+# ARM Start
+#
+%ifarch %arm
+# arm land
+Hostarch: i586
+Preinstall: qemu.x86_64
+
+%define cross_5 1
+%define cross_7 1
+%define native 1
+%define cross_7h 1
+%ifarch armv8el
+Changetarget: armv7hl-tizen-linux
+%define _gnu gnueabi
+%if %{cross_7h}
+Prefer: cross-armv7hl-binutils-accel-armv7hl
+Prefer: cross-armv7hl-gcc-accel-armv7hl
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%define speedtools 1
+Support: cross-armv7tnhl-platformfile
+%endif
+%endif
+
+########################
+# preselect rpm targets
+# more ifs for _repository possible as needed
+#########################
+%ifarch armv5el
+Changetarget: armv5tel-tizen-linux
+%define _gnu gnueabi
+%if %{cross_5}
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%endif
+%endif
+%ifarch armv6el
+Changetarget: armv6l-tizen-linux
+%define _gnu gnueabi
+%endif
+%ifarch armv7l armv7el
+Changetarget: armv7l-tizen-linux
+%define _gnu gnueabi
+%if %{cross_7}
+Support: cross-armv7l-platformfile
+Prefer: cross-armv7l-binutils-accel-armv7l
+Prefer: cross-armv7l-gcc-accel-armv7l
+%define speedcommon 1
+%define speedbash 1
+%define speedbinutils 1
+%define speedgcc 1
+%define native 0
+%define speedtools 1
+%endif
+%endif
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+%ifarch aarch64
+Hostarch: x86_64
+Preinstall: qemu-accel-aarch64-cross-aarch64
+Runscripts: qemu-accel-aarch64-cross-aarch64
+Preinstall: libmount libblkid libuuid
+Macros:
+%_use_internal_dependency_generator 1
+:Macros
+%endif # aarch64
+%if %speedtools
+Support: patch-x86-arm findutils-x86-arm gawk-x86-arm fdupes-x86-arm
+Preinstall: libfile-x86-arm
+Preinstall: elfutils-libelf-x86-arm
+Preinstall: nss-softokn-freebl-x86-arm
+Preinstall: nss-x86-arm
+Preinstall: nspr-x86-arm
+Preinstall: libgcc-x86-arm
+Preinstall: libacl-x86-arm
+Preinstall: libattr-x86-arm
+Preinstall: libcap-x86-arm
+Preinstall: liblua-x86-arm
+Preinstall: popt-x86-arm
+Preinstall: xz-libs-x86-arm
+Preinstall: zlib-x86-arm
+Preinstall: file
+Preinstall: sqlite-x86-arm
+Preinstall: mpfr-x86-arm
+Preinstall: gmp-x86-arm
+Preinstall: mpc-x86-arm
+Preinstall: bzip2-libs-x86-arm
+Preinstall: rpm-x86-arm
+Preinstall: rpm-libs-x86-arm
+Required: tar-x86-arm
+Required: sed-x86-arm
+Required: elfutils-x86-arm
+Required: elfutils-libs-x86-arm
+Required: elfutils-libelf-x86-arm
+Required: diffutils-x86-arm
+Required: gzip-x86-arm
+Required: libgcc-x86-arm
+Required: libacl-x86-arm
+Required: libattr-x86-arm
+Required: coreutils
+Required: coreutils-x86-arm
+Required: libcap-x86-arm
+Required: liblua-x86-arm
+Required: popt-x86-arm
+Required: xz-libs-x86-arm
+Required: zlib-x86-arm
+Required: file
+Required: file-x86-arm
+Required: make
+Required: make-x86-arm
+Required: libfile-x86-arm
+Required: sqlite-x86-arm
+Required: rpm-x86-arm
+Required: rpm-libs-x86-arm
+Required: rpm-build-x86-arm
+Runscripts: rpm-x86-arm
+Runscripts: rpm-libs-x86-arm
+Runscripts: rpm-build-x86-arm
+Support: !rpmlint-mini
+Support: !rpmlint-mini-x86-arm
+Prefer: python-libs
+%endif
+
+%if %speedcommon
+# cross-compilation/speedup
+Preinstall: tizen-accelerator eglibc-x86-arm
+Runscripts: tizen-accelerator
+Required: tizen-accelerator
+%endif
+%if %speedbash
+# bash
+Preinstall: ncurses-libs-x86-arm
+Preinstall: bash-x86-arm
+Runscripts: bash-x86-arm
+%endif
+%if %speedbinutils
+Required: cross-arm-binutils-accel
+%endif
+%if %speedgcc
+Required: cross-arm-gcc-accel
+%endif
+Preinstall: rpm
+Preinstall: rpm-libs
+Required: rpm
+Prefer: rpm-libs
+Prefer: rpm
+# now i586 land
+%else
+
+Ignore: ncurses-libs-x86 libncurses-x86
+Preinstall: rpm rpm-libs
+Required: rpm
+%endif
+#
+# ARM End
+#
+Preinstall: setup filesystem tizen-release
+Preinstall: bash bzip2 coreutils diffutils liblua
+Preinstall: eglibc eglibc-common libacl libattr
+Preinstall: libgcc libcap
+Preinstall: popt readline sed tar zlib sqlite
+Preinstall: ncurses-libs
+Preinstall: elfutils-libelf bzip2-libs libstdc++ setup libfile
+Preinstall: xz-libs
+Preinstall: nss nspr
+Preinstall: nss-softokn-freebl
+Runscripts: setup
+VMinstall: perl libblkid e2fsprogs-libs libuuid perl-libs grep libpcre
+Preinstall:
+Required: binutils gcc eglibc rpm-build libtool lzo-devel
+Support: cpio gcc-c++ perl-libs perl findutils
+Support: perl-HTML-Tagset
+Support: perl-IO-Compress-Base
+Support: perl-Module-Pluggable
+Support: perl-Pod-Escapes
+Support: perl-TimeDate
+Support: perl-Compress-Raw-Zlib
+Support: perl-ExtUtils-ParseXS
+Support: perl-Pod-Simple
+Support: perl-Test-Simple
+Support: perl-IO-Compress-Zlib
+Support: perl-Test-Harness
+Support: perl-ExtUtils-MakeMaker
+Support: perl-CPAN
+Support: file findutils zlib bzip2
+Support: gzip
+Support: ncurses-libs
+Support: net-tools
+Support: make patch sed gawk tar grep coreutils pkgconfig autoconf automake
+Support: m4 libfile tzdata tizen-release
+Support: kernel-headers eglibc-headers
+Support: xz-lzma-compat
+Keep: binutils cpp file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind eglibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: eglibc-headers perl-libs
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: xz-lzma-compat
+Keep: mpc mpfr tar sed
+Keep: cloog cloog-ppl ppl ppl-pwl
+Keep: nss-softokn-freebl
+Keep: setup
+Ignore: iso-codes:xml-common
+##############################################################
+# This is for Main project
+Prefer: libasound libasound-devel
+Prefer: avsystem avsystem-devel
+%if %{_repository} == "target"
+Prefer: kernel-headers-linux-3.0
+%else
+Prefer: emulator-kernel-user-headers
+%endif
+Prefer: libjournal libjournal-proprietary
+##############################################################
+# This is for Global configuration
+# You should uncomment following two options for model project
+#Optflags: armv7l -Os -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb
+Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0
+##############################################################
+# This is for Global configuration
+Macros:
+%sec_build_project_name kirana_sdk
+%tizen_profile_name mobile
+%tizen_crash_enable 1
+:Macros
+##############################################################
+# This is build parameters
+%if (0%{!?_repository:1}) || ("%{_repository}" == "target")
+Macros:
+%tizen_build_binary_release_type_eng 1
+%tizen_build_binary_release_type_daily 1
+%sec_build_binary_debug_enable 1
+%sec_build_binary_crash_enable 1
+%tizen_build_binary_release_type_partner 1
+%sec_product_feature_multiwindow 0
+:Macros
+%endif
+%if %{_repository} == "emulator"
+Macros:
+%tizen_build_binary_release_type_eng 1
+%sec_build_binary_sdk 1
+%sec_build_binary_debug_enable 1
+%sec_build_binary_crash_enable 1
+%tizen_sdk 1
+:Macros
+%endif
+
+Macros:
+
+### from Tizen:2.3:Mobile
+%_repository target
+##############################################################
+# This is temporary global product features
+
+%sec_product_feature_profile_lite 1
+%dist %{?sec_build_conf_tizen_product_name}%{!?sec_build_conf_tizen_product_name:slp}
+%tizen_version 2.3.0
+%tizen 2.3
+%vendor tizen
+%_vendor tizen
+%_default_patch_fuzz 2
+# python main version
+%py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
+# directories
+%py_prefix %(echo `python -c "import sys; print sys.prefix"`)
+%py_libdir %{py_prefix}/lib/python%{py_ver}
+%py_incdir /usr/include/python%{py_ver}
+%py_sitedir %{py_libdir}/site-packages
+%py_dyndir %{py_libdir}/lib-dynload
+# pure python modules compilation
+%py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%ext_info .gz
+%ext_man .gz
+%info_add(:-:) test -x /sbin/install-info -a -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \
+%{nil}
+%info_del(:-:) test -x /sbin/install-info -a ! -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --quiet --delete --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \
+%{nil}
+%lang_package \
+%package locale \
+Summary: Translations and Locale for package %{name}\
+Group: Translations\
+AutoReqProv: 0\
+%description locale\
+This package provides translations for package %{name}.\
+%files locale -f %{name}.lang\
+%defattr(-,root,root,-)\
+%{nil}
+
+%docs_package \
+%package docs \
+Summary: Documentation for package %{name}\
+Group: Documentation\
+AutoReqProv: 0\
+%description docs\
+This package provides documentation for package %{name}.\
+%files docs -f documentation.list\
+%defattr(-,root,root,-)\
+%{nil}
+%devel_package \
+%package devel \
+Summary: Development files for package %{name}\
+Group: Development\
+%description devel\
+This package provides header files and other developer releated files for package %{name}.\
+%files devel \
+%{_includedir}/*\
+%{_libdir}/pkgconfig/*.pc\
+%{_libdir}/*.so\
+%{nil}
+
+%_smp_mflags -j4
+
+%remove_docs \
+rm -rf %{?buildroot:%{buildroot}}%{_infodir} \
+rm -rf %{?buildroot:%{buildroot}}%{_defaultdocdir} \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/doc/%{name} \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/gtk-doc \
+rm -rf %{?buildroot:%{buildroot}}%{_datadir}/man \
+find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]" | xargs rm -f -- \
+find %{?buildroot:%{buildroot}} -regex ".*/man/../man./.*\.[0-9]" | xargs rm -f -- \
+find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]pm" | xargs rm -f --
diff --git a/build.conf b/build.conf
new file mode 120000
index 0000000..1173ea3
--- /dev/null
+++ b/build.conf
@@ -0,0 +1 @@
+build-target.conf \ No newline at end of file
diff --git a/meta.xml b/meta.xml
new file mode 100644
index 0000000..14241ff
--- /dev/null
+++ b/meta.xml
@@ -0,0 +1,15 @@
+<project name="Tizen:2.3:Mobile">
+ <title>Tizen:2.3:Mobile</title>
+ <description/>
+ <person userid="jang798" role="maintainer"/>
+ <person userid="jang798" role="bugowner"/>
+ <person userid="mavesec" role="maintainer"/>
+ <repository name="target">
+ <path project="Tizen:2.3:Mobile" repository="emulator"/>
+ <arch>armv7l</arch>
+ <arch>i586</arch>
+ </repository>
+ <repository name="emulator">
+ <arch>i586</arch>
+ </repository>
+</project>
diff --git a/update_from_obs b/update_from_obs
new file mode 100755
index 0000000..10426f7
--- /dev/null
+++ b/update_from_obs
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+project="Tizen:2.3:Mobile"
+default_target="target"
+osc_cmd="osc -A https://api.tizen.org"
+
+targets=`$osc_cmd repos $project | awk '{print $1}'|sort |uniq`
+
+# removing all git tracked files except for myself
+#git ls-files|grep -v update_from_obs |xargs rm -f
+#git add -u
+
+echo "synchronizing build configs ..."
+for target in $targets
+do
+ $osc_cmd buildconfig $project $target > build-${target}.conf
+# git add build-${target}.conf
+done
+
+# get project meta file
+echo "synchronizing project meta file"
+$osc_cmd meta prj $project > meta.xml
+#git add meta.xml
+
+# set default build config
+ln -sf build-${default_target}.conf build.conf
+#git add build.conf
+
+# commit changes to git tree
+#git commit -m "Update from OBS at `date +\"%Y-%m-%d %H:%M:%S\"`" >/dev/null
+#if [ $? -eq 0 ]; then
+# echo "all local changes commit locally"
+# echo "please review it with 'git show' and submit it with 'git push'"
+#else
+# echo "no change needs to be made"
+#fi