--- /dev/null
+Name: mad
+Version: 1.0
+Release: 1
+URL: http://www.catb.org/~esr/mad/
+Source0: %{name}-%{version}.tar.gz
+License: GPL
+Group: Development/Languages
+Summary: compiler for Michigan Algorithm Decoder (MAD) language
+Packager: Eric S. Raymond <esr@thyrsus.com>
+BuildRoot: %{_tmppath}/%{name}-root
+BuildArch: noarch
+Requires: python >= 2.1
+#Keywords: retrocomputing, compiler
+
+%description
+This program is a work of reconstructive archeology, a compiler
+for the Michigan Algorithmic Decoder (MAD) language from 1962. It first
+translates MAD code into C, then uses the local C compiler to make
+an executable binary. You will need Python and David Beazley's PLY
+module installed to run it. A complete transcription of the 1962 MAD
+manual is included.
+
+%prep
+%setup -q
+
+%build
+make %{?_smp_mflags} mad mad.1
+
+%install
+[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
+mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
+mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man1/
+cp mad "$RPM_BUILD_ROOT"%{_bindir}
+cp mad.1 "$RPM_BUILD_ROOT"%{_mandir}/man1/
+
+%clean
+[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
+
+%files
+%defattr(-,root,root,-)
+%{_mandir}/man1/mad.1*
+%{_bindir}/mad
+%doc README COPYING
+
+%changelog
+* Wed Jul 14 2004 Eric S. Raymond <esr@snark.thyrsus.com> - 1.0-1
+- Initial release.
+
+
+