[Title] Modified template to support rpm packaging
authordonghee.yang <donghee.yang@samsung.com>
Mon, 26 Mar 2012 06:18:31 +0000 (15:18 +0900)
committerdonghee.yang <donghee.yang@samsung.com>
Mon, 26 Mar 2012 06:18:31 +0000 (15:18 +0900)
org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/packaging/hello.spec [new file with mode: 0644]
org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/template.xml

diff --git a/org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/packaging/hello.spec b/org.tizen.nativeplatform/templates/InhouseFrameworkPackages/HelloWorldProject/packaging/hello.spec
new file mode 100644 (file)
index 0000000..4b7c5f7
--- /dev/null
@@ -0,0 +1,34 @@
+Name: com.samsung.hello
+Version: 1.0.0
+Release: 1
+License: To be filled
+Summary: Your copyright notice
+Packager: bluleo78 <bluleo78@bluleo78-desktop>
+Group: Application
+Source: %{name}-%{version}.tar.gz
+%description
+Your copyright notice
+
+%prep
+%setup -q
+
+%build
+mkdir -p bin
+gcc src/hello.c -o bin/hello
+touch build-stamp
+
+%install
+echo "INSTALL"
+mkdir -p $RPM_BUILD_ROOT/usr/bin
+cp bin/hello $RPM_BUILD_ROOT/usr/bin
+
+%clean
+rm -f build-stamp configure-stamp
+
+%files
+%defattr(644, root, root)
+%attr(755, root, root) /usr/bin
+
+%changelog
+* Sat Mar 24 2012 bluleo78 <bluleo78@bluleo78-desktop>
+ - Initial Release
index 8e42f4c..6244d56 100644 (file)
                                <simple name="source" value="debian/com.samsung.hello.install"/>
                                <simple name="target" value="debian/com.samsung.hello.install"/>
                                <simple name="replaceable" value="true"/>
-                       </element>              
+                       </element>
+                       <element>
+                               <simple name="source" value="packaging/hello.spec"/>
+                               <simple name="target" value="packaging/$(projectName).spec"/>
+                               <simple name="replaceable" value="true"/>
+                       </element>
                </complex-array>
        </process>