diff --git a/coco-coq-LICENSE.fedora b/coco-coq-LICENSE.fedora new file mode 100644 index 0000000..25d9138 --- /dev/null +++ b/coco-coq-LICENSE.fedora @@ -0,0 +1,12 @@ +Permission was given by the author to (re)distribute this game under the +conditions below: +http://www.agigames.com/forum/index.php?topic=10514.msg89374#msg89374 + +Redistribution of this game is permitted, provided that the following +conditions are met: + +1. You may only redistribute this game in it's original, unmodified form. + +2. Packaging of this game for inclusion in software distributions is +permitted, but only if attribution is given to the author and the game is +packaged in a distinct form, and not inseperably bundled with other games. diff --git a/coco-coq-wrapper.sh b/coco-coq-wrapper.sh new file mode 100644 index 0000000..84028c2 --- /dev/null +++ b/coco-coq-wrapper.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /usr/share/coco-coq +exec nagi "$@" diff --git a/coco-coq.desktop b/coco-coq.desktop new file mode 100644 index 0000000..1c7e138 --- /dev/null +++ b/coco-coq.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Coco Coq in Grostesteing's base +Comment=AGI adventure game +Exec=coco-coq-wrapper.sh +Icon=coco-coq.xpm +Terminal=false +Categories=Game;AdventureGame; diff --git a/coco-coq.spec b/coco-coq.spec new file mode 100644 index 0000000..fdc0008 --- /dev/null +++ b/coco-coq.spec @@ -0,0 +1,88 @@ +Name: coco-coq +Version: 0.1 +Release: 3%{?dist} +Summary: Coco Coq in Grostesteing's base, an AGI adventure game + +Group: Amusements/Games +License: Redistributable, no modification permitted +URL: http://membres.lycos.fr/agisite/coco-c.htm +Source0: cococe.zip +#Original from http://membres.lycos.fr/agisite/cococe.zip includes +#copyrighted executables. Generated new source by unzipping, removing +#DOS-related content. +Source1: coco-coq.desktop +Source2: coco-coq-wrapper.sh +Source3: coco-coq.xpm +Source4: coco-coq-LICENSE.fedora +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: desktop-file-utils +Requires: nagi, hicolor-icon-theme + +%description +Grostesteing is back for troubles: he's kidnapped the Coco Coq's friends +to turn them into monsters. Coco must go inside the deadly base, avoids +traps, free his friends and beat the bad scientist Grostesteing. + +%prep + +%setup -q -c + +#drop case +mv LOGDIR logdir +mv OBJECT object +mv PICDIR picdir +mv SNDDIR snddir +mv VIEWDIR viewdir +mv VOL.0 vol.0 +mv WORDS.TOK words.tok + +%build +cp %{SOURCE4} . + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} +mkdir -p $RPM_BUILD_ROOT%{_bindir} +install -D -m0644 -p * $RPM_BUILD_ROOT%{_datadir}/%{name} +install -D -m0755 -p %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir} + +# desktop file +desktop-file-install --vendor fedora \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + %{SOURCE1} + +# icon +install -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps +install -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm + +%post +touch --no-create %{_datadir}/icons/hicolor || : +%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + +%postun +touch --no-create %{_datadir}/icons/hicolor || : +%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc coco-coq-LICENSE.fedora +%{_datadir}/coco-coq +%{_datadir}/applications/fedora-coco-coq.desktop +%{_datadir}/icons/hicolor/32x32/apps/coco-coq.xpm +%{_bindir}/coco-coq-wrapper.sh + +%changelog +* Fri Jul 06 2007 Jon Ciesla 0.1-3 +- Fixed source zip. + +* Fri Jul 06 2007 Jon Ciesla 0.1-2 +- Fixed spec typo in URL + +* Fri Jul 06 2007 Jon Ciesla 0.1-1 +- Initial packaging. diff --git a/coco-coq.xpm b/coco-coq.xpm new file mode 100644 index 0000000..284b23b --- /dev/null +++ b/coco-coq.xpm @@ -0,0 +1,35 @@ +/* XPM */ +static char * coco-coq_xpm[] = { +"24 24 8 1", +" c None", +". c #7F0000", +"+ c #00FFFF", +"@ c #969696", +"# c #4D4D4D", +"$ c #FFFF00", +"% c #FF5050", +"& c #800000", +" ", +" .. ", +" .... ", +" ++..@ ", +" ++++++ ", +" ++++++++ ", +" ######$$ ", +" ####$$$$$$ ", +" ####$$$$ ", +" ##$$$$$ ", +" @$$$ ", +" %%% ", +" %%%%% ", +" %%%%%% ", +" %%$$%% ", +" %%$$%%@ ", +" %%$$%%@ ", +" %%$$%%@ ", +" %%$$$$@ ", +" %%&&$$$$ ", +" &&&&&&$$ ", +" ++++++@@ ", +" ++++++@ ", +" "}; diff --git a/sources b/sources index e69de29..d1c0953 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e7095c83bffcd667d06f4c005ff18e5e cococe.zip