berusky2.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Name: berusky2
  2. Version: 0.6
  3. Release: 1%{?dist}
  4. License: GPLv2+
  5. Summary: Sokoban clone
  6. Group: Amusements/Games
  7. Source: http://www.anakreon.cz/download/%{name}-%{version}.tar.gz
  8. URL: http://www.anakreon.cz/en/Berusky2.htm
  9. Requires: berusky2-data >= 0.5
  10. BuildRequires: SDL-devel
  11. BuildRequires: SDL_image-devel
  12. BuildRequires: gtk2-devel
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: freealut-devel
  15. BuildRequires: openal-soft-devel
  16. BuildRequires: libvorbis-devel
  17. ExclusiveArch: %{ix86} x86_64
  18. %description
  19. Berusky 2 is a game that challenges your visual/spatial thinking
  20. and ability to find a way to resolve a logic task. Using five bugs,
  21. you'll go through an adventure full of various puzzles spread across
  22. nine episodes. Individual episodes differ in appearance and difficulty,
  23. which increases throughout the game.
  24. %prep
  25. %setup -q
  26. %build
  27. %configure CFLAGS="$RPM_OPT_FLAGS"
  28. make %{?_smp_mflags}
  29. %install
  30. make DESTDIR=%{buildroot} install
  31. # Move documentation so it can get installed to the right place.
  32. mkdir _tmpdoc
  33. mv %{buildroot}%{_usr}/doc/%{name}/* _tmpdoc/
  34. rm -f _tmpdoc/INSTALL
  35. # Install ini file
  36. mkdir -p %{buildroot}%{_var}/games/%{name}
  37. install -pm 644 %{buildroot}/%{_datadir}/%{name}/berusky3d.ini \
  38. %{buildroot}%{_var}/games/%{name}
  39. # Install icon and desktop file
  40. mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps
  41. cp -p %{buildroot}/%{_datadir}/%{name}/berusky2.png \
  42. %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps
  43. desktop-file-install --dir %{buildroot}/%{_datadir}/applications \
  44. --add-category X-Fedora %{buildroot}/%{_datadir}/%{name}/berusky2.desktop
  45. # Remove directory that will be owned by data package.
  46. rm -rf %{buildroot}/%{_datadir}/%{name}
  47. %post
  48. touch --no-create %{_datadir}/icons/hicolor || :
  49. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  50. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  51. fi
  52. %postun
  53. touch --no-create %{_datadir}/icons/hicolor || :
  54. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  55. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  56. fi
  57. %files
  58. %doc _tmpdoc/*
  59. %{_bindir}/berusky2
  60. %{_datadir}/applications/berusky2.desktop
  61. %{_datadir}/icons/hicolor/32x32/apps/berusky2.png
  62. %dir %{_var}/games/%{name}
  63. %{_var}/games/%{name}/*
  64. %changelog
  65. * Sun Mar 4 2012 Martin Stransky <stransky@redhat.com> 0.6-1
  66. - Updated to 0.6
  67. * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  69. * Wed Sep 7 2011 Martin Stransky <stransky@redhat.com> 0.5-1
  70. - Updated to 0.5
  71. * Tue Aug 30 2011 Martin Stransky <stransky@redhat.com> 0.4-1
  72. - new upstream version
  73. - spec clean-up (by Richard Shaw)
  74. * Mon Aug 22 2011 Martin Stransky <stransky@redhat.com> 0.3-3
  75. - spec polished
  76. * Mon Aug 15 2011 Martin Stransky <stransky@redhat.com> 0.3-2
  77. - fixed ini file location
  78. * Mon Aug 15 2011 Martin Stransky <stransky@redhat.com> 0.3-1
  79. - initial build