e9cb7ce
Name:           ifm
e9cb7ce
Version:        5.1
1f8a9fd
Release:        14%{?dist}
e9cb7ce
Summary:        Interactive Fiction Mapper
e9cb7ce
e9cb7ce
Group:          Amusements/Games
33c1ff8
License:        GPLv2+
e9cb7ce
URL:            http://www.sentex.net/~dchapes/ifm/
e9cb7ce
Source0:        http://www.ifarchive.org/if-archive/mapping-tools/ifm-%{version}.tar.gz
e9cb7ce
Source1:        ifm.vim
e9cb7ce
Source2:        ifm.sh
e9cb7ce
Patch1:         ifm-5.1-destdir.patch
e9cb7ce
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e9cb7ce
e9cb7ce
BuildRequires:  tk
e9cb7ce
BuildRequires:  zlib-devel
fcf1702
BuildRequires:  automake
e9cb7ce
e9cb7ce
%description
e9cb7ce
IFM is a language and a program for keeping track of your progress through
e9cb7ce
an Interactive Fiction game.  You can record each room you visit and its
e9cb7ce
relation to other rooms, the initial locations of useful items you find, and
e9cb7ce
the tasks you need to perform in order to solve the game.
e9cb7ce
e9cb7ce
e9cb7ce
%prep
e9cb7ce
%setup -q
e9cb7ce
%patch1 -p1
7c54458
install -pm 0644 %{SOURCE1} doc/.
7c54458
install -pm 0644 %{SOURCE2} doc/.
e9cb7ce
sed -i -e 's,/usr/local/doc/ifm/html,%{_docdir}/%{name}-%{version}/ifm,' \
e9cb7ce
       -e 's,/usr/local/doc/ifm/ifm.pdf,%{_docdir}/%{name}-%{version}/ifm.pdf,' \
e9cb7ce
       doc/ifm.1
e9cb7ce
fcf1702
# Needed for ppc64, automake can't be run here
810b704
cp -f %{_datadir}/automake-*/config.* etc/
fcf1702
e9cb7ce
e9cb7ce
%build
e9cb7ce
%configure
e9cb7ce
make %{?_smp_mflags}
e9cb7ce
e9cb7ce
e9cb7ce
%install
e9cb7ce
rm -rf $RPM_BUILD_ROOT
e9cb7ce
make install DESTDIR=$RPM_BUILD_ROOT
e9cb7ce
rm -rf $RPM_BUILD_ROOT/%{_prefix}/doc
e9cb7ce
rm -f demos/Makefile*
e9cb7ce
rm -f doc/ifm/WARNINGS doc/ifm/images.* doc/ifm/*.pl
e9cb7ce
e9cb7ce
e9cb7ce
%clean
e9cb7ce
rm -rf $RPM_BUILD_ROOT
e9cb7ce
e9cb7ce
e9cb7ce
%files
e9cb7ce
%defattr(-,root,root,-)
e9cb7ce
%doc COPYING NEWS README THANKS
e9cb7ce
%doc demos/
e9cb7ce
%doc doc/advent?.scr doc/advent.cmd doc/gfdl.lyx doc/ifm.pdf doc/macros.tex doc/tkifm.txt doc/*.ifm doc/ifm.vim doc/ifm.sh
e9cb7ce
%doc doc/ifm/
e9cb7ce
%{_bindir}/*
e9cb7ce
%{_datadir}/ifm/
e9cb7ce
%{_libdir}/ifm/
e9cb7ce
%{_mandir}/man1/ifm.1*
e9cb7ce
e9cb7ce
e9cb7ce
%changelog
1f8a9fd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-14
1f8a9fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1f8a9fd
d968742
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-13
d968742
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d968742
85c0b5a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-12
85c0b5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
85c0b5a
d467b5f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-11
d467b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d467b5f
5890655
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-10
5890655
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5890655
fcf1702
* Tue Mar 03 2009 Robert Scheck <robert@fedoraproject.org> - 5.1-9
fcf1702
- Solve the ppc64-redhat-linux-gnu configure target error
fcf1702
1aeba3f
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-8
1aeba3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1aeba3f
33c1ff8
* Thu Jul 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 5.1-7
33c1ff8
- fix license tag
33c1ff8
0aaede7
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.1-6
0aaede7
- Autorebuild for GCC 4.3
0aaede7
2d11ce5
* Thu Sep 14 2006 Chris Grau <chris@chrisgrau.com> 5.1-5
2d11ce5
- Rebuild for FC-6.
2d11ce5
7c54458
* Sun Aug  6 2006 Chris Grau <chris@chrisgrau.com> 5.1-4
7c54458
- Fixed file permission issue (bug #200828).
7c54458
d91745d
* Wed Mar 01 2006 Chris Grau <chris@chrisgrau.com> 5.1-3
d91745d
- Rebuild for FC-5.
d91745d
e9cb7ce
* Mon Sep 26 2005 Chris Grau <chris@chrisgrau.com> 5.1-2
e9cb7ce
- Added tk as a BR for the wish requirement in configure.
e9cb7ce
- Fixed paths in man page to point to proper documentation.
e9cb7ce
- Replaced instance of /usr with %%{_prefix}.
e9cb7ce
e9cb7ce
* Sun Sep  4 2005 Chris Grau <chris@chrisgrau.com> 5.1-1
e9cb7ce
- Initial build.