Sophie

Sophie

distrib > Fedora > 16 > i386 > media > os-src > by-pkgid > 9522b094d9f3d76bbb8019a48dc4e937 > files > 3

robotfindskitten-1.7320508.406-4.fc15.src.rpm

Name:		robotfindskitten
Version:	1.7320508.406
Release:	4%{?dist}
Summary:	A game/zen simulation. You are robot. Your job is to find kitten.

Group:		Amusements/Games
License:	GPLv2+
URL:		http://robotfindskitten.org
Source0:        http://robotfindskitten.org/download/POSIX/robotfindskitten-1.7320508.406.tar.gz
# Submitted to upstream development list for consideration
Patch0:		robotfindskitten-1.7320508.406-info-direntry.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	ncurses-devel glibc-devel texinfo
Requires(post):	info
Requires(preun):info

%description
In this game, you are robot (#). Your job is to find kitten. This task
is complicated by the existence of various things which are not kitten.
Robot must touch items to determine if they are kitten or not. The game
ends when robotfindskitten.

%prep
%setup -q
%patch0 -p1 -b .info-direntry


%build
%configure
make %{?_smp_mflags}
# rebuild the info page to include the patched-in direntry
rm -f doc/robotfindskitten.info
make -C doc robotfindskitten.info


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_bindir}
ln -sf ../games/robotfindskitten $RPM_BUILD_ROOT/%{_bindir}/robotfindskitten
# make install creates this, but we don't need it
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir


%clean
rm -rf $RPM_BUILD_ROOT


%post
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :

%preun
if [ $1 = 0 ] ; then
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi


%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS ChangeLog COPYING NEWS README
%{_bindir}/robotfindskitten
%{_prefix}/games/robotfindskitten
%{_datadir}/info/robotfindskitten.info*
%{_datadir}/man/man6/robotfindskitten.6*

%changelog
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7320508.406-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7320508.406-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Fri Jul 10 2009 Will Woods <wwoods@redhat.com> 1.7320508.406-2
- Update spec based on packaging review (bug #463808)

* Wed Sep 24 2008 Will Woods <wwoods@redhat.com> 1.7320508.406-1
- Initial packaging.