--- /dev/null
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%bcond_without tests # build without tests
+#
+Summary: Debug 1394 devices
+Name: 1394commander
+Version: 0.1.1
+Release: 1
+License: GPL
+Group: Applications
+Source0: http://www.ict.tuwien.ac.at/ieee1394/%{name}-%{version}.tar.gz
+# Source0-md5: b72b94e060c6f1fd99b94d5ffe2dc620
+URL: http://www.ict.tuwien.ac.at/ieee1394/opensource.html
+BuildRequires: libraw1394-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+1394commander is a simple console oriented tool based on libraw1394 to
+issue asynchronous read, write and lock commands to some nodes on the
+bus as well as to force bus resets. The main advantage of this tool
+over other available tools (like gscanbus) is (besides not requiring a
+graphical interface), that it reports the exact acknowledge and
+response codes and therefore is very useful for debugging purposes.
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*