source: spec/trunk/SPECS/peg-e.spec@ 1808

Last change on this file since 1808 was 1783, checked in by tellie, 4 years ago

spec: peg-e: Release version 1.3.0-1.

File size: 1.9 KB
Line 
1Name: peg-e
2Version: 1.3.0
3Release: 1%{?dist}
4Summary: Peg solitaire game
5Group: Amusements/Games
6License: GPLv3+
7URL: http://gottcode.org/%{name}/
8%if !0%{?os2_version}
9Source: 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
14BuildRequires: gcc
15BuildRequires: qt5-qtbase-devel
16#BuildRequires: qt5-linguist
17
18%description
19A peg solitaire game in which you jump over pieces in order to remove them from
20the board, ultimately trying to eliminate all but one. The boards are randomly
21generated, with 100 levels of difficulty. The game auto-saves, and has undo-redo
22capability. 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
33export QMAKE_SH=$SHELL
34export FAST_BUILD=1
35LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
36
37qmake-qt5 "CONFIG+=release" PREFIX=/@unixroot/usr
38make %{?_smp_mflags}
39
40%install
41make install INSTALL_ROOT=%{buildroot}
42mkdir -p %{buildroot}%{_bindir}/
43mkdir -p %{buildroot}%{_mandir}/man6/
44mkdir -p %{buildroot}%{_datadir}/%{name}/translations
45mkdir -p %{buildroot}%{_datadir}/%{name}/icons/
46install -p -m 644 %{name}.exe %{buildroot}%{_bindir}/
47install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
48install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/
49install -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
Note: See TracBrowser for help on using the repository browser.