diff --git a/.gitignore b/.gitignore index e69de29..77e5d7b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kblocks-4.10.0.tar.xz diff --git a/kblocks.spec b/kblocks.spec new file mode 100644 index 0000000..9c62ba7 --- /dev/null +++ b/kblocks.spec @@ -0,0 +1,83 @@ + +Name: kblocks +Summary: A classic falling blocks game +Version: 4.10.0 +Release: 2%{?dist} + +License: GPLv2+ and GFDL +URL: https://projects.kde.org/projects/kde/kdegames/%{name} +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz + +BuildRequires: desktop-file-utils +BuildRequires: libkdegames-devel >= %{version} + +Requires: libkdegames%{?_isa} >= %{_kde4_version} + +%description +KBlocks is the classic falling blocks game. The idea is stack +the falling blocks in a way that lines are completely filled. +When a line is completed it is removed, and more space is available +in the play area. When there is not enough space for blocks to fall, +the game is over. + + +%prep +%setup -q + + +%build +mkdir -p %{_target_platform} +pushd %{_target_platform} +%{cmake_kde4} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang %{name} --with-kde + + +%check +desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop + + +%post +touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || : + +%postun +if [ $1 -eq 0 ] ; then +touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null +gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : +fi + +%posttrans +gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : + +%files -f %{name}.lang +%doc COPYING* +%doc README +%{_kde4_bindir}/%{name} +%{_kde4_datadir}/applications/kde4/%{name}.desktop +%{_kde4_configdir}/%{name}.knsrc +%{_kde4_configdir}.kcfg/%{name}.kcfg +%{_kde4_iconsdir}/hicolor/*/*/* +%{_kde4_appsdir}/%{name}/ + + +%changelog +* Thu Feb 14 2013 Rex Dieter 4.10.0-2 +- License: GPLv2+ and GFDL +- update %%description + +* Thu Feb 07 2013 Rex Dieter 4.10.0-1 +- first try + diff --git a/sources b/sources index e69de29..a118657 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6080821a1ee6d3df0f22b1242d3e3e5d kblocks-4.10.0.tar.xz