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