]>
Commit | Line | Data |
---|---|---|
dce51d37 WF |
1 | %define _state stable |
2 | %define orgname knetwalk | |
3 | %define qtver 4.8.0 | |
4 | ||
5 | Summary: KDE knetwalk | |
6 | Summary(pl.UTF-8): knetwalk dla KDE | |
7 | Name: kde4-%{orgname} | |
7b2d1d36 | 8 | Version: 4.13.1 |
dce51d37 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 | |
7b2d1d36 | 13 | # Source0-md5: 644dff91d0b60f91dabbea5242b69f45 |
dce51d37 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 | |
21 | Obsoletes: kde4-kdegames-%{orgname} | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | The aim of this game is to connect the network with a minimum amount | |
26 | of clicks. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Celem tej gry jest połączenie sieci minimalną liczbą kliknięć. | |
30 | ||
31 | %prep | |
32 | %setup -q -n %{orgname}-%{version} | |
33 | ||
34 | %build | |
35 | install -d build | |
36 | cd build | |
37 | %cmake \ | |
38 | ../ | |
39 | ||
40 | %{__make} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} -C build install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT \ | |
47 | kde_htmldir=%{_kdedocdir} | |
48 | ||
49 | install -d $RPM_BUILD_ROOT/var/games | |
50 | # remove locolor icons | |
51 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor | |
52 | ||
53 | %find_lang %{orgname} --with-kde | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files -f %{orgname}.lang | |
59 | %defattr(644,root,root,755) | |
60 | %attr(755,root,root) %{_bindir}/knetwalk | |
61 | %{_desktopdir}/kde4/knetwalk.desktop | |
62 | %{_datadir}/apps/knetwalk | |
63 | %{_iconsdir}/*/*/apps/knetwalk.png | |
64 | %{_iconsdir}/hicolor/scalable/apps/knetwalk.svgz |