]> git.pld-linux.org Git - SPECS.git/blob - scalar.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / scalar.spec
1 #
2 # Conditional build:
3 %bcond_without  SDL_mixer       # build without SDL_mixer
4 #
5 Summary:        Addictive puzzle game to kill time
6 Summary(pl.UTF-8):      Uzależniająca gra logiczna, która pomaga zabić czas
7 Name:           scalar
8 Version:        1.02
9 Release:        2
10 License:        GPL v2+
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
15 Source2:        %{name}.png
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)
23
24 %description
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.
28
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.
33
34 %prep
35 %setup -q -n %{name}-%{version}-src
36 %patch0 -p1
37 %patch1 -p0
38 sed -i 's@data@%{_datadir}/%{name}/data@' %{name}.cpp
39
40 %build
41 %{__make} \
42         CXX="%{__cxx}" \
43         CXXFLAGS="%{rpmcxxflags}"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
48
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}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc README
61 %attr(755,root,root) %{_bindir}/*
62 %{_datadir}/%{name}
63 %{_desktopdir}/%{name}.desktop
64 %{_pixmapsdir}/%{name}.png
This page took 0.14248 seconds and 3 git commands to generate.