source: spec/trunk/SPECS/gottet.spec@ 1796

Last change on this file since 1796 was 1770, checked in by tellie, 5 years ago

spec: gottet: Release version 1.2.0-1.

File size: 1.6 KB
Line 
1Name: gottet
2Version: 1.2.0
3Release: 1%{?dist}
4Summary: Falling blocks game
5Group: Amusements/Games
6License: GPLv3+
7URL: http://gottcode.org/%{name}/
8#Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
9%scm_source github https://github.com/gottcode/gottet main
10
11BuildRequires: gcc
12BuildRequires: qt5-qtbase-devel
13#BuildRequires: qt5-linguist
14
15%description
16A tetris clone using the Qt GUI toolkit.
17
18%prep
19#%setup -q
20%scm_setup
21
22%build
23# do a fast qt build, as runmapsym and wmapsym is not needed here
24export QMAKE_SH=$SHELL
25export FAST_BUILD=1
26LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
27
28qmake "CONFIG+=release" PREFIX=/@unixroot/usr
29make %{?_smp_mflags}
30
31%install
32make install INSTALL_ROOT=%{buildroot}
33mkdir -p %{buildroot}%{_bindir}/
34mkdir -p %{buildroot}%{_mandir}/man6/
35mkdir -p %{buildroot}%{_datadir}/%{name}/translations
36mkdir -p %{buildroot}%{_datadir}/%{name}/icons/
37install -p -m 644 release/%{name}.exe %{buildroot}%{_bindir}/
38install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
39install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/
40install -p -m 644 icons/hicolor/32x32/apps/*.png %{buildroot}%{_datadir}/%{name}/icons/
41
42%files
43%defattr(-,root,root,-)
44%doc ChangeLog COPYING CREDITS README
45%{_bindir}/%{name}.exe
46%{_datadir}/%{name}
47%{_mandir}/man6/gottet.6.*
48%{_datadir}/%{name}/icons/*.png
49%{_datadir}/%{name}/translations
50
51%changelog
52* Tue May 18 2021 Elbert Pol <elbert.pol@gmail.com> - 1.2.0-1
53- Updated to latest version
54
55* Thu Apr 23 2020 Elbert Pol <elbert.pol@gmail.com> - 1.1.9-1
56- first QT5 RPM for OS2
Note: See TracBrowser for help on using the repository browser.