From 83425a8704c703eb6863888ff834dc9aa06916f8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 14 Jul 2004 07:26:57 +0000 Subject: [PATCH] Initial revision of spec file. --- mad.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 mad.spec diff --git a/mad.spec b/mad.spec new file mode 100644 index 0000000..294e79b --- /dev/null +++ b/mad.spec @@ -0,0 +1,50 @@ +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 +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 - 1.0-1 +- Initial release. + + + -- 2.43.0