| 1 | Name: tanglet
|
|---|
| 2 | Version: 1.6.1.1
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Word finding game
|
|---|
| 5 | License: GPLv3+
|
|---|
| 6 | URL: http://gottcode.org/%{name}/
|
|---|
| 7 | %if !0%{?os2_version}
|
|---|
| 8 | Source: 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}
|
|---|
| 14 | BuildRequires: desktop-file-utils
|
|---|
| 15 | BuildRequires: libappstream-glib
|
|---|
| 16 | %endif
|
|---|
| 17 | BuildRequires: qt5-qttools-devel
|
|---|
| 18 | BuildRequires: zlib-devel
|
|---|
| 19 | Requires: %{name}-data = %{version}-%{release}
|
|---|
| 20 |
|
|---|
| 21 | %description
|
|---|
| 22 | A single player word finding game based on Boggle. The object of the game is
|
|---|
| 23 | to list as many words as you can before the time runs out. There are several
|
|---|
| 24 | timer modes that determine how much time you start with, and if you get extra
|
|---|
| 25 | time when you find a word.
|
|---|
| 26 |
|
|---|
| 27 | You can join letters horizontally, vertically, or diagonally in any direction
|
|---|
| 28 | to make a word, so as long as the letters are next to each other on the board.
|
|---|
| 29 | However, you can not reuse the same letter cells in a single word. Also, each
|
|---|
| 30 | word must be at least three letters on a normal board, and four letters on a
|
|---|
| 31 | large board.
|
|---|
| 32 |
|
|---|
| 33 | %package data
|
|---|
| 34 | Summary: Shared files for %{name}
|
|---|
| 35 | BuildArch: noarch
|
|---|
| 36 | %if !0%{?os2_version}
|
|---|
| 37 | Requires: hicolor-icon-theme
|
|---|
| 38 | %endif
|
|---|
| 39 |
|
|---|
| 40 | %description data
|
|---|
| 41 | This 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}
|
|---|
| 53 | export QMAKE_SH=$SHELL
|
|---|
| 54 | # do a fast qt build, as runmapsym and wmapsym is not needed here
|
|---|
| 55 | export FAST_BUILD=1
|
|---|
| 56 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 57 | export LIBS="-llibz_dll"
|
|---|
| 58 | %{qmake_qt5} PREFIX=%{_prefix}
|
|---|
| 59 | make %{?_smp_mflags}
|
|---|
| 60 | %endif
|
|---|
| 61 |
|
|---|
| 62 | %install
|
|---|
| 63 | make install INSTALL_ROOT=%{buildroot}
|
|---|
| 64 | %if 0%{?os2_version}
|
|---|
| 65 | mkdir -p %{buildroot}%{_bindir}/
|
|---|
| 66 | mkdir -p %{buildroot}%{_datadir}/%{name}/translations
|
|---|
| 67 | mkdir -p %{buildroot}%{_datadir}/%{name}/data/de
|
|---|
| 68 | mkdir -p %{buildroot}%{_datadir}/%{name}/data/en
|
|---|
| 69 | mkdir -p %{buildroot}%{_datadir}/%{name}/data/nl
|
|---|
| 70 | mkdir -p %{buildroot}%{_datadir}/%{name}/data/fr
|
|---|
| 71 | install -p -m 644 data/de/* %{buildroot}%{_datadir}/%{name}/data/de/
|
|---|
| 72 | install -p -m 644 data/en/* %{buildroot}%{_datadir}/%{name}/data/en/
|
|---|
| 73 | install -p -m 644 data/nl/* %{buildroot}%{_datadir}/%{name}/data/nl/
|
|---|
| 74 | install -p -m 644 data/fr/* %{buildroot}%{_datadir}/%{name}/data/fr/
|
|---|
| 75 | install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
|
|---|
| 76 | install -p -m 644 *.exe %{buildroot}%{_bindir}/
|
|---|
| 77 | %endif
|
|---|
| 78 | mkdir -p %{buildroot}%{_mandir}/man6/
|
|---|
| 79 | install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/
|
|---|
| 80 |
|
|---|
| 81 | %check
|
|---|
| 82 | %if !0%{?os2_version}
|
|---|
| 83 | desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
|
|---|
| 84 | appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml || :
|
|---|
| 85 | %endif
|
|---|
| 86 |
|
|---|
| 87 | %post data
|
|---|
| 88 | %if !0%{?os2_version}
|
|---|
| 89 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|---|
| 90 |
|
|---|
| 91 | %postun data
|
|---|
| 92 | if [ $1 -eq 0 ] ; then
|
|---|
| 93 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|---|
| 94 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|---|
| 95 | fi
|
|---|
| 96 |
|
|---|
| 97 | %posttrans data
|
|---|
| 98 | gtk-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
|
|---|