source: projects/specs/trunk/v/vacuum-magic/vacuum-magic-vl.spec @ 5472

Revision 5472, 3.2 KB checked in by munepi, 12 years ago (diff)

updated vacuum-magic-vl.spec

Line 
1%define srcname vacuum
2%define major_ver 0.13
3%define minor_ver a
4
5Name:           vacuum-magic
6Version:        %{major_ver}%{minor_ver}
7Release:        3%{?_dist_release}
8Summary:        Vacuum Magic is a fast-paced action game
9Summary(ja):    テンポの速いアクションゲーム
10License:        GPL
11URL:            http://apocalypse.rulez.org/vacuum
12Group:          Applications/Games
13Source0:        %{srcname}-%{version}.tar.gz
14Source1:        %{name}.png
15
16BuildRequires:  perl-Compress-Zlib
17BuildRequires:  SDL_perl
18BuildRequires:  desktop-file-utils
19Requires:       perl
20Requires:       SDL_perl
21Requires:       perl-Compress-Zlib
22
23BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
24BuildArch:      noarch
25
26%description
27Vacuum Magic is a fast-paced action game.
28
29The point of the game is using your magical vacuum field to
30collect food and defend against monsters. Food and certain
31monsters can also be spat out and used as a projectile
32against other monsters. Vacuum Magic can be played by up to
33six players, either cooperatively or against each other.
34
35%description -l ja
36Vacuum Magic はテンポの速いアクションゲームです。
37
38魔法の吸い込み砲を使って、食料を集めたり、怪物に反撃をする。
39また、飲み込んだ食料やある怪物は吐き出せて、
40ほかの怪物に対して弾として使える。
41Vacuum 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]
77Comment=Vacuum Magic is a fast-paced action game
78Name=Vacuum Magic
79GenericName=Vacuum Magic
80Type=Application
81Exec=%{name}
82Icon=%{name}
83Terminal=false
84Categories=GNOME;Application;Game
85EOF
86
87desktop-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* Tue Jan 24 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-3
117- rebuild
118
119* Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-2
120- rebuild for vl6
121
122* Sat Aug 02 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-1
123- initial build
124
Note: See TracBrowser for help on using the repository browser.