[521] | 1 | %define srcname vacuum |
---|
| 2 | %define major_ver 0.13 |
---|
| 3 | %define minor_ver a |
---|
| 4 | |
---|
| 5 | Name: vacuum-magic |
---|
| 6 | Version: %{major_ver}%{minor_ver} |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | Summary: Vacuum Magic is a fast-paced action game |
---|
| 9 | Summary(ja): テンポの速いアクションゲーム |
---|
| 10 | License: GPL |
---|
| 11 | URL: http://apocalypse.rulez.org/vacuum |
---|
| 12 | Group: Applications/Games |
---|
| 13 | Source0: %{srcname}-%{version}.tar.gz |
---|
| 14 | Source1: %{name}.png |
---|
| 15 | |
---|
| 16 | BuildRequires: perl-Compress-Zlib |
---|
| 17 | BuildRequires: SDL_perl |
---|
| 18 | BuildRequires: desktop-file-utils |
---|
| 19 | Requires: perl |
---|
| 20 | Requires: SDL_perl |
---|
| 21 | Requires: perl-Compress-Zlib |
---|
| 22 | |
---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 24 | BuildArch: noarch |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | Vacuum Magic is a fast-paced action game. |
---|
| 28 | |
---|
| 29 | The point of the game is using your magical vacuum field to |
---|
| 30 | collect food and defend against monsters. Food and certain |
---|
| 31 | monsters can also be spat out and used as a projectile |
---|
| 32 | against other monsters. Vacuum Magic can be played by up to |
---|
| 33 | six players, either cooperatively or against each other. |
---|
| 34 | |
---|
| 35 | %description -l ja |
---|
| 36 | Vacuum Magic はテンポの速いアクションゲームです。 |
---|
| 37 | |
---|
| 38 | 魔法の吸い込み砲を使って、食料を集めたり、怪物に反撃をする。 |
---|
| 39 | また、飲み込んだ食料やある怪物は吐き出せて、 |
---|
| 40 | ほかの怪物に対して弾として使える。 |
---|
| 41 | Vacuum Magic は最大で 6 人同時プレイが可能で、 |
---|
| 42 | 協力プレイまたは反撃プレイのどちらかで遊べます。 |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | %prep |
---|
| 46 | %setup -q -n %{srcname}-%{major_ver} |
---|
| 47 | |
---|
| 48 | %build |
---|
| 49 | %configure |
---|
| 50 | %__make |
---|
| 51 | |
---|
| 52 | %install |
---|
| 53 | [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" |
---|
| 54 | |
---|
| 55 | %makeinstall |
---|
| 56 | |
---|
| 57 | ## rename |
---|
| 58 | %__sed -i -e "s@/share/%{srcname}@/share/%{name}@g" \ |
---|
| 59 | %{buildroot}/%{_bindir}/%{srcname} |
---|
| 60 | %__mv %{buildroot}/%{_bindir}/%{srcname} %{buildroot}/%{_bindir}/%{name} |
---|
| 61 | |
---|
| 62 | %__mv %{buildroot}/%{_datadir}/%{srcname} %{buildroot}/%{_datadir}/%{name} |
---|
| 63 | |
---|
| 64 | %__mv %{buildroot}/%{_datadir}/man/man6/%{srcname}.6 \ |
---|
| 65 | %{buildroot}/%{_datadir}/man/man6/%{name}.6 |
---|
| 66 | |
---|
| 67 | ## NO use perl(Win32), which is required by perl(L2hos::Win32) |
---|
| 68 | %__sed -i -e 's/use Win32;/## RPM requires perl(Win32)\n# use Win32;/' \ |
---|
| 69 | $RPM_BUILD_ROOT%{_bindir}/%{name} |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | ## menu |
---|
| 73 | %__install -dm 755 %{buildroot}%{_datadir}/pixmaps |
---|
| 74 | %__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps |
---|
| 75 | %__cat > %{name}.desktop << EOF |
---|
| 76 | [Desktop Entry] |
---|
| 77 | Comment=Vacuum Magic is a fast-paced action game |
---|
| 78 | Name=Vacuum Magic |
---|
| 79 | GenericName=Vacuum Magic |
---|
| 80 | Type=Application |
---|
| 81 | Exec=%{name} |
---|
| 82 | Icon=%{name} |
---|
| 83 | Terminal=false |
---|
| 84 | Categories=GNOME;Application;Game |
---|
| 85 | EOF |
---|
| 86 | |
---|
| 87 | desktop-file-install --vendor Vine \ |
---|
| 88 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 89 | --mode 644 \ |
---|
| 90 | %{name}.desktop |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %post |
---|
| 94 | %{_bindir}/update-desktop-database %{_datadir}/applications || : |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | %postun |
---|
| 98 | %{_bindir}/update-desktop-database %{_datadir}/applications || : |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %clean |
---|
| 102 | [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | %files |
---|
| 106 | %defattr(-,root,root,-) |
---|
| 107 | %doc AUTHORS ChangeLog README NEWS TODO |
---|
| 108 | %doc %{_mandir}/man6/%{name}.6.gz |
---|
| 109 | %{_bindir}/%{name} |
---|
| 110 | %dir %{_datadir}/%{name} |
---|
| 111 | %{_datadir}/%{name}/* |
---|
| 112 | %{_datadir}/applications/*.desktop |
---|
| 113 | %{_datadir}/pixmaps/*.png |
---|
| 114 | |
---|
| 115 | %changelog |
---|
| 116 | * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-2 |
---|
| 117 | - rebuild for vl6 |
---|
| 118 | |
---|
| 119 | * Sat Aug 02 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-1 |
---|
| 120 | - initial build |
---|
| 121 | |
---|