diff -ruN sbrsh.orig/client.c sbrsh.fedora/client.c
--- sbrsh.orig/client.c	2008-05-15 10:41:35.000000000 -0700
+++ sbrsh.fedora/client.c	2009-04-02 11:26:26.000000000 -0700
@@ -27,6 +27,7 @@
 #include <getopt.h>
 #include <time.h>
 #include <pwd.h>
+#include <limits.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <sys/time.h>
diff -ruN sbrsh.orig/Makefile sbrsh.fedora/Makefile
--- sbrsh.orig/Makefile	2008-05-15 10:41:35.000000000 -0700
+++ sbrsh.fedora/Makefile	2009-04-02 11:53:54.000000000 -0700
@@ -13,6 +13,7 @@
 
 GIT		:= git
 AUTOCONF	:= autoconf
+RPM_BUILD_DIR	:=`rpm --eval=%_topdir`
 
 .PHONY: source-tarball
 source-tarball:
@@ -44,3 +45,9 @@
 
 	ipkg-build ipkg/build
 	rm -rf ipkg/build
+
+.PHONY: rpm-dist
+rpm-dist:
+	sed s/'<VERSION>'/`head -n1 debian/changelog | cut -d'(' -f2 | cut -d')' -f1`/ sbrsh.spec > $(RPM_BUILD_DIR)/SPECS/sbrsh.spec
+	tar -zcvf - ../sbrsh > $(RPM_BUILD_DIR)/SOURCES/sbrsh-`head -n1 debian/changelog | cut -d'(' -f2 | cut -d')' -f1`.tar.gz
+	rpmbuild -ba -v $(RPM_BUILD_DIR)/SPECS/sbrsh.spec
diff -ruN sbrsh.orig/sbrsh.spec sbrsh.fedora/sbrsh.spec
--- sbrsh.orig/sbrsh.spec	1969-12-31 16:00:00.000000000 -0800
+++ sbrsh.fedora/sbrsh.spec	2009-04-02 11:47:26.000000000 -0700
@@ -0,0 +1,61 @@
+Vendor: www.scratchbox.org
+Distribution: Fedora 11
+Packager: Jay Schulist <jschulist@bivio.net>
+Name: sbrsh
+Version: <VERSION>
+Release: 1
+Summary: Tools used to provide CPU transparency for cross-compiling with Scratchbox.
+License: GPL
+Group: Development/Tools
+URL: http://www.scratchbox.org/download/files/sbox-files/sbrsh_7.6.tar.gz
+Source0: sbrsh_%{version}.tar.gz
+BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
+Prereq: /sbin/chkconfig, /sbin/service
+
+%description
+Tools used to provide CPU transparency for cross-compiling with Scratchbox. 
+sbrsh is the Scratchbox Remote Shell Client and requests a sbrshd host to mount
+a NFS partition, and excutes a binary on it. sbrshd is the Scratchbox Remote
+Shell Daemon services requests from the sbrsh client.
+
+%prep
+%setup -q -n sbrsh
+
+%build
+autoreconf
+%configure --prefix=${RPM_BUILD_ROOT}/usr --exec-prefix=${RPM_BUILD_ROOT}/usr --bindir=${RPM_BUILD_ROOT}/usr/bin --sbindir=${RPM_BUILD_ROOT}/usr/sbin  --sysconfdir=${RPM_BUILD_ROOT}/etc --libdir=${RPM_BUILD_ROOT}/usr/lib
+make
+
+%install
+make install
+
+install -D -m 755 sbrshd.init $RPM_BUILD_ROOT/etc/init.d/sbrshd
+install -D -m 644 sbrshd.conf $RPM_BUILD_ROOT/etc/sbrshd.conf
+
+%post
+if [ "$1" = 1 ]; then
+  chkconfig --add sbrshd
+fi
+
+%postun 
+if [ "$1" = 0 ]; then
+  service sbrshd stop > /dev/null 2>&1
+  chkconfig --del sbrshd
+fi
+
+%clean
+if [ ! RPM_BUILD_ROOT = / ]; then
+  rm -rf ${RPM_BUILD_ROOT}
+fi
+
+%files
+%defattr(-, root, root)
+%config /etc/sbrshd.conf
+/etc/init.d/sbrshd
+/usr/sbin/sbrshd
+/usr/bin/sbrsh
+
+%changelog
+* Wed Apr 1 2009 Jay Schulist <jschulist@bivio.net>
+- included patch for missing limits.h file.
+- created this RPM for Fedora based systems.
