From 7c59c7c773a6938cbfb58f47a3db8c9f42775f75 Mon Sep 17 00:00:00 2001 From: Sumin Lim Date: Mon, 10 Apr 2017 13:30:23 +0900 Subject: [PATCH] Upload packaging folder Signed-off-by: Sumin Lim --- packaging/iotjs.manifest | 5 ++ packaging/iotjs.spec | 134 +++++++++++++++++++++++++++++++++++++++++++++++ packaging/iotjs01.spec | 134 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 273 insertions(+) create mode 100644 packaging/iotjs.manifest create mode 100644 packaging/iotjs.spec create mode 100644 packaging/iotjs01.spec diff --git a/packaging/iotjs.manifest b/packaging/iotjs.manifest new file mode 100644 index 0000000..f5a44ec --- /dev/null +++ b/packaging/iotjs.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/iotjs.spec b/packaging/iotjs.spec new file mode 100644 index 0000000..83c9b2b --- /dev/null +++ b/packaging/iotjs.spec @@ -0,0 +1,134 @@ +Name: iotjs +Version: 1.0.0 +Release: 0 +Summary: IoT.js Runtime +Group: Network & Connectivity +License: Apache-2.0 +URL: https://www.iotjs.net/ +Source0: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +# Use the official macros that are defined in Project Config (build.tizen.org). +# https://build.tizen.org/project/prjconf?project= +# - tizen_version_major 4 +# - tizen_version_minor 0 +# For backward compatibility. Not needed (always true) in unified environment. +# - unified (undefined) + +%ifarch arm armv7l +#BuildRequires: python-accel-armv7l-cross-arm +#BuildRequires: arm-linux-gnueabi +#BuildRequires: arm-linux-gnueabi-gcc +%define __arm__ "arm" +%define __ARM__ "arm" +%endif +%ifarch x86 +%define __X86__ "x86" +%endif +%ifarch i686 +%define __I686__ "i686" +%endif +%ifarch x86_64 +%define __x86_64 "x86_64" +%define __X86_64 "x86_64" +%endif +%define exe_install_dir %{buildroot}%{_bindir} + +%define sysroot_path "--sysroot=~/tizen-studio/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/" + +#%define ex_install_dir %{buildroot}%{_bindir} + +# Default values to be eventually overiden BEFORE or as gbs params: +# iotjs uses smallcase letter +%{!?target-arch: %define target-arch arm} +%{!?target_os: %define target_os tizen} +%{!?target_board: %define target_board artik10} +%{!?compile-flag: %define compile-flag %{sysroot_path}} +#BuildRequires: cross-arm-linux-gnueabi-binutils cross-arm-linux-gnueabi-kernel-headers cross-arm-linux-gnueabi-glibc-headers mpfr-devel gmp-devel mpc-devel + +BuildRequires: python, libcurl-devel +BuildRequires: openssl-devel +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(dlog) +#BuildRequires: gcc-arm-linux-gnueabi +#BuildRequires: cross-arm-linux-gnueabi-binutils cross-arm-linux-gnueabi-kernel-headers cross-arm-linux-gnueabi-glibc-headers +#BuildRequires: cross-arm-binutils +#BuildRequires: cross-armv7l-gcc48-icecream-backend + +Requires(postun): /sbin/ldconfig +Requires(post): /sbin/ldconfig + +%description +An open source reference implementation of the Iotjs +Iotjs Runtime is included. + +%package service +Summary: Development files for %{name} +Group: Network & Connectivity/Service +Requires: %{name} = %{version}-%{release} + +%description service +The %{name}-service package contains service libraries files for +developing applications that use %{name}-service. + +#%package test +#Summary: Development files for %{name} +#Group: Network & Connectivity/Testing +#Requires: %{name} = %{version}-%{release} + +#%description test +#The %{name}-test package contains example files to show +#how the iotjs works using %{name}-test + +%package devel +Summary: Development files for %{name} +Group: Network & Connectivity/Development +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q +chmod g-w %_sourcedir/* +cat LICENSE + +cp %{SOURCE1001} . + +%build +tools/build.py \ + --target-arch=arm --target-os=tizen --target-board=artik10 --no-init-submodule +#eol +#--compile-flag="--sysroot=~/tizen-studio/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/" + +%install +cp ./build/arm-tizen/debug/iotjs/iotjs %{buildroot}%{_bindir} +rm -rf %{buildroot} +#eol +rm -rfv . %{buildroot}/out %{buildroot}/${HOME} ||: + +install -d %{buildroot}%{_includedir}/iotjs + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%license LICENSE + +%files service +%manifest %{name}.manifest +%defattr (-,root,root,-) +%license LICENSE +%{_bindir}/* + +%files devel +%manifest %{name}.manifest +%defattr (-,root,root,-) +%license LICENSE +%{_bindir}/* diff --git a/packaging/iotjs01.spec b/packaging/iotjs01.spec new file mode 100644 index 0000000..46e3eaf --- /dev/null +++ b/packaging/iotjs01.spec @@ -0,0 +1,134 @@ +Name: iotjs +Version: 1.0.0 +Release: 0 +Summary: IoT.js Runtime +Group: Network & Connectivity +License: Apache-2.0 +URL: https://www.iotjs.net/ +Source0: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +# Use the official macros that are defined in Project Config (build.tizen.org). +# https://build.tizen.org/project/prjconf?project= +# - tizen_version_major 4 +# - tizen_version_minor 0 +# For backward compatibility. Not needed (always true) in unified environment. +# - unified (undefined) + +%ifarch arm armv7l +#BuildRequires: python-accel-armv7l-cross-arm +#BuildRequires: arm-linux-gnueabi +#BuildRequires: arm-linux-gnueabi-gcc +%define __arm__ "arm" +%define __ARM__ "arm" +%endif +%ifarch x86 +%define __X86__ "x86" +%endif +%ifarch i686 +%define __I686__ "i686" +%endif +%ifarch x86_64 +%define __x86_64 "x86_64" +%define __X86_64 "x86_64" +%endif +%define exe_install_dir %{buildroot}%{_bindir} + +%define sysroot_path "--sysroot=~/tizen-studio/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/" + +#%define ex_install_dir %{buildroot}%{_bindir} + +# Default values to be eventually overiden BEFORE or as gbs params: +# iotjs uses smallcase letter +%{!?target-arch: %define target-arch arm} +%{!?target_os: %define target_os tizen} +%{!?target_board: %define target_board artik10} +%{!?compile-flag: %define compile-flag %{sysroot_path}} +#BuildRequires: cross-arm-linux-gnueabi-binutils cross-arm-linux-gnueabi-kernel-headers cross-arm-linux-gnueabi-glibc-headers mpfr-devel gmp-devel mpc-devel + +BuildRequires: python, libcurl-devel +BuildRequires: openssl-devel +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(dlog) +#BuildRequires: gcc-arm-linux-gnueabi +#BuildRequires: cross-arm-linux-gnueabi-binutils cross-arm-linux-gnueabi-kernel-headers cross-arm-linux-gnueabi-glibc-headers +#BuildRequires: cross-arm-binutils +#BuildRequires: cross-armv7l-gcc48-icecream-backend + +Requires(postun): /sbin/ldconfig +Requires(post): /sbin/ldconfig + +%description +An open source reference implementation of the Iotjs +Iotjs Runtime is included. + +%package service +Summary: Development files for %{name} +Group: Network & Connectivity/Service +Requires: %{name} = %{version}-%{release} + +%description service +The %{name}-service package contains service libraries files for +developing applications that use %{name}-service. + +#%package test +#Summary: Development files for %{name} +#Group: Network & Connectivity/Testing +#Requires: %{name} = %{version}-%{release} + +#%description test +#The %{name}-test package contains example files to show +#how the iotjs works using %{name}-test + +%package devel +Summary: Development files for %{name} +Group: Network & Connectivity/Development +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q +chmod g-w %_sourcedir/* +cat LICENSE + +cp %{SOURCE1001} . + +%build +tools/build.py \ + --target-arch=arm --target-os=tizen --target-board=artik10 --no-init-submodule +#eol +#--compile-flag="--sysroot=~/tizen-studio/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/" + +%install +cp ./build/arm-tizen/debug/iotjs/iotjs %{buildroot}%{_bindir} +rm -rf %{buildroot} +#eol +rm -rfv . %{buildroot}/out %{buildroot}/${HOME} ||: + +install -d %{buildroot}%{_includedir}/iotjs + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%license LICENSE + +%files service +%manifest %{name}.manifest +%defattr (-,root,root,-) +%license LICENSE +%{_bindir}/* + +%files devel +%manifest %{name}.manifest +%defattr (-,root,root,-) +%license LICENSE +%{_bindir}/* -- 2.7.4