Name: tanglet Version: 1.6.1.1 Release: 1%{?dist} Summary: Word finding game License: GPLv3+ URL: http://gottcode.org/%{name}/ %if !0%{?os2_version} Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2 %else %scm_source github https://github.com/gottcode/tanglet main %endif %if !0%{?os2_version} BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %endif BuildRequires: qt5-qttools-devel BuildRequires: zlib-devel Requires: %{name}-data = %{version}-%{release} %description A single player word finding game based on Boggle. The object of the game is to list as many words as you can before the time runs out. There are several timer modes that determine how much time you start with, and if you get extra time when you find a word. You can join letters horizontally, vertically, or diagonally in any direction to make a word, so as long as the letters are next to each other on the board. However, you can not reuse the same letter cells in a single word. Also, each word must be at least three letters on a normal board, and four letters on a large board. %package data Summary: Shared files for %{name} BuildArch: noarch %if !0%{?os2_version} Requires: hicolor-icon-theme %endif %description data This package contains arch-independent files for %{name}. %prep %if !0%{?os2_version} %setup -q %else %scm_setup %endif #sed -i '58,65d' tools/dice/main.cpp %build %if 0%{?os2_version} export QMAKE_SH=$SHELL # do a fast qt build, as runmapsym and wmapsym is not needed here export FAST_BUILD=1 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export LIBS="-llibz_dll" %{qmake_qt5} PREFIX=%{_prefix} make %{?_smp_mflags} %endif %install make install INSTALL_ROOT=%{buildroot} %if 0%{?os2_version} mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_datadir}/%{name}/translations mkdir -p %{buildroot}%{_datadir}/%{name}/data/de mkdir -p %{buildroot}%{_datadir}/%{name}/data/en mkdir -p %{buildroot}%{_datadir}/%{name}/data/nl mkdir -p %{buildroot}%{_datadir}/%{name}/data/fr install -p -m 644 data/de/* %{buildroot}%{_datadir}/%{name}/data/de/ install -p -m 644 data/en/* %{buildroot}%{_datadir}/%{name}/data/en/ install -p -m 644 data/nl/* %{buildroot}%{_datadir}/%{name}/data/nl/ install -p -m 644 data/fr/* %{buildroot}%{_datadir}/%{name}/data/fr/ install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/ install -p -m 644 *.exe %{buildroot}%{_bindir}/ %endif mkdir -p %{buildroot}%{_mandir}/man6/ install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/ %check %if !0%{?os2_version} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || : appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml || : %endif %post data %if !0%{?os2_version} touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun data if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans data gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %endif %files %doc CREDITS ChangeLog README %license COPYING %if !0%{?os2_version} %{_bindir}/%{name} %else %{_bindir}/Tanglet.exe %{_bindir}/dice.exe %{_bindir}/wordlist.exe %endif %if !0%{?os2_version} %{_datadir}/metainfo/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %endif %{_mandir}/man6/%{name}.6.* %files data %license COPYING %{_datadir}/%{name}/ %if !0%{?os2_version} %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/pixmaps/%{name}.xpm %endif %changelog * Tue May 18 2021 Elbert Pol - 1.6.1.1 - 1 - Update to latest version * Tue Apr 20 2021 Elbert Pol - 1.6.0-2 - Forget to turn off ico theme