edgar-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. %define pkgrel 3
  2. %define with_my_japo 0
  3. Summary: The Legend of Edgar - 2D Platform Game
  4. Name: edgar
  5. Version: 0.98
  6. Release: 1%{?_dist_release}
  7. Source: %{name}-%{version}-%{pkgrel}.tar.gz
  8. ## vine
  9. %if %{with_my_japo}
  10. Source100: edgar-0.46-ja.po
  11. %endif
  12. Patch: edgar-0.93-build-failure.patch
  13. URL: http://www.parallelrealities.co.uk/projects/edgar.php
  14. Group: Applications/Games
  15. License: GPLv2
  16. BuildRequires: SDL-devel
  17. BuildRequires: SDL_image-devel
  18. BuildRequires: SDL_mixer-devel
  19. BuildRequires: SDL_ttf-devel
  20. BuildRequires: zlib-devel
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  22. Packager: munepi
  23. %description
  24. The Legend of Edgar. When his father fails to return home after venturing
  25. out one stormy night, Edgar sets off on a quest to rescue him.
  26. %prep
  27. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  28. %setup -q
  29. #%patch -p1 -b .vine
  30. %if %{with_my_japo}
  31. ## vine
  32. %__install -m644 %{SOURCE100} locale/ja.po
  33. %endif
  34. %build
  35. %__make BIN_DIR=%{_bindir}
  36. %install
  37. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  38. %__make install \
  39. DESTDIR=%{buildroot} \
  40. BIN_DIR=%{buildroot}%{_bindir}/
  41. ## remove unpackaged files
  42. %__rm -rf %{buildroot}%{_datadir}/doc
  43. %find_lang %{name}
  44. %clean
  45. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  46. %files -f %{name}.lang
  47. %defattr(-,root,root,-)
  48. %doc doc/*
  49. %dir %{_datadir}/games/edgar
  50. %{_bindir}/edgar
  51. %{_datadir}/applications/edgar.desktop
  52. %{_datadir}/games/edgar/edgar.pak
  53. %{_datadir}/icons/hicolor/*/apps/edgar.png
  54. %changelog
  55. * Thu Mar 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.98-1
  56. - new upstream release
  57. * Sat Mar 3 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.97-1
  58. - new upstream release
  59. * Sat Jan 21 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.96-1
  60. - new upstream release
  61. - dropped BuildRequires: SDL_net-devel
  62. * Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.93-1
  63. - new upstream release
  64. - applied edgar-0.93-build-failure.patch
  65. * Thu Jul 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.92-1
  66. - new upstream release
  67. * Fri Jun 24 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.87-1
  68. - new upstream release
  69. * Tue Mar 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.80-1
  70. - new upstream release
  71. * Mon Jan 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.73-1
  72. - new upstream release
  73. * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.71-1
  74. - new upstream release
  75. * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.46-1
  76. - initial build