Name: peg-e Version: 1.3.0 Release: 1%{?dist} Summary: Peg solitaire game Group: Amusements/Games License: GPLv3+ URL: http://gottcode.org/%{name}/ %if !0%{?os2_version} Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2 %else %scm_source github https://github.com/gottcode/peg-e main %endif BuildRequires: gcc BuildRequires: qt5-qtbase-devel #BuildRequires: qt5-linguist %description A peg solitaire game in which you jump over pieces in order to remove them from the board, ultimately trying to eliminate all but one. The boards are randomly generated, with 100 levels of difficulty. The game auto-saves, and has undo-redo capability. Pieces can move horizontally, vertically, and diagonally. %prep %if !0%{?os2_version} %setup -q %else %scm_setup %endif %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-qt5 "CONFIG+=release" PREFIX=/@unixroot/usr make %{?_smp_mflags} %install make install INSTALL_ROOT=%{buildroot} mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_mandir}/man6/ mkdir -p %{buildroot}%{_datadir}/%{name}/translations mkdir -p %{buildroot}%{_datadir}/%{name}/icons/ install -p -m 644 %{name}.exe %{buildroot}%{_bindir}/ install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/ install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/ install -p -m 644 icons/hicolor/32x32/apps/*.png %{buildroot}%{_datadir}/%{name}/icons/ %files %doc ChangeLog COPYING CREDITS README %{_bindir}/%{name}.exe %{_datadir}/%{name}/translations %{_datadir}/peg-e/icons/*.png %{_mandir}/man6/%{name}.6.* %changelog * Fri Oct 08 2021 Elbert Pol - 1.3.0-1 - Updated to latest version * Thu Apr 23 2020 Elbert Pol - 1.2.8-1 - first QT5 RPM for OS2