%define kdeappsver 18.12.0 %define qtver 5.9.0 %define kaname knavalbattle Summary: knavalbattle Name: ka5-%{kaname} Version: 18.12.0 Release: 1 License: GPL v2+/LGPL v2.1+ Group: X11/Applications/Games Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz # Source0-md5: 755b0c594e155fdd6a168cca5d3f8da6 URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5Gui-devel >= 5.11.1 BuildRequires: Qt5Qml-devel >= 5.11.1 BuildRequires: Qt5Quick-devel >= 5.11.1 BuildRequires: Qt5Widgets-devel BuildRequires: gettext-devel BuildRequires: ka5-libkdegames-devel >= 18.12.0 BuildRequires: kf5-extra-cmake-modules >= 5.53.0 BuildRequires: kf5-kconfig-devel >= 5.30.0 BuildRequires: kf5-kcrash-devel >= 5.30.0 BuildRequires: kf5-kdbusaddons-devel >= 5.30.0 BuildRequires: kf5-kdnssd-devel >= 5.30.0 BuildRequires: kf5-kdoctools-devel >= 5.30.0 BuildRequires: kf5-ki18n-devel >= 5.30.0 BuildRequires: kf5-ktextwidgets-devel >= 5.30.0 BuildRequires: kf5-kxmlgui-devel >= 5.30.0 BuildRequires: qt5-build >= %{qtver} BuildRequires: rpmbuild(macros) >= 1.164 BuildRequires: shared-mime-info BuildRequires: tar >= 1:1.22 BuildRequires: xz BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Naval Battle is a ship sinking game by KDE. Ships are placed on a board which represents the sea. Players try to hit each others ships in turns without knowing where they are placed. The first player to destroy all ships wins the game. %prep %setup -q -n %{kaname}-%{version} %build install -d build cd build %cmake \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ .. %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT %find_lang %{kaname} --all-name --with-qm %clean rm -rf $RPM_BUILD_ROOT %files -f %{kaname}.lang %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/knavalbattle %{_desktopdir}/org.kde.knavalbattle.desktop %{_iconsdir}/hicolor/128x128/apps/knavalbattle.png %{_iconsdir}/hicolor/16x16/apps/knavalbattle.png %{_iconsdir}/hicolor/22x22/apps/knavalbattle.png %{_iconsdir}/hicolor/32x32/apps/knavalbattle.png %{_iconsdir}/hicolor/48x48/apps/knavalbattle.png %{_iconsdir}/hicolor/64x64/apps/knavalbattle.png %{_datadir}/kconf_update/knavalbattle.upd %{_datadir}/knavalbattle %{_datadir}/kservices5/knavalbattle.protocol %dir %{_datadir}/kxmlgui5/knavalbattle %{_datadir}/kxmlgui5/knavalbattle/knavalbattleui.rc %{_datadir}/metainfo/org.kde.knavalbattle.appdata.xml