File typespeed.spec of Package typespeed
#
# spec file for package remind (Version 03.01.07)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Summary: A typing game firstly ripped from ztspeed
Name: typespeed
Version: 0.6.5
Release: 1
Source0: %{name}-%{version}.tar.bz2
#Source1: http://tobias.eyedacor.org/typespeed/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-linguas.patch.bz2
Vendor: %{vendor}
URL: http://tobias.eyedacor.org/typespeed
License: GPLv2
Group: System/Libraries
Requires: ncurses
Requires: glibc-i18ndata
BuildRequires: ncurses-devel
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
Typespeed gives your fingers' cps (total and
correct), typoratio and some points to compare
with your friends.
Typespeed's idea is ripped from ztspeed (a dos
game made by Zorlim). Idea of the game should be
clear to anyone, just type and type it fast or
be a loser.
%prep
%setup -q
%patch0 -p1
%build
if [ -x ./configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
--bindir=%{_prefix}/games \
--libdir=%{_prefix}/%{_libdir} \
--datadir=%{_datadir}/games \
--sysconfdir=%{_sysconfdir} \
--docdir=%{_docdir}/%{name} \
--localstatedir=/var \
--disable-dependancy-tracking \
--disable-static
else
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
%{__make} %{?jobs:-j%jobs}
###################################################
## Workaround to avoid rpmlint zero lenght error ##
###################################################
echo "373 385 76 default score\
words.dos default 13592 1245736548" > %{_builddir}/%{name}-%{version}/src/%{name}.score
%debug_package
%install
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%attr(0750,games,games)%{_prefix}/games/%{name}
%config %{_sysconfdir}/%{name}rc
%config(noreplace)%attr(0660,games,games)/var/games/%{name}.score
%dir %{_datadir}/games/%{name}
%dir %{_datadir}/games/%{name}/rules
%dir %{_datadir}/games/%{name}/words
%attr(0644,root,root)%{_datadir}/games/%{name}/rules/*
%attr(0644,root,root)%{_datadir}/games/%{name}/words/*
%doc %{_mandir}/man6/%{name}.6.gz
%doc AUTHORS ChangeLog README TODO ABOUT-NLS
%changelog
* Mon Jun 22 2009 Mario GarcĂa H. <code933k@gmail.com> - 0.6.5
- Initial package.