File yal.spec of Package yal

Name:           yal
Url:            http://www.hard-light.net/forums/index.php?topic=68413.0
License:        GPLv2+
Group:          Amusements/Games
Version:        0.2.99rc2
Release:        1
Summary:        FreeSpace 2 launcher
Source0:        http://vega.livecd.pl/~havner/yal/linux/%{name}-0.3-rc2.tar.bz2
# http://freespace.pl/hosted/foxer/gtva_ico/gtva.ico
Source1:        yal.png
Patch0:         %{name}-default_browser.patch
Patch1:         %{name}-default_paths.patch
#Patch2:         %{name}-non_43_resolution.patch
BuildRequires:  libSDL-devel openal-devel libqt4-devel gcc-c++ update-desktop-files
Provides:       fs2_open-launcher

%description
This package provides a launcher to easily launch Freespace 2 with different
options and MODs.

%prep
%setup -q -n %{name}-0.3-rc2
%patch0
%patch1
#%patch2

%build
./autogen.sh yal.pro
%{__make} %{?jobs:-j%{jobs}} release CXXFLAGS='%{optflags} -DFS2EXEC_PATH=\"%{_bindir}/fs2_open\" -DGAMEDIR_PATH=\"%{_datadir}/fs2_open\"'

%install
%{__install} -p -D -m 0755 'bin/fs2_launcher' '%{buildroot}%{_bindir}/%{name}'
%suse_update_desktop_file -c %{name} 'Yet Another Launcher' 'Freespace 2 Launcher' %{name} %{name} 'Game;Simulation;'

%files
%defattr(0644, root, root, 0755)
%doc AUTHORS ChangeLog Copying README TODO
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by