1 | Name: kanagram |
---|
2 | Summary: jumble word puzzle for KDE |
---|
3 | Version: 4.12.5 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | |
---|
6 | License: GPLv2+ |
---|
7 | Group: Applications/Edutainment |
---|
8 | URL: http://edu.kde.org/kanagram/ |
---|
9 | |
---|
10 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
11 | |
---|
12 | ## upstream patches |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | |
---|
16 | Requires: %{name}-libs = %{version}-%{release} |
---|
17 | BuildRequires: desktop-file-utils |
---|
18 | BuildRequires: kdelibs4-devel >= %{version} |
---|
19 | BuildRequires: libkdeedu-devel >= %{version} |
---|
20 | |
---|
21 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
22 | |
---|
23 | Conflicts: kdeedu4 < 4.6.50 |
---|
24 | |
---|
25 | Vendor: Project Vine |
---|
26 | Distribution: Vine Linux |
---|
27 | |
---|
28 | %description |
---|
29 | KAnagram is a game where a random word is shown with its letters scrambled. To win, the player must rearrange the letters into the correct order. |
---|
30 | |
---|
31 | This package is part of the KDE education module. |
---|
32 | |
---|
33 | |
---|
34 | %package libs |
---|
35 | Summary: Runtime libraries for %{name} |
---|
36 | Summary(ja): %{name} のランタイムライブラリ |
---|
37 | Group: System Environment/Libraries |
---|
38 | Requires: kdelibs4 >= %{version} |
---|
39 | |
---|
40 | %description libs |
---|
41 | %{summary}. |
---|
42 | |
---|
43 | %description -l ja libs |
---|
44 | %{name} のランタイムライブラリです. |
---|
45 | |
---|
46 | |
---|
47 | %package devel |
---|
48 | Summary: Development files for %{name} |
---|
49 | Summary(ja): %{name} の開発用ファイル |
---|
50 | Group: Development/Libraries |
---|
51 | Requires: %{name}-libs = %{version}-%{release} |
---|
52 | Requires: kdelibs4-devel |
---|
53 | |
---|
54 | %description devel |
---|
55 | %{summary}. |
---|
56 | |
---|
57 | %description -l ja devel |
---|
58 | %{name} の開発用ファイルです. |
---|
59 | |
---|
60 | |
---|
61 | %prep |
---|
62 | %setup -q |
---|
63 | |
---|
64 | %build |
---|
65 | mkdir -p %{_target_platform} |
---|
66 | pushd %{_target_platform} |
---|
67 | %cmake \ |
---|
68 | -DCMAKE_BUILD_TYPE=release \ |
---|
69 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
70 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
71 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
72 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
73 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
74 | .. |
---|
75 | popd |
---|
76 | |
---|
77 | make %{?_smp_mflags} -C %{_target_platform} |
---|
78 | |
---|
79 | %install |
---|
80 | rm -rf $RPM_BUILD_ROOT |
---|
81 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
82 | |
---|
83 | %clean |
---|
84 | rm -rf $RPM_BUILD_ROOT |
---|
85 | |
---|
86 | %check |
---|
87 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
88 | desktop-file-validate $f |
---|
89 | done |
---|
90 | |
---|
91 | |
---|
92 | %post |
---|
93 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
94 | |
---|
95 | %posttrans |
---|
96 | update-desktop-database -q &> /dev/null ||: |
---|
97 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
98 | |
---|
99 | %postun |
---|
100 | if [ $1 -eq 0 ] ; then |
---|
101 | update-desktop-database -q &> /dev/null ||: |
---|
102 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
103 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
104 | fi |
---|
105 | |
---|
106 | %files |
---|
107 | %defattr(-,root,root,-) |
---|
108 | %doc COPYING COPYING.DOC |
---|
109 | %{_bindir}/%{name} |
---|
110 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
111 | %{_datadir}/config/%{name}.knsrc |
---|
112 | %{_datadir}/config.kcfg/%{name}.kcfg |
---|
113 | %{_datadir}/icons/hicolor/*/*/* |
---|
114 | %{_datadir}/kde4/apps/%{name} |
---|
115 | %doc %{_docdir}/HTML/en/%{name}/ |
---|
116 | |
---|
117 | %files libs |
---|
118 | %defattr(-,root,root,-) |
---|
119 | %{_libdir}/libkanagramengine.so.* |
---|
120 | |
---|
121 | |
---|
122 | %files devel |
---|
123 | %defattr(-,root,root,-) |
---|
124 | %{_includedir}/%{name} |
---|
125 | %{_libdir}/libkanagramengine.so |
---|
126 | |
---|
127 | |
---|
128 | %changelog |
---|
129 | * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
130 | - new upstream release |
---|
131 | |
---|
132 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
133 | - new upstream release |
---|
134 | |
---|
135 | * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
136 | - new upstream release |
---|
137 | |
---|
138 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
139 | - new upstream release |
---|
140 | |
---|
141 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
142 | - new upstream release |
---|
143 | |
---|
144 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
145 | - new upstream release |
---|
146 | |
---|
147 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
148 | - new upstream release |
---|
149 | |
---|
150 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
151 | - new upstream release |
---|
152 | |
---|
153 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
154 | - new upstream release |
---|
155 | |
---|
156 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
157 | - new upstream release |
---|
158 | - create -devel and -libs subpckages |
---|
159 | |
---|
160 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
161 | - split from kdeedu |
---|
162 | |
---|