Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
3f479aaa70 dist-git conversion 2010-07-29 14:35:22 +00:00
Bill Nottingham
63235f9ea1 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:34:13 +00:00
393fa93625 - Update to 0.6.5
- Updated desktop icon and categories
2008-12-12 23:03:57 +00:00
0bd906b2b4 - Use iconv in %prep to fix ChangeLog encoding
- Do not overwrite typespeed.score on upgrades
2008-07-17 01:03:51 +00:00
ea0a63373d Initialize branch F-9 for typespeed 2008-07-15 22:07:32 +00:00
6 changed files with 84 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
typespeed-0.6.5.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: typespeed
# $Id$
NAME := typespeed
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
578102b418c7df84903d3e90df2e7483 typespeed-0.6.5.tar.gz

9
typespeed.desktop Normal file
View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Typespeed
Comment=Test your typing speed
Exec=typespeed
Type=Application
Terminal=true
Icon=system-config-keyboard
Categories=Game;ArcadeGame;Education
Encoding=UTF-8

73
typespeed.spec Normal file
View file

@ -0,0 +1,73 @@
Name: typespeed
Version: 0.6.5
Release: 1%{?dist}
Summary: Test your typing speed and get your fingers' CPS
Group: Applications/Productivity
License: GPLv2+
URL: http://tobias.eyedacor.org/typespeed/
Source0: http://tobias.eyedacor.org/typespeed/typespeed-%{version}.tar.gz
Source1: %{name}.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel gettext desktop-file-utils
%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). The idea behind the game is rather easy: type words that are
flying by from left to right as fast as you can. If you miss 10 or
more words, game is over.
You can play typespeed for your own or with a friend using TCP/IPv4.
%prep
%setup -q
iconv -f ISO88591 -t UTF8 ChangeLog -o ChangeLog
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
desktop-file-install --vendor="fedora" \
--dir=$RPM_BUILD_ROOT/%{_datadir}/applications/ \
%{SOURCE1}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%attr(2755,root,games) %{_bindir}/%{name}
%attr(664,root,games) %config(noreplace) %{_localstatedir}/games/%{name}.score
%doc BUGS COPYING ChangeLog NEWS README TODO
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_datadir}/%{name}
%{_datadir}/applications/fedora-%{name}.desktop
%exclude %{_datadir}/doc/%{name}/README
%{_mandir}/man6/*
%changelog
* Fri Dec 12 2008 Michel Salim <salimma@fedoraproject.org> - 0.6.5-1
- Update to 0.6.5
- Updated desktop icon and categories
* Mon Jul 14 2008 Michel Salim <salimma@fedoraproject.org> - 0.6.4-2
- Use iconv in %%prep to fix ChangeLog encoding
- Do not overwrite typespeed.score on upgrades
* Tue May 20 2008 Michel Salim <salimma@fedoraproject.org> - 0.6.4-1
- Initial package (based on upstream spec by Andrew Ziem)