[hexalate/f21] Initial commit
Mario Blättermann
mariobl at fedoraproject.org
Wed Feb 18 16:09:27 UTC 2015
commit 9edf6105af3034fc4470e5255a71349e7952291c
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date: Wed Feb 18 17:09:11 2015 +0100
Initial commit
.gitignore | 1 +
hexalate.appdata.xml | 33 +++++++++++++++++++++++
hexalate.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 107 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3a84328 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hexalate-1.0.3-src.tar.bz2
diff --git a/hexalate.appdata.xml b/hexalate.appdata.xml
new file mode 100644
index 0000000..3dbeed4
--- /dev/null
+++ b/hexalate.appdata.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Mario Blättermann <mariobl at fedoraproject.org> -->
+<application>
+ <id type="desktop">hexalate.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPLv3+</project_license>
+ <name>Hexalate</name>
+ <summary>Color Matching Game</summary>
+ <summary xml:lang="de">Farbabstimmungsspiel</summary>
+ <description>
+ <p>
+ Hexalate is a color matching game. The goal of the game is to rotate and
+ position the circles so that each touching line matches in color. You rotate
+ circles by right clicking, and you move circles by dragging them. The game
+ stores the positions and rotations of the circles across runs.
+ </p>
+ <p xml:lang="de">
+ Hexalate ist ein Farbabstimmungsspiel. Ziel des Spiels ist es, die Kreise
+ zu drehen und deren Position zu ändern, bis die Farben der sich berührenden
+ Linien übereinstimmen. Sie drehen die Kreise, indem Sie mit der rechten
+ Maustaste darauf klicken, und verschieben Sie durch Ziehen und Ablegen mit
+ der Maus. Das Spiel speichert die Positionen und Drehungen der Kreise nach
+ dem Beenden des Programms und zeigt diese beim nächsten Start wieder an.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <image>http://gottcode.org/hexalate/screenshots/hexalate.png</image>
+ </screenshot>
+ </screenshots>
+ <url type="homepage">http://gottcode.org/hexalate/</url>
+ <updatecontact>mariobl at fedoraproject.org</updatecontact>
+</application>
\ No newline at end of file
diff --git a/hexalate.spec b/hexalate.spec
new file mode 100644
index 0000000..fc66358
--- /dev/null
+++ b/hexalate.spec
@@ -0,0 +1,72 @@
+Name: hexalate
+Version: 1.0.3
+Release: 2%{?dist}
+Summary: Color matching game
+
+License: GPLv3+
+URL: http://gottcode.org/%{name}/
+Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
+Source1: %{name}.appdata.xml
+
+BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
+BuildRequires: qt5-qttools-devel
+
+Requires: hicolor-icon-theme
+
+%description
+Hexalate is a color matching game. The goal of the game is to rotate and
+position the circles so that each touching line matches in color. You
+rotate circles by right clicking, and you move circles by dragging them.
+The game stores the positions and rotations of the circles across runs.
+
+%prep
+%setup -q
+
+
+%build
+%{qmake_qt5} PREFIX=%{_prefix}
+make %{?_smp_mflags}
+
+
+%install
+%make_install INSTALL_ROOT=%{buildroot}
+
+mkdir -p %{buildroot}%{_datadir}/appdata/
+install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/
+
+%find_lang %{name} --with-qt --without-mo
+
+%check
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
+appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || :
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files -f %{name}.lang
+%doc ChangeLog CREDITS NEWS README
+%license COPYING
+%{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.*
+%{_datadir}/pixmaps/%{name}.xpm
+%dir %{_datadir}/%{name}/
+%dir %{_datadir}/%{name}/translations/
+
+%changelog
+* Tue Feb 17 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 1.0.3-2
+- Add appdata file
+
+* Sun Feb 15 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 1.0.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b9938ee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2a5415c115b5ab3d319069ca3ae80c57 hexalate-1.0.3-src.tar.bz2
More information about the scm-commits
mailing list