/[packages]/cauldron/ltris/current/SPECS/ltris.spec
ViewVC logotype

Contents of /cauldron/ltris/current/SPECS/ltris.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 72826 - (show annotations) (download)
Wed Mar 16 21:14:39 2011 UTC (10 years, 6 months ago) by steletch
File size: 2000 byte(s)
- Clean spec file
1 %define name ltris
2 %define version 1.0.16
3 %define release %mkrel 1
4
5 Summary: Nice tetris clone
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Epoch: 1
10 Url: http://lgames.sourceforge.net/index.php?project=LTris
11 Source0: http://prdownloads.sourceforge.net/lgames/%{name}-%{version}.tar.xz
12 # Source4: %{name}.menu
13 Source5: %{name}16.png.bz2
14 Source6: %{name}32.png.bz2
15 Source7: %{name}48.png.bz2
16 License: GPLv2+
17 Group: Games/Arcade
18 BuildRoot: %{_tmppath}/%{name}-buildroot
19 BuildRequires: libSDL_mixer-devel
20
21 %description
22 o Tetris clone using SDL
23 o Sound
24 o Menu
25 o Controls can be redefined
26 o Block preview
27 o Starting level between 0 and 9
28 o Various backgrounds
29 o HighScores
30 o Nice graphics
31 o Smooth gameplay
32 o Cool effects (transparency, animations)
33 o Two player mode
34 o Two game modes
35
36 %prep
37 %setup -q
38
39 %build
40 %configure2_5x --with-highscore-path=%{_localstatedir}/lib/games \
41 --bindir=%{_gamesbindir}
42 %make
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 %makeinstall_std
47
48 mkdir -p $RPM_BUILD_ROOT{%{_liconsdir},%{_miconsdir}}
49
50 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
51 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
52 bzcat %{SOURCE7} > $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
53
54 # install -D -m644 %SOURCE4 $RPM_BUILD_ROOT%{_menudir}/%{name}
55
56 rm %{buildroot}%{_datadir}/applications/%{name}.desktop
57 rm %{buildroot}%{_iconsdir}/%{name}48.gif
58
59 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
60 cat >$RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
61 [Desktop Entry]
62 Name=LTris
63 Comment=Nice tetris clone
64 Exec=/usr/games/ltris
65 Icon=ltris
66 Terminal=false
67 Type=Application
68 Categories=Game;ArcadeGame;
69 EOF
70
71 %find_lang %name
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files -f %name.lang
77 %defattr(-,root,root)
78 %doc README INSTALL AUTHORS ChangeLog
79 %attr(2755, root, games) %{_gamesbindir}/*
80 %attr(664, root, games) %{_localstatedir}/%{name}.hscr
81 %{_datadir}/%{name}
82 %{_datadir}/applications/mandriva-%{name}.desktop
83 %{_iconsdir}/*.png
84 %{_miconsdir}/*
85 %{_liconsdir}/*
86
87

  ViewVC Help
Powered by ViewVC 1.1.28