[7728] | 1 | Name: kajongg |
---|
| 2 | Summary: Mah Jongg for KDE |
---|
[8430] | 3 | Version: 4.12.5 |
---|
[7728] | 4 | Release: 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | License: GPLv2 |
---|
| 7 | Group: Applications/Accessories |
---|
| 8 | URL: http://www.kde.org/applications/games/ |
---|
| 9 | |
---|
| 10 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
| 11 | |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | |
---|
| 14 | BuildRequires: desktop-file-utils |
---|
| 15 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 16 | BuildRequires: libkdegames-devel >= %{version} |
---|
| 17 | BuildRequires: PyQt4-devel |
---|
| 18 | BuildRequires: PyKDE4-devel >= %{version} |
---|
| 19 | BuildRequires: sqlite3-devel |
---|
| 20 | BuildRequires: python-twisted |
---|
| 21 | |
---|
| 22 | Requires: PyKDE4 |
---|
| 23 | Requires: python-twisted |
---|
| 24 | Requires(posttrans,postun): desktop-file-utils |
---|
| 25 | |
---|
| 26 | Vendor: Project Vine |
---|
| 27 | Distribution: Vine Linux |
---|
| 28 | Packager: Takemikaduchi |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | Kajongg is the ancient Chinese board game for 4 players. Kajongg can be used in two |
---|
| 32 | different ways: Scoring a manual game where you play as always and use Kajongg for |
---|
| 33 | the computation of scores and for bookkeeping. Or you can use Kajongg to play against |
---|
| 34 | any combination of other human players or computer players. |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q |
---|
| 39 | |
---|
| 40 | %build |
---|
| 41 | mkdir -p %{_target_platform} |
---|
| 42 | pushd %{_target_platform} |
---|
| 43 | %cmake \ |
---|
| 44 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 45 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 46 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 47 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 48 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 49 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 50 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 51 | .. |
---|
| 52 | popd |
---|
| 53 | |
---|
| 54 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %clean |
---|
| 63 | rm -rf $RPM_BUILD_ROOT |
---|
| 64 | |
---|
| 65 | %post |
---|
| 66 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 67 | |
---|
| 68 | %posttrans |
---|
| 69 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 70 | update-desktop-database -q &> /dev/null ||: |
---|
| 71 | |
---|
| 72 | %postun |
---|
| 73 | if [ $1 -eq 0 ] ; then |
---|
| 74 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null |
---|
| 75 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null |
---|
| 76 | update-desktop-database -q &> /dev/null ||: |
---|
| 77 | fi |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %files |
---|
| 81 | %defattr(-,root,root) |
---|
| 82 | %doc COPYING COPYING.DOC |
---|
| 83 | %{_bindir}/%{name} |
---|
| 84 | %{_bindir}/%{name}server |
---|
| 85 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
| 86 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 87 | %{_datadir}/kde4/apps/%{name} |
---|
| 88 | %doc %{_docdir}/HTML/en/%{name}/ |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %changelog |
---|
[8430] | 92 | * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
| 93 | - new upstream release |
---|
| 94 | |
---|
[8252] | 95 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
| 96 | - new upstream release |
---|
| 97 | |
---|
[8056] | 98 | * Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
| 99 | - new upstream release |
---|
| 100 | |
---|
[7801] | 101 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 102 | - new upstream release |
---|
| 103 | |
---|
[7728] | 104 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 105 | - initial build |
---|