INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/com.samsung.${PROJECT_NAME}.desktop DESTINATION /opt/share/applications)
INSTALL(DIRECTORY DESTINATION ${DATADIR})
-
-
+INSTALL(DIRECTORY DESTINATION ${LIBDIR})
+INSTALL(DIRECTORY DESTINATION ${RESDIR})
\ No newline at end of file
* initial release
- -- Author <E-mail> Thu, 26 Jan 2012 14:52:56 +0900
+ -- $(author) <$(e-mail)> Thu, 26 Jan 2012 14:52:56 +0900
Source: $(projectName)
Priority: extra
-Maintainer: Author <E-mail>
+Maintainer: $(author) <$(e-mail)>
Build-Depends: debhelper (>= 5), libappcore-agent-dev, dlog-dev
Standards-Version: 0.1.0
Package: com.samsung.$(projectName)
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: agent application
+Description: $(description)
Package: com.samsung.$(projectName)-dbg
Section: debug
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: agent application (unstripped)
+Description: agent application (unstripped)
\ No newline at end of file
dh_testdir
# Add here commands to configure the package.
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) -DVERSION=$(VERSION)
-
-
-
touch configure-stamp
-
build: build-stamp
build-stamp: configure-stamp
dh_clean
-
-
-
install: build
dh_testdir
dh_testroot
# Add here commands to install the package into debian/info-alarm.
$(MAKE) DESTDIR=$(CURDIR)/debian/com.samsung.$(projectName) install
-
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install configure
\ No newline at end of file
--- /dev/null
+Name: com.samsung.$(projectName)
+Version: 0.1.0
+Release: 1
+License: To be filled
+Summary: agent application
+Packager: $(author) <$(e-mail)>
+Group: Application
+Source: %{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: pkgconfig(appcore-agent)
+BuildRequires: pkgconfig(capi-appfw-application)
+BuildRequires: pkgconfig(dlog)
+
+%description
+$(description)
+
+%define PREFIX "/opt/apps/com.samsung.$(projectName)"
+%define RESDIR "/opt/apps/com.samsung.$(projectName)/res"
+
+%prep
+%setup -q
+
+%build
+export LDFLAGS="${LDFLAGS} -Wl,--rpath,/usr/lib -Wl,--rpath,%{PREFIX}/lib -Wl,--hash-style=both -Wl,--as-needed"
+export CFLAGS="${CFLAGS} -fPIC"
+export CXXFLAGS="${CXXFLAGS} -fPIC"
+cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} -DVERSION=%{Version}
+# Call make instruction with smp support
+make %{?jobs:-j%jobs}
+touch configure-stamp
+
+%install
+%make_install
+
+%clean
+rm -f build-stamp configure-stamp
+
+%files
+%defattr(644, app, app)
+%attr(755, app, app) /opt/apps/%{name}/bin
+/opt/apps/%{name}/lib
+/opt/apps/%{name}/data
+/opt/apps/%{name}/res/
+/opt/share/applications
+
+%changelog
+* Thu Jan 26 2012 $(author) <$(e-mail)>
+ - initial release
\ No newline at end of file
hidden="false"
persist="false"/>
</property-group>
-
+
<process type="org.tizen.nativecommon.TizenCreateSourceFolder">
<simple name="projectName" value="$(projectName)"/>
<simple name="path" value="src"/>
</process>
-
+
<process type="org.eclipse.cdt.core.AddFiles">
<simple name="projectName" value="$(projectName)"/>
<complex-array name="files">
<simple name="target" value="include/$(projectName).h"/>
<simple name="replaceable" value="true"/>
</element>
- <element>
- <simple name="source" value="src/agent.c"/>
- <simple name="target" value="src/$(projectName).c"/>
- <simple name="replaceable" value="true"/>
+ <element>
+ <simple name="source" value="src/agent.c" />
+ <simple name="target" value="src/$(projectName).c" />
+ <simple name="replaceable" value="true" />
</element>
<element>
<simple name="source" value="debian/rules"/>
<simple name="source" value="debian/changelog"/>
<simple name="target" value="debian/changelog"/>
<simple name="replaceable" value="true"/>
- </element>
+ </element>
<element>
<simple name="source" value="debian/com.samsung.agent.install"/>
<simple name="target" value="debian/com.samsung.$(projectName).install"/>
<simple name="target" value="debian/postinst"/>
<simple name="replaceable" value="true"/>
</element>
+ <element>
+ <simple name="source" value="packaging/agent.spec" />
+ <simple name="target" value="packaging/$(projectName).spec" />
+ <simple name="replaceable" value="true" />
+ </element>
</complex-array>
</process>
<process type="org.tizen.nativecommon.SetSBITarget">
<simple name="projectName" value="$(projectName)"/>
</process>
-
-
+
+
</template>
-com.samsung.hello (1.0.0) unstable; urgency=low
+$(projectName) (0.0.0-1) unstable; urgency=low
- * Initial Release
+ * initial release
- -- Author <E-mail> Fri, 22 Jul 2011 17:32:27 +0900
\ No newline at end of file
+ -- $(author) <$(e-mail)> Sat, 24 Mar 2012 17:32:27 +0900
\ No newline at end of file
# THIS FILE IS CREATED AUTOMATICALLY. DO NOT DELETE OR MODIFY THIS FILE.
#################################################################################
-Source: com.samsung.hello
-Maintainer: Author <E-mail>
-Standards-Version: 1.0.0
+Source: com.samsung.$(projectName)
+Maintainer: $(author) <$(e-mail)>
+Standards-Version: 0.0.1
-Package: com.samsung.hello
-description: none
-Architecture: any
-XB-Permission:
-XB-RequiredHardware:
+Package: com.samsung.$(projectName)
+description: $(description)
+Architecture: any
\ No newline at end of file
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
-
+
build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to build the package.
mkdir -p bin
- $(CC) $(CFLAGS) $(LDFLAGS) src/hello.c -o bin/hello
+ $(CC) $(CFLAGS) $(LDFLAGS) src/$(projectName).c -o bin/$(projectName)
touch build-stamp
-
-clean:
+
+clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up before the build process.
dh_clean
-
+
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean -k
dh_installdirs
# Add here commands to install the package.
mkdir -p debian/tmp/usr/bin
- cp bin/hello debian/tmp/usr/bin/
+ cp bin/$(projectName) debian/tmp/usr/bin/
# Build architecture-independent files here.
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
- dh_installchangelogs
+ dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install --sourcedir=debian/tmp
# dh_installmenu
-# dh_installdebconf
+# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installinfo
dh_installman
dh_link
- dh_strip
+# dh_strip
dh_compress
dh_fixperms
# dh_perl
dh_makeshlibs
- dh_installdeb
+ dh_installdeb
# dh_shlibdeps
dh_gencontrol
dh_md5sums
-Name: com.samsung.hello
-Version: 1.0.0
+Name: com.samsung.$(projectName)
+Version: 0.0.1
Release: 1
License: To be filled
-Summary: Your copyright notice
-Packager: bluleo78 <bluleo78@bluleo78-desktop>
+Summary: helloworld application (unstripped)
+Packager: $(author) <$(e-mail)>
Group: Application
Source: %{name}-%{version}.tar.gz
%description
-Your copyright notice
+$(description)
%prep
%setup -q
%build
mkdir -p bin
-gcc src/hello.c -o bin/hello
+gcc src/$(projectName).c -o bin/$(projectName)
touch build-stamp
%install
echo "INSTALL"
mkdir -p $RPM_BUILD_ROOT/usr/bin
-cp bin/hello $RPM_BUILD_ROOT/usr/bin
+cp bin/$(projectName) $RPM_BUILD_ROOT/usr/bin
%clean
rm -f build-stamp configure-stamp
%attr(755, root, root) /usr/bin
%changelog
-* Sat Mar 24 2012 bluleo78 <bluleo78@bluleo78-desktop>
- - Initial Release
+* Sat Mar 24 2012 Author <E-mail>
+ - initial release
\ No newline at end of file
hidden="false"
persist="false"/>
</property-group>
-
+
<process type="org.tizen.nativecommon.TizenCreateSourceFolder">
<simple name="projectName" value="$(projectName)"/>
<simple name="path" value="src"/>
</process>
-
+
<process type="org.eclipse.cdt.core.AddFiles">
<simple name="projectName" value="$(projectName)"/>
<complex-array name="files">
<element>
<simple name="source" value="src/hello.c"/>
- <simple name="target" value="src/hello.c"/>
+ <simple name="target" value="src/$(projectName).c"/>
<simple name="replaceable" value="true"/>
</element>
<element>
<simple name="source" value="debian/changelog"/>
<simple name="target" value="debian/changelog"/>
<simple name="replaceable" value="true"/>
- </element>
+ </element>
<element>
<simple name="source" value="debian/com.samsung.hello.install"/>
- <simple name="target" value="debian/com.samsung.hello.install"/>
+ <simple name="target" value="debian/com.samsung.$(projectName).install"/>
<simple name="replaceable" value="true"/>
</element>
<element>
<process type="org.tizen.nativecommon.SetSBITarget">
<simple name="projectName" value="$(projectName)"/>
</process>
-
-
+
+
</template>