+#
+# Conditionale build:
+# _with_moviesounds - build moviesounds subpackage. Note: it probably is a
+# violation of Disney's copyright.
+#
Summary: A Tron lightcycle game with focus on multiplayer mode
Summary(pl): Gra Tron ze ¶wiat³ocyklem skupiaj±ca siê na trybie dla wielu graczy
Name: armagetron
Version: 0.2.5.2
-Release: 2
+Release: 3
License: GPL
Group: X11/Applications/Games
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source2: %{name}.png
Source3: http://armagetron.sourceforge.net/addons/moviepack.zip
# Source3-md5: e2d40309dde7e1339ca6aff7599cdfa3
+%if %{?_with_moviesounds:1}%{!?_with_moviesounds:0}
Source4: http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
# Source4-md5: 3c5d04af52eb296cdeb2fba5ecbd8899
+%endif
URL: http://armagetron.sourceforge.net/
BuildRequires: OpenGL-devel
BuildRequires: SDL_image-devel
Dodatek Moviesounds.
%prep
-%setup -q -a 3 -a 4
+%setup -q -a 3 %{?_with_moviesounds:-a 4}
%build
rm -f missing
install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -R moviepack moviesounds $RPM_BUILD_ROOT%{_prefix}/games/%{name}
+cp -R moviepack $RPM_BUILD_ROOT%{_prefix}/games/%{name}
+%{?_with_moviesounds:cp -R moviesounds $RPM_BUILD_ROOT%{_prefix}/games/%{name}}
rm -f $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack/art_read_me.txt
%clean
%doc moviepack/art_read_me.txt
%{_prefix}/games/%{name}/moviepack
+%if %{?_with_moviesounds:1}%{!?_with_moviesounds:0}
%files moviesounds
%defattr(644,root,root,755)
%{_prefix}/games/%{name}/moviesounds
+%endif