+#
+# Conditional build:
+%bcond_without images # don't build images package
+#
%define sndver 1.4.0
%define imgver 1.7.1
Summary: Crossfire client
BuildRequires: autoconf
BuildRequires: gtk+-devel
BuildRequires: perl-base
-Requires: %{name}-common = %{version}
+Requires: %{name}-common = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary: Crossfire sounds
Summary(pl): D¼wiêki do Crossfire
Group: Applications/Games
-Requires: %{name}-common = %{version}
+Requires: %{name}-common = %{version}-%{release}
%description sounds
Some sound files and the sound server for crossfire.
Summary: GTK+ Crossfire client
Summary(pl): Klient Crossfire pod GTK+
Group: Applications/Games
-Requires: %{name}-common = %{version}
+Requires: %{name}-common = %{version}-%{release}
%description gtk
GTK+ client to crossfire.
Summary: GTK+2 Crossfire client
Summary(pl): Klient Crossfire pod GTK+2
Group: Applications/Games
-Requires: %{name}-common = %{version}
+Requires: %{name}-common = %{version}-%{release}
%description gtk2
GTK+2 client to crossfire.
przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
przeciwko sobie w tym samym "¶wiecie".
-
%package images
Summary: Crossfire images
Summary(pl): Obrazki do Crossfire
Group: Applications/Games
-Requires: %{name}-common = %{version}
+Requires: %{name}-common = %{version}-%{release}
%description images
Some images extracted from server for Crossfire.
%prep
%setup -q -a1
mv -f sounds cfsounds
-%if %{?_without_images:0}%{?!_without_images:1}
+%if %{with images}
install -d images
cd images
tar xzf %{SOURCE2}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
-%if %{?_without_images:0}%{?!_without_images:1}
+%if %{with images}
install images/bmaps.client images/crossfire.base images/crossfire.clsc \
$RPM_BUILD_ROOT%{_datadir}/%{name}
%endif
%attr(755,root,root) %{_bindir}/cfsndserv*
%{_datadir}/%{name}/sounds
-%if %{?_without_images:0}%{?!_without_images:1}
+%if %{with images}
%files images
%defattr(644,root,root,755)
%{_datadir}/%{name}/bmaps.client