b88b170
Name:           frotz
b88b170
Version:        2.43
b88b170
Release:        3%{?dist}
b88b170
Summary:        Interpreter for Infocom and other Z-machine games
b88b170
b88b170
Group:          Amusements/Games
b88b170
License:        GPL
b88b170
URL:            http://www.cs.csubak.edu/~dgriffi/proj/frotz/
b88b170
Source0:        http://www.cs.csubak.edu/~dgriffi/proj/frotz/files/frotz-2.43.tar.gz
b88b170
Patch1:         frotz-2.43-Makefile.patch
b88b170
Patch2:         frotz-2.43-conf.patch
b88b170
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b88b170
b88b170
BuildRequires:  ncurses-devel
b88b170
b88b170
%description
b88b170
Frotz is an interpreter for Infocom games and other Z-machine games.  It
b88b170
complies with standard 1.0 of Graham Nelson's specification.
b88b170
b88b170
Free Z-machine game file downloads, as well as more information about
b88b170
Infocom, Z-machine games, and interactive fiction can be found at the
b88b170
Interactive Fiction Archive, http://mirror.ifarchive.org/.
b88b170
b88b170
b88b170
%prep
b88b170
%setup -q
b88b170
%patch1 -p1
b88b170
%patch2 -p1
b88b170
b88b170
b88b170
%build
b88b170
sed -i -e "s/@@OPTS@@/$RPM_OPT_FLAGS/" Makefile
b88b170
make %{?_smp_mflags}
b88b170
b88b170
b88b170
%install
b88b170
rm -rf $RPM_BUILD_ROOT
b88b170
install -d -m0755 $RPM_BUILD_ROOT/%{_bindir}
b88b170
install -d -m0755 $RPM_BUILD_ROOT/%{_sysconfdir}
b88b170
install -d -m0755 $RPM_BUILD_ROOT/%{_mandir}/man6
b88b170
install -m0755 frotz $RPM_BUILD_ROOT/%{_bindir}
b88b170
install -m0644 doc/frotz.6 $RPM_BUILD_ROOT/%{_mandir}/man6
b88b170
install -m0644 doc/frotz.conf-big $RPM_BUILD_ROOT/%{_sysconfdir}/frotz.conf
b88b170
b88b170
b88b170
%clean
b88b170
rm -rf $RPM_BUILD_ROOT
b88b170
b88b170
b88b170
%files
b88b170
%defattr (-,root,root,-)
b88b170
%doc AUTHORS BUGS ChangeLog COPYING DUMB HOW_TO_PLAY README SPEECH TODO
b88b170
%doc doc/frotz.conf*
b88b170
%{_bindir}/frotz
b88b170
%{_mandir}/man6/frotz.6*
b88b170
%config(noreplace) %{_sysconfdir}/frotz.conf
b88b170
b88b170
b88b170
%changelog
b88b170
* Tue Jul 19 2005 Chris Grau <chris@chrisgrau.com> 2.43-3
b88b170
- Changed sed command to edit Makefile in place (Michael Schwendt).
b88b170
- Removed compression of the man page (Michael Schwendt).
b88b170
b88b170
* Tue Jul 19 2005 Chris Grau <chris@chrisgrau.com> 2.43-2
b88b170
- Split up patch files.
b88b170
- Added a pointer to the IF archive to the %%description.
b88b170
b88b170
* Thu Jul 07 2005 Chris Grau <chris@chrisgrau.com> 2.43-1
b88b170
- Initial build.