From 9003737686ff7eb8551fb2bbe6262462a3e2fb48 Mon Sep 17 00:00:00 2001 From: Hongkwon Park Date: Thu, 5 Mar 2015 14:13:11 +0900 Subject: Add build-config files of tizen_2.3_wearable Signed-off-by: Hongkwon Park --- build-emulator.conf | 371 ++++++++++++++++++++++++++ build-target.conf | 733 ++++++++++++++++++++++++++++++++++++++++++++++++++++ build.conf | 1 + meta.xml | 16 ++ update_from_obs | 36 +++ 5 files changed, 1157 insertions(+) create mode 100644 build-emulator.conf create mode 100644 build-target.conf create mode 120000 build.conf create mode 100644 meta.xml create mode 100755 update_from_obs diff --git a/build-emulator.conf b/build-emulator.conf new file mode 100644 index 0000000..d847eb0 --- /dev/null +++ b/build-emulator.conf @@ -0,0 +1,371 @@ +%define _project Tizen:2.3:Wearable + +### from Tizen:2.3:Wearable +%define _repository emulator + +Macros: +%vendor obs://build.tizen.org/Tizen:2.3:Wearable +%_project Tizen:2.3:Wearable + +%distribution Tizen:2.3:Wearable / emulator +%_project Tizen:2.3:Wearable + +### from Tizen:2.3:Wearable + +%_repository emulator +:Macros + +Patterntype: rpm-md comps +Release: . +Support: build build-compare +##################################### +Substitute: gettext gettext-tools +Ignore: pkg-config +##################################### +Prefer: opengl-es-virtual-drv opengl-es-virtual-drv-devel + +%ifarch armv7l armv7el +Prefer: avsystem avsystem-devel +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 +# 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 +%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 +# +Prefer: avsystem-ymu831 avsystem-ymu831-devel +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: libjournal libjournal-proprietary +############################################################## +# This is for Global configuration +# You should uncomment following two options for model project +############################################################## +# This is for Global configuration +Macros: +%sec_build_project_name pontea_sdk +%tizen_profile_name wearable +%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 +:Macros +%endif +%if %{_repository} == "emulator" +Prefer: emulator-yagl emulator-yagl-devel +Prefer: emulator-kernel-user-headers kernel-headers-3.4-exynos3250 +#Support: emulator-macros +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:Wearable +%_repository emulator +############################################################## +# This is temporary global product features + +%sec_product_feature_profile_wearable 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..0469f76 --- /dev/null +++ b/build-target.conf @@ -0,0 +1,733 @@ +%define _project Tizen:2.3:Wearable + +### from Tizen:2.3:Wearable +%define _repository emulator + +Macros: +%vendor obs://build.tizen.org/Tizen:2.3:Wearable +%_project Tizen:2.3:Wearable + +### from Tizen:2.3:Wearable + +%_repository emulator +:Macros + +Patterntype: rpm-md comps +Release: . +Support: build build-compare +##################################### +Substitute: gettext gettext-tools +Ignore: pkg-config +##################################### +Prefer: opengl-es-virtual-drv opengl-es-virtual-drv-devel + +%ifarch armv7l armv7el +Prefer: avsystem avsystem-devel +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 +# 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 +%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 +# +Prefer: avsystem-ymu831 avsystem-ymu831-devel +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: libjournal libjournal-proprietary +############################################################## +# This is for Global configuration +# You should uncomment following two options for model project +############################################################## +# This is for Global configuration +Macros: +%sec_build_project_name pontea_sdk +%tizen_profile_name wearable +%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 +:Macros +%endif +%if %{_repository} == "emulator" +Prefer: emulator-yagl emulator-yagl-devel +Prefer: emulator-kernel-user-headers kernel-headers-3.4-exynos3250 +#Support: emulator-macros +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:Wearable +%define _repository target + +Macros: + +### from Tizen:2.3:Wearable +%_repository emulator +############################################################## +# This is temporary global product features + +%sec_product_feature_profile_wearable 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:Wearable / target +%_project Tizen:2.3:Wearable + +### from Tizen:2.3:Wearable + +%_repository target +:Macros + +Patterntype: rpm-md comps +Release: . +Support: build build-compare +##################################### +Substitute: gettext gettext-tools +Ignore: pkg-config +##################################### +Prefer: opengl-es-virtual-drv opengl-es-virtual-drv-devel + +%ifarch armv7l armv7el +Prefer: avsystem avsystem-devel +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 +# 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 +%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 +# +Prefer: avsystem-ymu831 avsystem-ymu831-devel +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: libjournal libjournal-proprietary +############################################################## +# This is for Global configuration +# You should uncomment following two options for model project +############################################################## +# This is for Global configuration +Macros: +%sec_build_project_name pontea_sdk +%tizen_profile_name wearable +%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 +:Macros +%endif +%if %{_repository} == "emulator" +Prefer: emulator-yagl emulator-yagl-devel +Prefer: emulator-kernel-user-headers kernel-headers-3.4-exynos3250 +#Support: emulator-macros +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:Wearable +%_repository target +############################################################## +# This is temporary global product features + +%sec_product_feature_profile_wearable 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..8613654 --- /dev/null +++ b/meta.xml @@ -0,0 +1,16 @@ + + Tizen:2.3:Wearable + + + + + + + + armv7l + i586 + + + i586 + + diff --git a/update_from_obs b/update_from_obs new file mode 100755 index 0000000..92d4fff --- /dev/null +++ b/update_from_obs @@ -0,0 +1,36 @@ +#!/bin/bash + +project="Tizen:2.3:Wearable" +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 -- cgit v1.2.3