2 %define orgname knetwalk
6 Summary(pl.UTF-8): knetwalk dla KDE
11 Group: X11/Applications/Games
12 Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
13 # Source0-md5: 04699d3e73e11c35ef12a643e604664a
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)
25 The aim of this game is to connect the network with a minimum amount
28 %description -l pl.UTF-8
29 Celem tej gry jest połączenie sieci minimalną liczbą kliknięć.
32 %setup -q -n %{orgname}-%{version}
43 rm -rf $RPM_BUILD_ROOT
45 %{__make} -C build install \
46 DESTDIR=$RPM_BUILD_ROOT \
47 kde_htmldir=%{_kdedocdir}
49 install -d $RPM_BUILD_ROOT/var/games
50 # remove locolor icons
51 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor
53 %find_lang %{orgname} --with-kde
56 rm -rf $RPM_BUILD_ROOT
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