diff options
| author | Mario Blättermann <mario.blaettermann@gmail.com> | 2015-02-18 17:08:30 +0100 |
|---|---|---|
| committer | Mario Blättermann <mario.blaettermann@gmail.com> | 2015-02-18 17:08:30 +0100 |
| commit | 1f12a72636f88826f9897aea50b4db80bbdc1c58 (patch) | |
| tree | 6b7fc5eb44e3b15fed7fb22f1b618e515d29d3de | |
| parent | 31147e4d759d6fc9c621984dcddd34be43bd4daf (diff) | |
| download | hexalate-1f12a72636f88826f9897aea50b4db80bbdc1c58.tar.gz hexalate-1f12a72636f88826f9897aea50b4db80bbdc1c58.tar.xz hexalate-1f12a72636f88826f9897aea50b4db80bbdc1c58.zip | |
Initial commit
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | hexalate.appdata.xml | 33 | ||||
| -rw-r--r-- | hexalate.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
4 files changed, 107 insertions, 0 deletions
@@ -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@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@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@gmail.com> - 1.0.3-2 +- Add appdata file + +* Sun Feb 15 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 1.0.3-1 +- Initial package @@ -0,0 +1 @@ +2a5415c115b5ab3d319069ca3ae80c57 hexalate-1.0.3-src.tar.bz2 |
