summaryrefslogtreecommitdiffstats
path: root/tanglet.spec
blob: 3e8a3f8621eb5d7e72daea8203e18e6628316ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
Name:           tanglet
Version:        1.3.1
Release:        3%{?dist}
Summary:        Word finding game
License:        GPLv3+
URL:            http://gottcode.org/%{name}/
Source:         http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2

BuildRequires:  desktop-file-utils
BuildRequires:  libappstream-glib
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

Requires:       hicolor-icon-theme
 
%description data
This package contains arch-independent files for %{name}.

%prep
%setup -q

%build
%{qmake_qt5} PREFIX=%{_prefix}
make %{?_smp_mflags}

%install
make install INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{_mandir}/man6/
install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/

%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || :

%post data
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 || :

%files
%doc CREDITS NEWS README
%license COPYING
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6.*

%files data
%license COPYING
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/pixmaps/%{name}.xpm

%changelog
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.3.1-3
- Rebuilt for GCC 5 C++11 ABI change

* Sat Feb 07 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 1.3.1-2
- Fix issues according to review (bz1190060)

* Thu Feb 05 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 1.3.1-1
- New upstream release (switch to Qt5)
- Spec file cleanup
- Create -data subpackage

* Wed Sep 25 2013 Huaren Zhong <huaren.zhong@gmail.com> - 1.2.1
- Rebuild for Fedora

* Wed Feb 01 2012 graeme@gottcode.org 1.2.1-1
- New upstream release

* Mon Dec 05 2011 graeme@gottcode.org 1.2.0-4
- Update GNOME icon cache

* Fri Nov 11 2011 graeme@gottcode.org 1.2.0-3
- Improve spec file

* Sat Oct 29 2011 graeme@gottcode.org 1.2.0-2
- Remove patch

* Sat Oct 29 2011 graeme@gottcode.org 1.2.0-1
- New upstream release

* Sat Apr 02 2011 graeme@gottcode.org 1.1.1-3
- Add dependency on hicolor-icon-theme

* Wed Sep 22 2010 graeme@gottcode.org 1.1.1-2
- Fixed build issue on openSUSE 11.2

* Tue Sep 21 2010 graeme@gottcode.org 1.1.1-1
- Initial package