[7728] | 1 | Name: kolf |
---|
| 2 | Summary: Miniature Golf for KDE |
---|
[8056] | 3 | Version: 4.11.4 |
---|
[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 | |
---|
| 18 | Requires(posttrans,postun): desktop-file-utils |
---|
| 19 | |
---|
| 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | Packager: Takemikaduchi |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Kolf is a miniature golf game. The game is played from an overhead view, with a short bar |
---|
| 26 | representing the golf club. Kolf features many different types of objects, such water hazards, |
---|
| 27 | slopes, sand traps, and black holes (warps), among others. |
---|
| 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 | %clean |
---|
| 55 | rm -rf $RPM_BUILD_ROOT |
---|
| 56 | |
---|
| 57 | %post |
---|
| 58 | /sbin/ldconfig |
---|
| 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 | /sbin/ldconfig |
---|
| 67 | if [ $1 -eq 0 ] ; then |
---|
| 68 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null |
---|
| 69 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null |
---|
| 70 | update-desktop-database -q &> /dev/null ||: |
---|
| 71 | fi |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %files |
---|
| 75 | %defattr(-,root,root) |
---|
| 76 | %doc COPYING COPYING.DOC |
---|
| 77 | %{_bindir}/%{name} |
---|
| 78 | %{_libdir}/libkolfprivate.so* |
---|
| 79 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
| 80 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 81 | %{_datadir}/kde4/apps/%{name} |
---|
| 82 | %doc %{_docdir}/HTML/en/%{name}/ |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %changelog |
---|
[8056] | 86 | * Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
| 87 | - new upstream release |
---|
| 88 | |
---|
[7801] | 89 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 90 | - new upstream release |
---|
| 91 | |
---|
[7728] | 92 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 93 | - initial build |
---|