fi
TINYOS_VERSION=2.1.0
TINYOS_TOOLS_VERSION=1.3.0
-
+TINYOS_DEPUTY_VERREL=1.1-1
echo "*** Building tarballs"
#rm ../../../*.tar.gz
sh tinyos.files
sh tinyos-tools.files
+sh deputy.files
#sh contrib/contrib.files
#sh vm/vm.files
#sh task-tinydb/task-tinydb.files
cd $HERE/../../..
cp tinyos-$TINYOS_VERSION.tar.gz $RPMS/SOURCES
cp tinyos-tools-$TINYOS_TOOLS_VERSION.tar.gz $RPMS/SOURCES
+cp tinyos-deputy-$TINYOS_DEPUTY_VERREL.tar.gz $RPMS/SOURCES
+cp tinyos-deputy-$TINYOS_DEPUTY_VERREL.patch $RPMS/SOURCES
#cp tinyos-vm-$VM_VERSION.tar.gz $RPMS/SOURCES
#cp tinyos-contrib-$CONTRIB_VERSION.tar.gz $RPMS/SOURCES
#cp task-tinydb-$TINYDB_VERSION.tar.gz $RPMS/SOURCES
cd $RPMS
rpmbuild -bb $HERE/tinyos.spec
rpmbuild -bb $HERE/tinyos-tools.spec
+rpmbuild -bb $HERE/deputy.spec
#rpmbuild -bb $HERE/task-tinydb/task-tinydb.spec
#rpmbuild -bb $HERE/contrib/contrib.spec
#rpmbuild -bb $HERE/vm/vm.spec
--- /dev/null
+NAME=tinyos-deputy
+VERSION=1.1
+RELEASE=1
+
+cd ../..
+rm -rf $NAME-$VERSION
+svn checkout svn://hal.cs.berkeley.edu/home/svn/projects/trunk/deputy
+mv deputy $NAME-$VERSION
+tar czvf ../$NAME-$VERSION-$RELEASE.tar.gz $NAME-$VERSION
+wget -O ../$NAME-$VERSION-$RELEASE.patch http://www.cs.utah.edu/~coop/safetinyos/files/deputy.patch
+
-%define name deputy
-%define version 1.1
-%define release 1
+%define deputy_name deputy
+%define tinyos_deputy_version 1.1
+%define tinyos_deputy_release 1
Summary: Deputy compiler for Safe TinyOS.
-Name: %{name}
-Version: %{version}
-Release: %{release}%{?dist}
-Source: http://deputy.cs.berkeley.edu/deputy-1.1.tar.gz
-Patch0: deputy.patch
+Name: tinyos-%{deputy_name}
+Version: %{tinyos_deputy_version}
+Release: %{tinyos_deputy_release}%{dist}
+Source: http://deputy.cs.berkeley.edu/%{name}-%{tinyos_deputy_version}-%{tinyos_deputy_release}.tar.gz
+Patch0: tinyos-%{deputy_name}-%{tinyos_deputy_version}-%{tinyos_deputy_release}.patch
Vendor: Deputy
URL: http://deputy.cs.berkeley.edu/
License: LGPL
--- /dev/null
+%define version 1.3.0
+%define theprefix /usr
+
+Summary: nesC compiler
+Name: nesc
+Version: 1.3.0
+Release: 1%{dist}
+License: GNU GPL Version 2
+Packager: TinyOS Group, UC Berkeley
+Group: Development/Tools
+URL: http://sourceforge.net/projects/nescc
+Source0: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-root
+
+%description
+nesC is a compiler for a C-based language designed to support embedded
+systems including TinyOS. nesC provides several advantages for the
+TinyOS compiler infrastructure: improved syntax, support for full type
+safety, abundant error reporting, generic components, and Java-like
+interfaces.
+
+%prep
+%setup -q
+
+%build
+./configure --prefix=%{theprefix}
+make
+
+%install
+rm -rf %{buildroot}%{theprefix}
+make prefix=%{buildroot}%{theprefix} install
+
+%clean
+rm -rf $RPM_BUILD_DIR/%{name}-%{version}
+
+%files
+%defattr(-,root,root,-)
+%{theprefix}
+%doc
+
+%changelog
+* Wed Aug 6 2008 <david.e.gay@intel.com> 1.3.0
+- Deputy support
+* Tue Jul 3 2007 <david.e.gay@intel.com> 1.2.9
+* Wed Dec 20 2006 <david.e.gay@intel.com> 1.2.8a
+* Fri Dec 1 2006 <david.e.gay@intel.com> 1.2.8
+* Thu Jul 6 2006 <kwright@archrock.com> 1.2.7a
+* Wed Jun 28 2006 <kwright@archrock.com> 1.2.7
+- Version 1.2.7
+* Fri Feb 3 2006 <kwright@cs.berkeley.edu> 1.2.4
+- Version 1.2.4
+* Mon Mar 14 2005 <kwright@cs.berkeley.edu> 1.1.2b
+- Version 1.1.2b; use buildroot
+* Tue Jul 27 2004 <dgay@intel-research.net> 1.1.2-1w
+- Version 1.1.2
+* Fri Sep 26 2003 root <kwright@cs.utah.edu> 1.1-1
+- New source
+* Fri Sep 19 2003 root <kwright@cs.utah.edu> 1.1pre4-2
+- Removed set-mote-id
+* Fri Sep 12 2003 root <kwright@cs.utah.edu> 1.1pre4-1
+- New source
+* Fri Aug 15 2003 root <kwright@cs.utah.edu> 1.1pre2-1
+- Initial build.
+
Summary: TinyOS tools
Name: tinyos-tools
Version: 1.3.0
-Release: 1
+Release: 1%{dist}
License: Please see source
Group: Development/System
URL: http://www.tinyos.net/
fi
%ifos linux
java=`$RPM_INSTALL_PREFIX/bin/tos-locate-jre --java`
+tinyoslibdir=$RPM_INSTALL_PREFIX/lib/tinyos
bits=32
if [ $? -ne 0 ]; then
echo "java command not found - assuming 32 bits"
Name: tinyos
BuildArchitectures: noarch
Version: 2.1.0
-Release: 1
+Release: 1%{dist}
License: Please see source
Packager: TinyOS Group, UC Berkeley
Group: Development/System