Tizen 2.0 Release 2.0_release
authorHyungKyu Song <hk76.song@samsung.com>
Thu, 14 Feb 2013 13:16:35 +0000 (22:16 +0900)
committerHyungKyu Song <hk76.song@samsung.com>
Thu, 14 Feb 2013 13:16:35 +0000 (22:16 +0900)
buildtest.c [new file with mode: 0644]
packaging/buildtest.spec [new file with mode: 0644]

diff --git a/buildtest.c b/buildtest.c
new file mode 100644 (file)
index 0000000..7e454b3
--- /dev/null
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(int argc, char* argv) {
+
+    printf("buildtest");
+    printf("buildtest");
+
+    return 0;
+}
diff --git a/packaging/buildtest.spec b/packaging/buildtest.spec
new file mode 100644 (file)
index 0000000..c39e3ad
--- /dev/null
@@ -0,0 +1,30 @@
+Name:       buildtest  
+Summary:    buildtest  
+Version:    0.1
+Release:    1
+Group:      TO_BE/FILLED_IN  
+License:    TO BE FILLED IN  
+Source0:    %{name}-%{version}.tar.gz  
+  
+%description  
+  
+  
+%prep  
+%setup -q  
+  
+%build  
+
+gcc buildtest.c -o buildtest 
+  
+%install  
+rm -rf %{buildroot}  
+mkdir -p %{buildroot}/usr/bin
+cp buildtest %{buildroot}/usr/bin/
+  
+%post  
+/sbin/ldconfig  
+   
+%postun -p /sbin/ldconfig  
+  
+%files  
+/usr/bin/buildtest