| 1 | Name: peg-e
|
|---|
| 2 | Version: 1.3.0
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Peg solitaire game
|
|---|
| 5 | Group: Amusements/Games
|
|---|
| 6 | License: GPLv3+
|
|---|
| 7 | URL: http://gottcode.org/%{name}/
|
|---|
| 8 | %if !0%{?os2_version}
|
|---|
| 9 | Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
|
|---|
| 10 | %else
|
|---|
| 11 | %scm_source github https://github.com/gottcode/peg-e main
|
|---|
| 12 | %endif
|
|---|
| 13 |
|
|---|
| 14 | BuildRequires: gcc
|
|---|
| 15 | BuildRequires: qt5-qtbase-devel
|
|---|
| 16 | #BuildRequires: qt5-linguist
|
|---|
| 17 |
|
|---|
| 18 | %description
|
|---|
| 19 | A peg solitaire game in which you jump over pieces in order to remove them from
|
|---|
| 20 | the board, ultimately trying to eliminate all but one. The boards are randomly
|
|---|
| 21 | generated, with 100 levels of difficulty. The game auto-saves, and has undo-redo
|
|---|
| 22 | capability. Pieces can move horizontally, vertically, and diagonally.
|
|---|
| 23 |
|
|---|
| 24 | %prep
|
|---|
| 25 | %if !0%{?os2_version}
|
|---|
| 26 | %setup -q
|
|---|
| 27 | %else
|
|---|
| 28 | %scm_setup
|
|---|
| 29 | %endif
|
|---|
| 30 |
|
|---|
| 31 | %build
|
|---|
| 32 | # do a fast qt build, as runmapsym and wmapsym is not needed here
|
|---|
| 33 | export QMAKE_SH=$SHELL
|
|---|
| 34 | export FAST_BUILD=1
|
|---|
| 35 | LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 36 |
|
|---|
| 37 | qmake-qt5 "CONFIG+=release" PREFIX=/@unixroot/usr
|
|---|
| 38 | make %{?_smp_mflags}
|
|---|
| 39 |
|
|---|
| 40 | %install
|
|---|
| 41 | make install INSTALL_ROOT=%{buildroot}
|
|---|
| 42 | mkdir -p %{buildroot}%{_bindir}/
|
|---|
| 43 | mkdir -p %{buildroot}%{_mandir}/man6/
|
|---|
| 44 | mkdir -p %{buildroot}%{_datadir}/%{name}/translations
|
|---|
| 45 | mkdir -p %{buildroot}%{_datadir}/%{name}/icons/
|
|---|
| 46 | install -p -m 644 %{name}.exe %{buildroot}%{_bindir}/
|
|---|
| 47 | install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
|
|---|
| 48 | install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/
|
|---|
| 49 | install -p -m 644 icons/hicolor/32x32/apps/*.png %{buildroot}%{_datadir}/%{name}/icons/
|
|---|
| 50 |
|
|---|
| 51 | %files
|
|---|
| 52 | %doc ChangeLog COPYING CREDITS README
|
|---|
| 53 | %{_bindir}/%{name}.exe
|
|---|
| 54 | %{_datadir}/%{name}/translations
|
|---|
| 55 | %{_datadir}/peg-e/icons/*.png
|
|---|
| 56 | %{_mandir}/man6/%{name}.6.*
|
|---|
| 57 |
|
|---|
| 58 | %changelog
|
|---|
| 59 | * Fri Oct 08 2021 Elbert Pol <elbert.pol@gmail.com> - 1.3.0-1
|
|---|
| 60 | - Updated to latest version
|
|---|
| 61 |
|
|---|
| 62 | * Thu Apr 23 2020 Elbert Pol <elbert.pol@gmail.com> - 1.2.8-1
|
|---|
| 63 | - first QT5 RPM for OS2
|
|---|