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