[hexglass] Initial import (#725837).
Martin Gieseking
mgieseki at fedoraproject.org
Sat Jul 30 15:16:53 UTC 2011
commit df5bcdf9140fd0c85c7c157f11b5f6cf272437c8
Author: Martin Gieseking <martin.gieseking at uos.de>
Date: Sat Jul 30 17:15:57 2011 +0200
Initial import (#725837).
.gitignore | 1 +
hexglass-1.2.1-locale-path.patch | 11 +++++
hexglass.desktop | 11 +++++
hexglass.spec | 80 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f95d7d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hexglass-1.2.1.tar.gz
diff --git a/hexglass-1.2.1-locale-path.patch b/hexglass-1.2.1-locale-path.patch
new file mode 100644
index 0000000..dd88f84
--- /dev/null
+++ b/hexglass-1.2.1-locale-path.patch
@@ -0,0 +1,11 @@
+diff --git a/src/hexglass.cpp b/src/hexglass.cpp
+--- a/src/hexglass.cpp
++++ b/src/hexglass.cpp
+@@ -74,6 +74,7 @@
+ locales_names.append(QLocale::system().name());
+
+ locales_path.append(QLibraryInfo::location(QLibraryInfo::TranslationsPath));
++ locales_path.append("/usr/share/hexglass/translations");
+ locales_path.append(app.applicationDirPath());
+ locales_path.append(":/");
+
diff --git a/hexglass.desktop b/hexglass.desktop
new file mode 100644
index 0000000..cd1f5f6
--- /dev/null
+++ b/hexglass.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=HexGlass
+GenericName=Block falling game
+GenericName[de]=Puzzlespiel mit fallenden Blöcken
+Comment=Tetris-like puzzle game based on a hexagonal grid
+Comment[de]=Tetris-ähnliches Puzzlespiel auf einem sechseckigen Raster
+Exec=hexglass
+Icon=hexglass
+Terminal=false
+Type=Application
+Categories=Game;LogicGame;
diff --git a/hexglass.spec b/hexglass.spec
new file mode 100644
index 0000000..651ae02
--- /dev/null
+++ b/hexglass.spec
@@ -0,0 +1,80 @@
+Name: hexglass
+Version: 1.2.1
+Release: 3%{?dist}
+Summary: Block falling puzzle game based on a hexagonal grid
+Summary(de): Puzzlespiel mit fallenden Blöcken auf einem sechseckigen Raster
+Group: Amusements/Games
+
+License: GPLv3+
+URL: http://code.google.com/p/hexglass
+Source0: http://hexglass.googlecode.com/files/%{name}-%{version}.tar.gz
+Source1: %{name}.desktop
+
+# Let the application search for locale files in
+# /usr/share/hexglass/translations/
+Patch0: %{name}-%{version}-locale-path.patch
+
+BuildRequires: desktop-file-utils
+BuildRequires: qt4-devel
+
+%description
+HexGlass is a Tetris-like puzzle game. Ten different types of blocks
+continuously fall from above and you must arrange them to make horizontal
+rows of hexagonal bricks. Completing any row causes those hexagonal blocks
+to disappear and the rest above move downwards. The blocks above gradually
+fall faster and the game is over when the screen fills up and blocks can
+no longer fall from the top.
+
+%description -l de
+HexGlass ist ein Tetris-ähnliches Puzzlespiel. Zehn verschiedene Blocktypen
+fallen fortwährend nach unten und müssen so angeordnet werden, dass horizontale
+Zeilen aus sechseckigen Elementen gebildet werden. Nach Vervollständigen einer
+Zeile verschwinden die Blöcke, wodurch die übrigen nach unten verschoben
+werden. Mit steigendem Schwierigkeitsgrad fallen die Blöcke schneller.
+Das Spiel ist vorbei, sobald das Spielfeld vollständig gefüllt ist und keine
+Blöcke mehr fallen können.
+
+%prep
+%setup -q
+%patch0 -p1
+
+
+%build
+qmake-qt4 hexglass.pro
+make %{?_smp_mflags}
+
+
+%install
+install -D hexglass %{buildroot}%{_bindir}/hexglass
+install -d %{buildroot}%{_datadir}/%{name}/translations
+install -m 644 -p translations/*.qm %{buildroot}%{_datadir}/%{name}/translations
+install -D -m 644 -p resources/about_icon.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
+
+%find_lang %{name} --with-qt
+
+desktop-file-install \
+ --dir=%{buildroot}%{_datadir}/applications \
+ %{SOURCE1}
+
+
+%files -f %{name}.lang
+%doc CHANGES COPYING README
+%{_bindir}/hexglass
+%dir %{_datadir}/%{name}/
+%dir %{_datadir}/%{name}/translations/
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}.xpm
+
+
+
+%changelog
+* Fri Jul 29 2011 Martin Gieseking <martin.gieseking at uos.de> 1.2.1-3
+- added German summary and description
+
+* Fri Jul 29 2011 Martin Gieseking <martin.gieseking at uos.de> 1.2.1-2
+- added Group
+- changed GenericName in .desktop file to "Block falling game"
+
+* Tue Jul 26 2011 Martin Gieseking <martin.gieseking at uos.de> 1.2.1-1
+- initial package
+
diff --git a/sources b/sources
index e69de29..04bed5c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+408148e6b05065d12edd7066b929465b hexglass-1.2.1.tar.gz
More information about the scm-commits
mailing list