]>
Commit | Line | Data |
---|---|---|
0db61b20 WF |
1 | %define _state stable |
2 | %define orgname kbounce | |
3 | %define qtver 4.8.0 | |
4 | ||
5 | Summary: Claim areas and don't get disturbed | |
6 | Summary(pl.UTF-8): Gra polegajÄ…ca na pozyskiwaniu terenu wbrew przeciwnikom | |
e9acff84 | 7 | Name: kde4-%{orgname} |
ccefcaa1 | 8 | Version: 4.13.1 |
0db61b20 WF |
9 | Release: 1 |
10 | License: GPL | |
11 | Group: X11/Applications/Games | |
12 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz | |
ccefcaa1 | 13 | # Source0-md5: 41dbe4b3d4c113fa4c452051ba39e1e2 |
0db61b20 WF |
14 | BuildRequires: automoc4 >= 0.9.88 |
15 | BuildRequires: cmake >= 2.8.0 | |
16 | BuildRequires: kde4-kdelibs-devel >= %{version} | |
17 | BuildRequires: kde4-libkdegames-devel >= %{version} | |
18 | BuildRequires: qt4-build >= %{qtver} | |
19 | BuildRequires: qt4-qmake >= %{qtver} | |
20 | BuildRequires: rpmbuild(macros) >= 1.600 | |
e9acff84 | 21 | Obsoletes: kde4-kdegames-%{orgname} |
0db61b20 WF |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Claim areas and don't get disturbed. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Gra polegajÄ…ca na pozyskiwaniu terenu wbrew przeciwnikom. | |
29 | ||
30 | %prep | |
31 | %setup -q -n %{orgname}-%{version} | |
32 | ||
33 | %build | |
34 | install -d build | |
35 | cd build | |
36 | %cmake \ | |
37 | ../ | |
38 | ||
39 | %{__make} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} -C build install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT \ | |
46 | kde_htmldir=%{_kdedocdir} | |
47 | ||
48 | install -d $RPM_BUILD_ROOT/var/games | |
49 | touch $RPM_BUILD_ROOT/var/games/kbounce.scores | |
50 | # remove locolor icons | |
51 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor | |
52 | ||
e9acff84 | 53 | %find_lang %{orgname} --with-kde |
0db61b20 WF |
54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %post -p /sbin/ldconfig | |
59 | %postun -p /sbin/ldconfig | |
60 | ||
e9acff84 | 61 | %files -f %{orgname}.lang |
0db61b20 WF |
62 | %defattr(644,root,root,755) |
63 | %attr(755,root,root) %{_bindir}/kbounce | |
64 | %{_desktopdir}/kde4/kbounce.desktop | |
65 | %{_datadir}/apps/kbounce | |
66 | %{_iconsdir}/hicolor/*/*/kbounce.png | |
67 | /var/games/kbounce.scores |