Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f479aaa70 | ||
|
|
63235f9ea1 | ||
| 393fa93625 | |||
| 0bd906b2b4 | |||
| ea0a63373d |
6 changed files with 84 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
typespeed-0.6.5.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -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)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
578102b418c7df84903d3e90df2e7483 typespeed-0.6.5.tar.gz
|
||||
9
typespeed.desktop
Normal file
9
typespeed.desktop
Normal 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
73
typespeed.spec
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue