source: spec/trunk/SPECS/tanglet.spec@ 1750

Last change on this file since 1750 was 1731, checked in by tellie, 5 years ago

spec: tanglet: Release version 1.5.6-1.

File size: 3.3 KB
Line 
1Name: tanglet
2Version: 1.5.6
3Release: 1%{?dist}
4Summary: Word finding game
5License: GPLv3+
6URL: http://gottcode.org/%{name}/
7
8# Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
9%scm_source github https://github.com/gottcode/tanglet master
10
11
12#BuildRequires: desktop-file-utils
13#BuildRequires: libappstream-glib
14BuildRequires: qt5-qttools-devel
15BuildRequires: zlib-devel
16
17Requires: %{name}-data = %{version}-%{release}
18
19%description
20A single player word finding game based on Boggle. The object of the game is
21to list as many words as you can before the time runs out. There are several
22timer modes that determine how much time you start with, and if you get extra
23time when you find a word.
24
25You can join letters horizontally, vertically, or diagonally in any direction
26to make a word, so as long as the letters are next to each other on the board.
27However, you can not reuse the same letter cells in a single word. Also, each
28word must be at least three letters on a normal board, and four letters on a
29large board.
30
31%package data
32Summary: Shared files for %{name}
33BuildArch: noarch
34#Requires: hicolor-icon-theme
35
36%description data
37This package contains arch-independent files for %{name}.
38
39%prep
40# %setup -q
41%scm_setup
42
43%build
44export QMAKE_SH=$SHELL
45# do a fast qt build, as runmapsym and wmapsym is not needed here
46export FAST_BUILD=1
47export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
48export LIBS="-llibz_dll"
49
50qmake "CONFIG+=release" PREFIX=%{_prefix}
51make %{?_smp_mflags}
52
53%install
54make install INSTALL_ROOT=%{buildroot}
55mkdir -p %{buildroot}%{_bindir}/
56mkdir -p %{buildroot}%{_mandir}/man6/
57mkdir -p %{buildroot}%{_datadir}/%{name}/translations
58mkdir -p %{buildroot}%{_datadir}/%{name}/data/de
59mkdir -p %{buildroot}%{_datadir}/%{name}/data/en
60mkdir -p %{buildroot}%{_datadir}/%{name}/data/nl
61mkdir -p %{buildroot}%{_datadir}/%{name}/data/fr
62install -p -m 644 data/de/* %{buildroot}%{_datadir}/%{name}/data/de/
63install -p -m 644 data/en/* %{buildroot}%{_datadir}/%{name}/data/en/
64install -p -m 644 data/nl/* %{buildroot}%{_datadir}/%{name}/data/nl/
65install -p -m 644 data/fr/* %{buildroot}%{_datadir}/%{name}/data/fr/
66install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
67install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/
68install -p -m 644 *.exe %{buildroot}%{_bindir}
69
70%check
71#desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
72#appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml || :
73
74
75%files
76%doc CREDITS README
77%license COPYING
78%{_bindir}/*.exe
79#%{_datadir}/metainfo/%{name}.appdata.xml
80#%{_datadir}/applications/%{name}.desktop
81#%{_datadir}/mime/packages/%{name}.xml
82%{_mandir}/man6/%{name}.6.*
83
84%files data
85/@unixroot/usr/share/tanglet/translations/
86%license COPYING
87%{_datadir}/%{name}/
88%{_datadir}/%{name}/data/de
89%{_datadir}/%{name}/data/en
90%{_datadir}/%{name}/data/nl
91%{_datadir}/%{name}/data/fr
92%{_datadir}/%{name}/translations
93#%dir %{_datadir}/icons/hicolor/*/apps/%{name}.*
94#%{_datadir}/pixmaps/%{name}.xpm
95
96%changelog
97* Wed Apr 22 2020 Elbert Pol <elbert.pol@gmail.com> - 1.5.6-1
98- First OS2 rpm build
99
Note: See TracBrowser for help on using the repository browser.