-# $Id: asciijump.spec,v 1.11 2003-05-25 05:45:43 misi3k Exp $
-%define _ver 1.0.0beta
+%define _ver 1.0.2beta
Summary: (a)sci(i)jump game
-Summary(pl): Skoki narciarskie w ascii
+Summary(pl.UTF-8): Skoki narciarskie w ascii
Name: asciijump
-Version: 1.0.0
-Release: 0.beta
+Version: 1.0.2
+Release: 0.beta.4
License: GPL
Group: Applications/Games
Vendor: Grzegorz Moskal <g.moskal@opengroup.org>
-Source0: http://otak.k-k.pl/asciijump/%{name}-%{_ver}.tar.gz
+Source0: http://otak.k-k.pl/asciijump/tgz/%{name}-%{_ver}.tar.gz
+# Source0-md5: 199228bbfb4a16914913fe594b775a6d
+Patch0: %{name}-desktop.patch
URL: http://asciijump.prv.pl/
+BuildRequires: autoconf
BuildRequires: conflib-devel
-BuildRequires: slang-devel
BuildRequires: ctags
+BuildRequires: slang-devel >= 2.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Ski jumping in text mode.
-%description -l pl
+%description -l pl.UTF-8
Skoki narciarskie w trybie tekstowym.
%prep
%setup -q -n asciijump-%{_ver}
+%patch0 -p1
%build
%{__autoconf}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/var/games/asciijump
-# get rid of those subversion related directories
-# FixMe: replace with find?
-# find . -type d -name '\.svn' -exec rm -rf {} \;
-rm -rf hills/.svn gfx/.svn
-for i in gfx/*; do
- rm -rf $i/.svn
-done
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README README-pl
-%attr(2750,root,games) %{_bindir}/asciijump
-%attr(2750,root,games) %{_bindir}/aj-server
+%attr(2755,root,games) %{_bindir}/asciijump
+%attr(2755,root,games) %{_bindir}/aj-server
%attr(775,root,games) %{_var}/games/asciijump
%{_datadir}/asciijump
%{_mandir}/man6/asciijump.6*
-%{_applnkdir}/Games/Arcade/asciijump.desktop
+%{_desktopdir}/asciijump.desktop
%{_pixmapsdir}/asciijump.png