%define oname ColorCode Name: colorcode Version: 0.7.2 Release: %mkrel 6 Summary: Advanced MasterMind clone Source0: http://colorcode.laebisch.com/download/%{oname}-%{version}.tar.gz Source1: %{name}.6 URL: http://colorcode.laebisch.com/ License: GPLv2+ Group: Games/Puzzles BuildRequires: qt4-devel %description ColorCode is an advanced MasterMind code-breaking game clone. The program accepts setting the number of slots (from 2 to 5), the number of colors (from 2 to 10) and setting if colors might be repeated in the secret code (doubles allowed or not). The game has 5 built-in levels, from level 1 (beginner: 2 slots and 2 colors, with doubles allowed) to level 5 (hard: 5 slots and 10 colors, with doubles allowed). ColorCode can make guesses in place of the user. %prep %setup -q -n %{oname}-%{version} %build %qmake_qt4 %make %install install -m 755 %{name} -D %{buildroot}%{_gamesbindir}/%{name} install -m 644 %{SOURCE1} -D %{buildroot}%{_mandir}/man6/%{name}.6 install -dm 755 %{buildroot}%{_datadir}/applications install -d -m 755 %{buildroot}/%{_miconsdir} install -d -m 755 %{buildroot}/%{_iconsdir} install -d -m 755 %{buildroot}/%{_liconsdir} install -m 644 img/cc16.png %{buildroot}/%{_miconsdir}/%{name}.png install -m 644 img/cc32.png %{buildroot}/%{_iconsdir}/%{name}.png install -m 644 img/cc64.png %{buildroot}/%{_liconsdir}/%{name}.png cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=ColorCode Comment=Advanced clone of the MasterMind code-breaking game GenericName=Advanced MasterMind clone GenericName[fr]=Clone avancé du jeu MasterMind GenericName[nb_NO]=Avansert MasterMind-klone GenericName[nn]=Avansert MasterMind-klone Exec=%{_gamesbindir}/%{name} Icon=%{name} Terminal=false Type=Application Categories=Game;LogicGame; EOF %files %doc changelog %{_gamesbindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_miconsdir}/%{name}.png %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_mandir}/man6/%{name}.6* %changelog * Wed Oct 15 2014 umeabot <umeabot> 0.7.2-6.mga5 + Revision: 740512 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 0.7.2-5.mga5 + Revision: 678478 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 0.7.2-4.mga4 + Revision: 503430 - Mageia 4 Mass Rebuild * Fri Jan 11 2013 umeabot <umeabot> 0.7.2-3.mga3 + Revision: 348008 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jul 25 2012 wally <wally> 0.7.2-2.mga3 + Revision: 274259 - build with qmake_qt4 macro * Sun Jul 22 2012 solbu <solbu> 0.7.2-1.mga3 + Revision: 273394 - Initial Mageia package - Add manpage, from Debian