# TODO: move scores file to /var/games!
#
# Conditional build:
-%bcond_without gtk # don't build gtk client
-%bcond_without curses # don't build curses client
-%bcond_without sdl # don't use sdl sound output
-%bcond_without esd # don't use esd sound output
+%bcond_without gtk # don't build GTK+ client
+%bcond_without curses # don't build curses client
+%bcond_without sdl # don't use sdl sound output
+%bcond_without esd # don't use esd sound output
#
Summary: Drug dealing game
Summary(pl): Gra polegajĀ±ca na handlowaniu narkotykami
Name: dopewars
Version: 1.5.9
-Release: 2
+Release: 4
License: GPL
Group: Applications/Games
Source0: http://dl.sourceforge.net/dopewars/%{name}-%{version}.tar.gz
BuildRequires: automake
%{?with_esd:BuildRequires: esound-devel >= 0.0.20}
BuildRequires: glib2-devel >= 2.0.0
-%{?with_gtk:BuildRequires: gtk+2-devel >= 2.0.0}
+%{?with_gtk:BuildRequires: gtk+2-devel >= 1:2.0.0}
%{?with_curses:BuildRequires: ncurses-devel}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{?with_gtk:--enable-gui-client} \
%{?with_gtk:--enable-gui-server}
-%{__make} CFLAGS="%{rpmcflags} -Wall -I/usr/include/ncurses"
+%{__make} \
+ CFLAGS="%{rpmcflags} -Wall -I/usr/include/ncurses"
%install
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc ChangeLog LICENCE README doc/{*.html,help}
%attr(2755,root,games) %{_bindir}/*
-%attr(0660,root,games) %config(noreplace) %verify(not size mtime md5) %{_datadir}/dopewars.sco
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_datadir}/dopewars.sco
%{_mandir}/man6/*
%{_libdir}/%{name}
-%{_desktopdir}/*
+%{_desktopdir}/*.desktop
%{_pixmapsdir}/*
%{_datadir}/%{name}