--- /dev/null
+Summary: Disktype detect the content format of a disk or disk image.
+Name: disktype
+Version: 6
+Release: 1
+License: GPL
+Group: Applications/System
+Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: ae8dc60c0dd9cd9c3a339872141b7e16
+URL: http://disktype.sourceforge.net/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The purpose of disktype is to detect the content format of a disk or
+disk image. It knows about common file systems, partition tables, and
+boot codes.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D disktype $RPM_BUILD_ROOT%{_bindir}/disktype
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc HISTORY README TODO
+%attr(755,root,root) %{_bindir}/*