[4743] | 1 | Name: kanagram |
---|
| 2 | Summary: jumble word puzzle for KDE |
---|
[6725] | 3 | Version: 4.9.0 |
---|
[4743] | 4 | Release: 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | License: GPLv2+ |
---|
| 7 | Group: Applications/Edutainment |
---|
| 8 | URL: http://edu.kde.org/kanagram/ |
---|
| 9 | |
---|
[6725] | 10 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4743] | 11 | |
---|
| 12 | ## upstream patches |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[6725] | 15 | |
---|
| 16 | Requires: %{name}-libs = %{version}-%{release} |
---|
[4743] | 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 | %description |
---|
| 26 | 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. |
---|
| 27 | |
---|
| 28 | This package is part of the KDE education module. |
---|
| 29 | |
---|
[6725] | 30 | |
---|
| 31 | %package libs |
---|
| 32 | Summary: Runtime libraries for %{name} |
---|
| 33 | Summary(ja): %{name} のランタイムライブラリ |
---|
| 34 | Group: System Environment/Libraries |
---|
| 35 | Requires: kdelibs4 >= %{version} |
---|
| 36 | |
---|
| 37 | %description libs |
---|
| 38 | %{summary}. |
---|
| 39 | |
---|
| 40 | %description -l ja libs |
---|
| 41 | %{name} のランタイムライブラリです. |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %package devel |
---|
| 45 | Summary: Development files for %{name} |
---|
| 46 | Summary(ja): %{name} の開発用ファイル |
---|
| 47 | Group: Development/Libraries |
---|
| 48 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 49 | Requires: kdelibs4-devel |
---|
| 50 | |
---|
| 51 | %description devel |
---|
| 52 | %{summary}. |
---|
| 53 | |
---|
| 54 | %description -l ja devel |
---|
| 55 | %{name} の開発用ファイルです. |
---|
| 56 | |
---|
| 57 | |
---|
[4743] | 58 | %prep |
---|
| 59 | %setup -q |
---|
| 60 | |
---|
| 61 | %build |
---|
| 62 | mkdir -p %{_target_platform} |
---|
| 63 | pushd %{_target_platform} |
---|
| 64 | %cmake \ |
---|
| 65 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 66 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 67 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 68 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 69 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 70 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 71 | .. |
---|
| 72 | popd |
---|
| 73 | |
---|
| 74 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 75 | |
---|
| 76 | %install |
---|
| 77 | rm -rf $RPM_BUILD_ROOT |
---|
| 78 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 79 | |
---|
| 80 | %clean |
---|
| 81 | rm -rf $RPM_BUILD_ROOT |
---|
| 82 | |
---|
| 83 | %check |
---|
| 84 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 85 | desktop-file-validate $f |
---|
| 86 | done |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %post |
---|
| 90 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 91 | |
---|
| 92 | %posttrans |
---|
| 93 | update-desktop-database -q &> /dev/null ||: |
---|
| 94 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 95 | |
---|
| 96 | %postun |
---|
| 97 | if [ $1 -eq 0 ] ; then |
---|
| 98 | update-desktop-database -q &> /dev/null ||: |
---|
| 99 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 100 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 101 | fi |
---|
| 102 | |
---|
| 103 | %files |
---|
[6725] | 104 | %defattr(-,root,root,-) |
---|
[4743] | 105 | %doc COPYING COPYING.DOC |
---|
[6725] | 106 | %{_bindir}/%{name} |
---|
| 107 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
| 108 | %{_datadir}/config/%{name}.knsrc |
---|
| 109 | %{_datadir}/config.kcfg/%{name}.kcfg |
---|
[4743] | 110 | %{_datadir}/icons/hicolor/*/*/* |
---|
[6725] | 111 | %{_datadir}/kde4/apps/%{name} |
---|
| 112 | %doc %{_docdir}/HTML/en/%{name}/ |
---|
[4743] | 113 | |
---|
[6725] | 114 | %files libs |
---|
| 115 | %defattr(-,root,root,-) |
---|
| 116 | %{_libdir}/libkanagramengine.so.* |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | %files devel |
---|
| 120 | %defattr(-,root,root,-) |
---|
| 121 | %{_includedir}/%{name} |
---|
| 122 | %{_libdir}/libkanagramengine.so |
---|
| 123 | |
---|
| 124 | |
---|
[4743] | 125 | %changelog |
---|
[6725] | 126 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 127 | - new upstream release |
---|
| 128 | - create -devel and -libs subpckages |
---|
| 129 | |
---|
[4743] | 130 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 131 | - split from kdeedu |
---|
| 132 | |
---|