Upload packaging folder
authorSumin Lim <sumin.lim@samsung.com>
Mon, 10 Apr 2017 04:30:23 +0000 (13:30 +0900)
committerSumin Lim <sumin.lim@samsung.com>
Mon, 10 Apr 2017 04:30:23 +0000 (13:30 +0900)
Signed-off-by: Sumin Lim <sumin.lim@samsung.com>
packaging/iotjs.manifest [new file with mode: 0644]
packaging/iotjs.spec [new file with mode: 0644]
packaging/iotjs01.spec [new file with mode: 0644]

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