diff --git a/.gitignore b/.gitignore index 1849f99..f8074b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ ksudoku-0.4.tar.gz +/ksudoku-4.10.0.tar.xz diff --git a/ksudoku.spec b/ksudoku.spec new file mode 100644 index 0000000..405474a --- /dev/null +++ b/ksudoku.spec @@ -0,0 +1,82 @@ + +Name: ksudoku +Summary: A logic-based symbol placement puzzle +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 +KSudoku is a logic-based symbol placement puzzle. The player has to +fill a grid with symbols so that each column, row and block on the game +board contains only one instance of each symbol. In KSudoku the symbols +are usually the numbers 1 to 9, but may be the letters A to P or A to +Y in larger puzzles. Puzzles start with the board partially filled and +it is your job to fill in the rest. + + +%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}* +%{_kde4_iconsdir}/hicolor/*/*/* +%{_kde4_appsdir}/%{name}/ + + +%changelog +* Fri Feb 15 2013 Rex Dieter 4.10.0-2 +- update license, description + +* Thu Feb 07 2013 Rex Dieter 4.10.0-1 +- first try + diff --git a/sources b/sources new file mode 100644 index 0000000..2cca2ee --- /dev/null +++ b/sources @@ -0,0 +1 @@ +fced80270bb2f6e0b45989008a1eecff ksudoku-4.10.0.tar.xz