| %define name tcf-agent |
| %define version 0.4.1 |
| %define release 1.%(bin/get-os-tag) |
| %define make_options CONF=Release PATH_Plugins=/etc/tcf/plugins |
| |
| Name: %{name} |
| Summary: Target Communication Framework agent |
| Version: %{version} |
| Release: %{release} |
| Vendor: eclipse.org |
| Source: http://dev.eclipse.org/svnroot/dsdp/org.eclipse.tm.tcf/trunk/srpms/%{name}-%{version}.tar.bz2 |
| URL: http://wiki.eclipse.org/TCF |
| Group: Development/Tools/Other |
| BuildRoot: %{_tmppath}/%{name}-buildroot |
| License: EPL |
| Requires: openssl, e2fsprogs |
| |
| %description |
| Target Communication Framework is universal, extensible, simple, |
| lightweight, vendor agnostic framework for tools and targets to |
| communicate for purpose of debugging, profiling, code patching and |
| other device software development needs. tcf-agent is a daemon, |
| which provides TCF services that can be used by local and remote clients. |
| |
| %prep |
| rm -rf $RPM_BUILD_ROOT |
| %setup |
| |
| %build |
| make %{make_options} all |
| |
| %install |
| make %{make_options} install INSTALLROOT=$RPM_BUILD_ROOT SBIN=%{_sbindir} INCLUDE=%{_includedir} |
| |
| %clean |
| [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
| |
| %post |
| %{_sbindir}/tcf-agent -c |
| chkconfig --add %{name} |
| /sbin/service %{name} start > /dev/null 2>&1 || : |
| |
| %postun |
| if [ $1 -ge 1 ] ; then |
| /sbin/service %{name} condrestart > /dev/null 2>&1 || : |
| fi |
| |
| %preun |
| if [ "$1" = 0 ] ; then |
| /sbin/service %{name} stop > /dev/null 2>&1 || : |
| chkconfig --del %{name} |
| fi |
| |
| %files |
| %defattr(-,root,root,0755) |
| %config /etc/init.d/%{name} |
| %{_sbindir}/tcf-agent |
| %{_sbindir}/tcf-client |
| %{_includedir}/tcf |
| |
| %changelog |
| * Mon Jul 21 2011 Eugene Tarassov <eugene.tarassov@windriver.com> 0.4.1 |
| - CDT 8.0.1 release |
| * Mon May 16 2011 Eugene Tarassov <eugene.tarassov@windriver.com> 0.4.0 |
| - Eclipse 3.7.0 release |
| * Thu Jun 03 2010 Eugene Tarassov <eugene.tarassov@windriver.com> 0.3.0 |
| - Eclipse 3.6.0 Helios release |
| * Thu Mar 12 2009 Eugene Tarassov <eugene.tarassov@windriver.com> 0.0.1 |
| - first release |