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

Last change on this file since 1808 was 1772, checked in by tellie, 5 years ago

spec: tanglet: Release version 1.6.1.1-1.

File size: 3.9 KB
Line 
1Name: tanglet
2Version: 1.6.1.1
3Release: 1%{?dist}
4Summary: Word finding game
5License: GPLv3+
6URL: http://gottcode.org/%{name}/
7%if !0%{?os2_version}
8Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
9%else
10%scm_source github https://github.com/gottcode/tanglet main
11%endif
12
13%if !0%{?os2_version}
14BuildRequires: desktop-file-utils
15BuildRequires: libappstream-glib
16%endif
17BuildRequires: qt5-qttools-devel
18BuildRequires: zlib-devel
19Requires: %{name}-data = %{version}-%{release}
20
21%description
22A single player word finding game based on Boggle. The object of the game is
23to list as many words as you can before the time runs out. There are several
24timer modes that determine how much time you start with, and if you get extra
25time when you find a word.
26
27You can join letters horizontally, vertically, or diagonally in any direction
28to make a word, so as long as the letters are next to each other on the board.
29However, you can not reuse the same letter cells in a single word. Also, each
30word must be at least three letters on a normal board, and four letters on a
31large board.
32
33%package data
34Summary: Shared files for %{name}
35BuildArch: noarch
36%if !0%{?os2_version}
37Requires: hicolor-icon-theme
38%endif
39
40%description data
41This package contains arch-independent files for %{name}.
42
43%prep
44%if !0%{?os2_version}
45%setup -q
46%else
47%scm_setup
48%endif
49#sed -i '58,65d' tools/dice/main.cpp
50
51%build
52%if 0%{?os2_version}
53export QMAKE_SH=$SHELL
54# do a fast qt build, as runmapsym and wmapsym is not needed here
55export FAST_BUILD=1
56export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
57export LIBS="-llibz_dll"
58%{qmake_qt5} PREFIX=%{_prefix}
59make %{?_smp_mflags}
60%endif
61
62%install
63make install INSTALL_ROOT=%{buildroot}
64%if 0%{?os2_version}
65mkdir -p %{buildroot}%{_bindir}/
66mkdir -p %{buildroot}%{_datadir}/%{name}/translations
67mkdir -p %{buildroot}%{_datadir}/%{name}/data/de
68mkdir -p %{buildroot}%{_datadir}/%{name}/data/en
69mkdir -p %{buildroot}%{_datadir}/%{name}/data/nl
70mkdir -p %{buildroot}%{_datadir}/%{name}/data/fr
71install -p -m 644 data/de/* %{buildroot}%{_datadir}/%{name}/data/de/
72install -p -m 644 data/en/* %{buildroot}%{_datadir}/%{name}/data/en/
73install -p -m 644 data/nl/* %{buildroot}%{_datadir}/%{name}/data/nl/
74install -p -m 644 data/fr/* %{buildroot}%{_datadir}/%{name}/data/fr/
75install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
76install -p -m 644 *.exe %{buildroot}%{_bindir}/
77%endif
78mkdir -p %{buildroot}%{_mandir}/man6/
79install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/
80
81%check
82%if !0%{?os2_version}
83desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
84appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml || :
85%endif
86
87%post data
88%if !0%{?os2_version}
89touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
90
91%postun data
92if [ $1 -eq 0 ] ; then
93 touch --no-create %{_datadir}/icons/hicolor &>/dev/null
94 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
95fi
96
97%posttrans data
98gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
99%endif
100
101%files
102%doc CREDITS ChangeLog README
103%license COPYING
104%if !0%{?os2_version}
105%{_bindir}/%{name}
106%else
107%{_bindir}/Tanglet.exe
108%{_bindir}/dice.exe
109%{_bindir}/wordlist.exe
110%endif
111%if !0%{?os2_version}
112%{_datadir}/metainfo/%{name}.appdata.xml
113%{_datadir}/applications/%{name}.desktop
114%{_datadir}/mime/packages/%{name}.xml
115%endif
116%{_mandir}/man6/%{name}.6.*
117
118%files data
119%license COPYING
120%{_datadir}/%{name}/
121%if !0%{?os2_version}
122%{_datadir}/icons/hicolor/*/apps/%{name}.*
123%{_datadir}/pixmaps/%{name}.xpm
124%endif
125
126%changelog
127* Tue May 18 2021 Elbert Pol <elbert.pol@gmail.com> - 1.6.1.1 - 1
128- Update to latest version
129
130* Tue Apr 20 2021 Elbert Pol <elbert.pol@gmail.com> - 1.6.0-2
131- Forget to turn off ico theme
Note: See TracBrowser for help on using the repository browser.