]> git.pld-linux.org Git - packages/kde4-kblackbox.git/blob - kde4-kblackbox.spec
- new, based on kde4-kdegames
[packages/kde4-kblackbox.git] / kde4-kblackbox.spec
1 %define         _state          stable
2 %define         orgname         kblackbox
3 %define         qtver           4.8.0
4
5 Summary:        A little logical game for KDE
6 Summary(pl.UTF-8):      Prosta gra logiczna
7 Summary(pt_BR.UTF-8):   Versão do jogo Blackbox do Emacs para KDE
8 Name:           kde4-kblackbox
9 Version:        4.12.0
10 Release:        1
11 License:        GPL
12 Group:          X11/Applications/Games
13 Source0:        ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
14 # Source0-md5:  2531003a4d06e1305f70f42889c54683
15 BuildRequires:  automoc4 >= 0.9.88
16 BuildRequires:  cmake >= 2.8.0
17 BuildRequires:  kde4-kdelibs-devel >= %{version}
18 BuildRequires:  kde4-libkdegames-devel >= %{version}
19 BuildRequires:  qt4-build >= %{qtver}
20 BuildRequires:  qt4-qmake >= %{qtver}
21 BuildRequires:  rpmbuild(macros) >= 1.600
22 Obsoletes:      kde4-kdegames-kblackbox
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 KBlackbox is a game of hide and seek played on an grid of boxes. Your
27 opponent (the Random number generator, in this case) has hidden
28 several balls within this box. By shooting rays into the box and
29 observing where they emerge it is possible to deduce the positions of
30 the hidden balls. The fewer rays you use to find the balls, the better
31 (the lower) your score.
32
33 %description -l pl.UTF-8
34 KBlackbox to gra w ukrywanie i szukanie rozgrywana na siatce pudełek.
35 Przeciwnik (w tym wypadku generator liczb losowych) ukrył kilka piłek
36 w tym pudełku. Poprzez strzelanie promieniami w pudełko i obserwowanie
37 jak się wynurzają można wydedukować położenie ukrytych piłek. Im mniej
38 promieni użyje się do znalezienia piłek, tym lepszy (mniejszy) jest
39 wynik.
40
41 %description -l pt_BR.UTF-8
42 Versão do jogo Blackbox do Emacs para KDE.
43
44 %prep
45 %setup -q -n %{orgname}-%{version}
46
47 %build
48 install -d build
49 cd build
50 %cmake \
51         ../
52
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} -C build install \
59         DESTDIR=$RPM_BUILD_ROOT \
60         kde_htmldir=%{_kdedocdir}
61
62 install -d $RPM_BUILD_ROOT/var/games
63 touch $RPM_BUILD_ROOT/var/games/kbounce.scores
64 # remove locolor icons
65 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor
66
67 %find_lang kblackbox    --with-kde
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post                   -p /sbin/ldconfig
73 %postun                 -p /sbin/ldconfig
74
75 %files -f kblackbox.lang
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_bindir}/kblackbox
78 %{_desktopdir}/kde4/kblackbox.desktop
79 %{_datadir}/apps/kblackbox
80 %{_iconsdir}/*/*/apps/kblackbox.png
This page took 0.056601 seconds and 3 git commands to generate.