%define uname 2048-Qt Name: 2048-qt Version: 0.1.5 Release: %mkrel 1 Summary: Mathematics-based puzzle game Group: Games/Puzzles License: MIT URL: https://github.com/xiaoyong/2048-Qt/ Source0: https://github.com/xiaoyong/2048-Qt/archive/%{version}/%{uname}-%{version}.tar.gz Source1: 2048-qt_fr_FR.qm Patch0: 2048-qt-0.1.5-mga-binary-path.patch Patch1: 2048-qt-0.1.5-mga-desktop.patch Patch2: 2048-qt-0.1.5-mga-french-translation.patch BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5Widgets) Requires: qtdeclarative5 Requires: qtquickcontrols5 %description 2048 is a mathematics-based puzzle game where you have to slide tiles on a grid to combine them and create a tile with the number 2048. You have to merge the similar number tiles by moving the arrow keys in four different directions. When two tiles with the same number touch, they will merge into one. %prep %setup -q -n %{uname}-%{version} %apply_patches cp %{SOURCE1} ts/ %build %qmake_qt5 %make %install %qmakeinstall_std install -d %{buildroot}%{_iconsdir}/hicolor cp -a icons/{16x16,32x32,48x48,256x256,scalable} %{buildroot}%{_iconsdir}/hicolor install -D -m644 man/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6 install -D -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %files %doc Changelog.md LICENSE README.md %{_datadir}/applications/%{name}.desktop %{_gamesbindir}/%{name} %{_iconsdir}/hicolor/*/apps/%{name}.* %{_mandir}/man6/%{name}.6*