# # spec file for package cutemaze # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright Vincent Petry # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: cutemaze Version: 1.3.0 Release: 1%{?dist} Summary: Maze game License: GPL-3.0 Group: Amusements/Games/Logic Url: http://gottcode.org/cutemaze/ #Source: %{name}-%{version}-src.tar.bz2 #Source1: %{name}.desktop %scm_source github https://github.com/gottcode/cutemaze main BuildRequires: gcc-c++ #BuildRequires: libqt4-devel >= 4.4 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description CuteMaze is a simple, top-down game in which mazes are randomly generated using one of a choice of several different algorithms. You move the character through the maze while hunting for targets (cheese, by default)—the game is won once all of these targets have been picked up. %prep #%setup -q %scm_setup %build # do a fast qt build, as runmapsym and wmapsym is not needed here export QMAKE_SH=$SHELL export FAST_BUILD=1 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" qmake "CONFIG+=release" PREFIX=/@unixroot/usr make %{?_smp_mflags} %install make INSTALL_ROOT=%{buildroot} install mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_datadir}/%{name}/translations mkdir -p %{buildroot}%{_datadir}/%{name}/themes mkdir -p %{buildroot}%{_mandir}/man6/ mkdir -p %{buildroot}%{_datadir}/%{name}/icons/ install -p -m 644 release/cutemaze.exe %{buildroot}%{_bindir}/ install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/ install -p -m 644 themes/* %{buildroot}%{_datadir}/%{name}/themes/ install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/ install -p -m 644 icons/hicolor/32x32/apps/*.png %{buildroot}%{_datadir}/%{name}/icons/ %files %defattr(-,root,root) %{_bindir}/%{name}.exe %doc ChangeLog COPYING README %{_datadir}/%{name}/icons/*.png %{_datadir}/%{name}/translations %{_datadir}/%{name}/themes %{_mandir}/man6/%{name}.6* %changelog * Tue May 18 2021 Elbert Pol - 1.3.0-1 - Updated to latest version * Fri Apr 24 2020 Elbert Pol - 1.2.6-1 - first QT5 RPM for OS2