Rex Dieter 010979
Rex Dieter 010979
Name:    kollision
Rex Dieter 010979
Summary: A simple ball dodging game
1319a7
Version: 4.10.5
Rex Dieter 8059b8
Release: 1%{?dist}
Rex Dieter 010979
Rex Dieter 010979
License: GPLv2+ and GFDL
Rex Dieter 010979
URL:     https://projects.kde.org/projects/kde/kdegames/%{name}
Rex Dieter 010979
%global revision %(echo %{version} | cut -d. -f3)
Rex Dieter 010979
%if %{revision} >= 50
Rex Dieter 010979
%global stable unstable
Rex Dieter 010979
%else
Rex Dieter 010979
%global stable stable
Rex Dieter 010979
%endif
Rex Dieter 010979
Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
Rex Dieter 010979
Rex Dieter 010979
BuildRequires: desktop-file-utils
Rex Dieter 010979
BuildRequires: libkdegames-devel >= %{version}
Rex Dieter 010979
Rex Dieter 010979
Requires: libkdegames%{?_isa} >= %{_kde4_version}
Rex Dieter 010979
Rex Dieter 010979
%description
Rex Dieter 010979
Kollision is a simple ball dodging game. Let the blue ball
Rex Dieter 010979
move in the field without touching the red balls.
Rex Dieter 010979
Rex Dieter 010979
Rex Dieter 010979
%prep
Rex Dieter 010979
%setup -q
Rex Dieter 010979
Rex Dieter 010979
Rex Dieter 010979
%build
Rex Dieter 010979
mkdir -p %{_target_platform}
Rex Dieter 010979
pushd %{_target_platform}
Rex Dieter 010979
%{cmake_kde4} ..
Rex Dieter 010979
popd
Rex Dieter 010979
Rex Dieter 010979
make %{?_smp_mflags} -C %{_target_platform}
Rex Dieter 010979
Rex Dieter 010979
Rex Dieter 010979
%install
Rex Dieter 010979
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
Rex Dieter 010979
Rex Dieter 010979
%find_lang %{name} --with-kde
Rex Dieter 010979
Rex Dieter 010979
Rex Dieter 010979
%check
Rex Dieter 010979
desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
Rex Dieter 010979
Rex Dieter 010979
Rex Dieter 010979
%post
Rex Dieter 010979
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
Rex Dieter 010979
touch --no-create %{_kde4_iconsdir}/oxygen &> /dev/null || :
Rex Dieter 010979
Rex Dieter 010979
%postun
Rex Dieter 010979
if [ $1 -eq 0 ] ; then
Rex Dieter 010979
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null
Rex Dieter 010979
touch --no-create %{_kde4_iconsdir}/oxygen &> /dev/null || :
Rex Dieter 010979
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
Rex Dieter 010979
gtk-update-icon-cache %{_kde4_iconsdir}/oxygen &> /dev/null || :
Rex Dieter 010979
fi
Rex Dieter 010979
Rex Dieter 010979
%posttrans
Rex Dieter 010979
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
Rex Dieter 010979
gtk-update-icon-cache %{_kde4_iconsdir}/oxygen &> /dev/null || :
Rex Dieter 010979
Rex Dieter 010979
Rex Dieter 010979
%files -f %{name}.lang
Rex Dieter 010979
%doc COPYING*
Rex Dieter 010979
%{_kde4_bindir}/%{name}
Rex Dieter 010979
%{_kde4_datadir}/applications/kde4/%{name}.desktop
Rex Dieter 010979
%{_kde4_iconsdir}/hicolor/*/*/*
Rex Dieter 010979
%{_kde4_iconsdir}/oxygen/*/*/*
Rex Dieter 010979
%{_kde4_appsdir}/%{name}/
Rex Dieter 010979
Rex Dieter 010979
Rex Dieter 010979
%changelog
1319a7
* Sun Jun 30 2013 Than Ngo <than@redhat.com> - 4.10.5-1
1319a7
- 4.10.5
1319a7
Rex Dieter b6dc7c
* Sat Jun 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.4-1
Rex Dieter b6dc7c
- 4.10.4
Rex Dieter b6dc7c
96e454
* Mon May 06 2013 Than Ngo <than@redhat.com> - 4.10.3-1
96e454
- 4.10.3
96e454
Rex Dieter d70b17
* Mon Apr 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.2-1
Rex Dieter d70b17
- 4.10.2
Rex Dieter d70b17
Rex Dieter 8059b8
* Sat Mar 02 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.1-1
Rex Dieter 8059b8
- 4.10.1
Rex Dieter 8059b8
Rex Dieter 010979
* Fri Feb 15 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.0-2
Rex Dieter 010979
- update license, description
Rex Dieter 010979
Rex Dieter 010979
* Thu Feb 07 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.0-1
Rex Dieter 010979
- first try
Rex Dieter 010979