[7728] | 1 | Name: ksquares |
---|
| 2 | Summary: Connect the dots to create squares |
---|
[9222] | 3 | Version: 4.14.3 |
---|
[10564] | 4 | Release: 2%{?_dist_release} |
---|
[7728] | 5 | |
---|
| 6 | License: GPLv2 |
---|
[9222] | 7 | Group: Applications/Games |
---|
[7728] | 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 | |
---|
| 18 | Requires(posttrans,postun): desktop-file-utils |
---|
| 19 | |
---|
| 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | Packager: Takemikaduchi |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | KSquares is a game modeled after the well known pen and paper based game of Dots and Boxes. |
---|
| 26 | Each player takes it in turns to draw a line between two adjacent dots on the board. |
---|
| 27 | The objective is to complete more squares than your opponents. |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | mkdir -p %{_target_platform} |
---|
| 35 | pushd %{_target_platform} |
---|
| 36 | %cmake \ |
---|
| 37 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 38 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 39 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 40 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 41 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 42 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 43 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 44 | .. |
---|
| 45 | popd |
---|
| 46 | |
---|
| 47 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | rm -rf $RPM_BUILD_ROOT |
---|
| 52 | make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %clean |
---|
| 56 | rm -rf $RPM_BUILD_ROOT |
---|
| 57 | |
---|
| 58 | %post |
---|
| 59 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 60 | |
---|
| 61 | %posttrans |
---|
| 62 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 63 | update-desktop-database -q &> /dev/null ||: |
---|
| 64 | |
---|
| 65 | %postun |
---|
| 66 | if [ $1 -eq 0 ] ; then |
---|
| 67 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 68 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 69 | update-desktop-database -q &> /dev/null ||: |
---|
| 70 | fi |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %files |
---|
| 74 | %defattr(-,root,root) |
---|
| 75 | %doc COPYING COPYING.DOC |
---|
| 76 | %{_bindir}/%{name} |
---|
| 77 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
| 78 | %{_datadir}/config.kcfg/%{name}.kcfg |
---|
| 79 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 80 | %{_datadir}/kde4/apps/%{name} |
---|
| 81 | %doc %{_docdir}/HTML/en/%{name}/ |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %changelog |
---|
[10564] | 85 | * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2 |
---|
| 86 | - rebuild with gcc-5.4.0 |
---|
| 87 | |
---|
[9222] | 88 | * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1 |
---|
| 89 | - new upstream release |
---|
| 90 | |
---|
[8430] | 91 | * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
| 92 | - new upstream release |
---|
| 93 | |
---|
[8252] | 94 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
| 95 | - new upstream release |
---|
| 96 | |
---|
[8056] | 97 | * Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
| 98 | - new upstream release |
---|
| 99 | |
---|
[7801] | 100 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 101 | - new upstream release |
---|
| 102 | |
---|
[7728] | 103 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 104 | - initial build |
---|