edgar-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %define pkgrel 1
  2. %define with_my_japo 0
  3. Summary: The Legend of Edgar - 2D Platform Game
  4. Name: edgar
  5. Version: 0.92
  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.46-makefile-vine.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: SDL_net-devel
  21. BuildRequires: zlib-devel
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  23. Packager: munepi
  24. %description
  25. The Legend of Edgar. When his father fails to return home after venturing
  26. out one stormy night, Edgar sets off on a quest to rescue him.
  27. %prep
  28. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  29. %setup -q
  30. #%patch -p1 -b .vine
  31. %if %{with_my_japo}
  32. ## vine
  33. %__install -m644 %{SOURCE100} locale/ja.po
  34. %endif
  35. %build
  36. %__make BIN_DIR=%{_bindir}
  37. %install
  38. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  39. %__make install \
  40. DESTDIR=%{buildroot} \
  41. BIN_DIR=%{buildroot}%{_bindir}/
  42. ## remove unpackaged files
  43. %__rm -rf %{buildroot}%{_datadir}/doc
  44. %find_lang %{name}
  45. %clean
  46. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  47. %files -f %{name}.lang
  48. %defattr(-,root,root,-)
  49. %doc doc/*
  50. %dir %{_datadir}/games/edgar
  51. %{_bindir}/edgar
  52. %{_datadir}/applications/edgar.desktop
  53. %{_datadir}/games/edgar/edgar.pak
  54. %{_datadir}/icons/hicolor/*/apps/edgar.png
  55. %changelog
  56. * Thu Jul 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.92-1
  57. - new upstream release
  58. * Fri Jun 24 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.87-1
  59. - new upstream release
  60. * Tue Mar 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.80-1
  61. - new upstream release
  62. * Mon Jan 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.73-1
  63. - new upstream release
  64. * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.71-1
  65. - new upstream release
  66. * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.46-1
  67. - initial build