Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > by-pkgid > ce4200d69bbcc269b78a1023938458b8 > files > 2

enigma-1.03-5mdv2007.0.src.rpm

Summary: Enigma is a puzzle game
Name: enigma
Version: 1.03
Release: %mkrel 5
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Games/Boards
URL: http://www.chiark.greenend.org.uk/~sgtatham/enigma/
BuildRequires: ncurses-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot

%description
Enigma is a puzzle game with elements of Boulderdash and elements 
of Sokoban, but is possibly most similar to the old Spectrum game XOR.

%prep
%setup -q

%build

%configure

%make

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%_bindir

%makeinstall

mkdir -p $RPM_BUILD_ROOT%{_menudir}

cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): \
	command="%{_bindir}/%{name}" \
	needs="x11" \
	section="Amusement/Boards" \
	title="Enigma" \
	icon="boards_section.png" \
	longtitle="Enigma is a puzzle game" \
	startup_notify="false" \
        xdg="true"
EOF

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Enigma
Comment=Enigma is a puzzle game
Exec=%{_bindir}/%{name} 
Icon=boards_section
Terminal=false
Type=Application
StartupNotify=false
Categories=X-MandrivaLinux-MoreApplications-Games-Boards;Game;BoardGame;
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}

%postun
%{clean_menus}

%files
%defattr(-,root,root)
%doc README 
%{_bindir}/*
%{_datadir}/enigma
%{_menudir}/*
%{_datadir}/applications/mandriva-%{name}.desktop

%changelog
* Mon Sep 18 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.03-5mdv2007.0
- XDG

* Tue Jan 10 2006 Frederic Crozat <fcrozat@mandriva.com> 1.03-4mdk
- Rebuild

* Wed Sep 03 2003 Michael Scherer <scherer.michael@free.fr> 1.03-3mdk
- BuildRequires ncurses-devel 

* Thu Aug 14 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.03-2mdk
- fix desc. and changelog to reflect what this package is (regarding the 
 enigma-freeoxyd that will be uploaded)

* Mon Mar 24 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.03-1mdk
- 1.03