3 %bcond_without SDL_mixer # build without SDL_mixer
5 Summary: Addictive puzzle game to kill time
6 Summary(pl.UTF-8): Uzależniająca gra logiczna, która pomaga zabić czas
11 Group: X11/Applications/Games
12 Source0: http://dl.sourceforge.net/scalar/%{name}-%{version}-src.tar.bz2
13 # Source0-md5: 85526f8abf84ed4f5fa4cda67c75b47d
14 Source1: %{name}.desktop
16 Patch0: %{name}-images_dir.patch
17 Patch1: %{name}-Makefile.patch
18 URL: http://scalar.sourceforge.net/
19 BuildRequires: SDL-devel
20 BuildRequires: SDL_image-devel
21 %{?with_SDL_mixer:BuildRequires: SDL_mixer-devel}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The goal of the game is to assemble the picture from pieces. Each
26 picture is divided into pieces which are shuffled. You need to get
27 each piece back to its original position.
29 %description -l pl.UTF-8
30 Celem gry jest ułożenie obrazka z kawałków. Każdy obrazek został
31 podzielony na kawałki, które zostały pomieszane. Zadaniem gracza jest
32 przywrócenie oryginalnego wyglądu obrazka.
35 %setup -q -n %{name}-%{version}-src
38 sed -i 's@data@%{_datadir}/%{name}/data@' %{name}.cpp
43 CXXFLAGS="%{rpmcxxflags}"
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
49 install %{name} $RPM_BUILD_ROOT%{_bindir}
50 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
51 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
52 cp -r data $RPM_BUILD_ROOT%{_datadir}/%{name}
53 cp -r images $RPM_BUILD_ROOT%{_datadir}/%{name}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/*
63 %{_desktopdir}/%{name}.desktop
64 %{_pixmapsdir}/%{name}.png