[4743] | 1 | Name: kanagram |
---|
| 2 | Summary: jumble word puzzle for KDE |
---|
| 3 | Version: 4.7.0 |
---|
| 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.bz2 |
---|
| 11 | |
---|
| 12 | ## upstream patches |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildRequires: desktop-file-utils |
---|
| 16 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 17 | BuildRequires: libkdeedu-devel >= %{version} |
---|
| 18 | |
---|
| 19 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 20 | |
---|
| 21 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | 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. |
---|
| 25 | |
---|
| 26 | This package is part of the KDE education module. |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | mkdir -p %{_target_platform} |
---|
| 33 | pushd %{_target_platform} |
---|
| 34 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 35 | %cmake \ |
---|
| 36 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 37 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 38 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 39 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 40 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 41 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 42 | .. |
---|
| 43 | popd |
---|
| 44 | |
---|
| 45 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 50 | |
---|
| 51 | %clean |
---|
| 52 | rm -rf $RPM_BUILD_ROOT |
---|
| 53 | |
---|
| 54 | %check |
---|
| 55 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 56 | desktop-file-validate $f |
---|
| 57 | done |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %post |
---|
| 61 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 62 | |
---|
| 63 | %posttrans |
---|
| 64 | update-desktop-database -q &> /dev/null ||: |
---|
| 65 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 66 | |
---|
| 67 | %postun |
---|
| 68 | if [ $1 -eq 0 ] ; then |
---|
| 69 | update-desktop-database -q &> /dev/null ||: |
---|
| 70 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 71 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 72 | fi |
---|
| 73 | |
---|
| 74 | %files |
---|
| 75 | %defattr(-,root,root) |
---|
| 76 | %doc COPYING COPYING.DOC |
---|
| 77 | %{_bindir}/kanagram |
---|
| 78 | %{_datadir}/applications/kde4/kanagram.desktop |
---|
| 79 | %{_datadir}/config/kanagram.knsrc |
---|
| 80 | %{_datadir}/config.kcfg/kanagram.kcfg |
---|
| 81 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 82 | %{_datadir}/kde4/apps/kanagram |
---|
| 83 | %doc %{_docdir}/HTML/en/kanagram/ |
---|
| 84 | |
---|
| 85 | %changelog |
---|
| 86 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 87 | - split from kdeedu |
---|
| 88 | |
---|