From ea0a63373d97630335e706af0ff290a3bd0f620e Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 15 Jul 2008 22:07:32 +0000 Subject: [PATCH 1/5] Initialize branch F-9 for typespeed --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..1c26f78 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-9 From 0bd906b2b4807c9fb2e6066cb88c98c04c334a29 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 17 Jul 2008 01:03:51 +0000 Subject: [PATCH 2/5] - Use iconv in %prep to fix ChangeLog encoding - Do not overwrite typespeed.score on upgrades --- .cvsignore | 1 + sources | 1 + typespeed.desktop | 9 +++++++ typespeed.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 typespeed.desktop create mode 100644 typespeed.spec diff --git a/.cvsignore b/.cvsignore index e69de29..8d65ab9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +typespeed-0.6.4.tar.gz diff --git a/sources b/sources index e69de29..2b2f432 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fb55b92ad7e29a1a6a7a3e1ca383d5e2 typespeed-0.6.4.tar.gz diff --git a/typespeed.desktop b/typespeed.desktop new file mode 100644 index 0000000..3c92f1e --- /dev/null +++ b/typespeed.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Typespeed +Comment=Test your typing speed +Exec=typespeed +Type=Application +Terminal=true +Icon=keyboard +Categories=Game;Education +Encoding=UTF-8 diff --git a/typespeed.spec b/typespeed.spec new file mode 100644 index 0000000..6e9000d --- /dev/null +++ b/typespeed.spec @@ -0,0 +1,69 @@ +Name: typespeed +Version: 0.6.4 +Release: 2%{?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 +* Mon Jul 14 2008 Michel Alexandre Salim - 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 - 0.6.4-1 +- Initial package (based on upstream spec by Andrew Ziem) From 393fa936259585040976a0017d3d343e92f655af Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 12 Dec 2008 23:03:57 +0000 Subject: [PATCH 3/5] - Update to 0.6.5 - Updated desktop icon and categories --- .cvsignore | 2 +- sources | 2 +- typespeed.desktop | 4 ++-- typespeed.spec | 10 +++++++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.cvsignore b/.cvsignore index 8d65ab9..7b9dc07 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -typespeed-0.6.4.tar.gz +typespeed-0.6.5.tar.gz diff --git a/sources b/sources index 2b2f432..b7688a3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fb55b92ad7e29a1a6a7a3e1ca383d5e2 typespeed-0.6.4.tar.gz +578102b418c7df84903d3e90df2e7483 typespeed-0.6.5.tar.gz diff --git a/typespeed.desktop b/typespeed.desktop index 3c92f1e..3b3602c 100644 --- a/typespeed.desktop +++ b/typespeed.desktop @@ -4,6 +4,6 @@ Comment=Test your typing speed Exec=typespeed Type=Application Terminal=true -Icon=keyboard -Categories=Game;Education +Icon=system-config-keyboard +Categories=Game;ArcadeGame;Education Encoding=UTF-8 diff --git a/typespeed.spec b/typespeed.spec index 6e9000d..31a46f2 100644 --- a/typespeed.spec +++ b/typespeed.spec @@ -1,6 +1,6 @@ Name: typespeed -Version: 0.6.4 -Release: 2%{?dist} +Version: 0.6.5 +Release: 1%{?dist} Summary: Test your typing speed and get your fingers' CPS Group: Applications/Productivity @@ -61,7 +61,11 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Mon Jul 14 2008 Michel Alexandre Salim - 0.6.4-2 +* Fri Dec 12 2008 Michel Salim - 0.6.5-1 +- Update to 0.6.5 +- Updated desktop icon and categories + +* Mon Jul 14 2008 Michel Salim - 0.6.4-2 - Use iconv in %%prep to fix ChangeLog encoding - Do not overwrite typespeed.score on upgrades From 63235f9ea161126e982b6e3661a3d908d90fe5d7 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:34:13 +0000 Subject: [PATCH 4/5] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92b4576..b22f519 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ 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 +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 3f479aaa708f2f4174f5985e6933b1477d89956b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 14:35:22 +0000 Subject: [PATCH 5/5] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index b22f519..0000000 --- a/Makefile +++ /dev/null @@ -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 $$d/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) diff --git a/branch b/branch deleted file mode 100644 index 1c26f78..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-9