[four-in-a-row] Initial import

Yanko Kaneti yaneti at fedoraproject.org
Mon Mar 25 13:27:01 UTC 2013


commit e740558f88bea6cd67c6205e8df9b98d020d09e0
Author: Yanko Kaneti <yaneti at declera.com>
Date:   Mon Mar 25 15:23:19 2013 +0200

    Initial import

 .gitignore         |    1 +
 four-in-a-row.spec |   82 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 ug-po.patch        |   13 ++++++++
 4 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5a70983 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/four-in-a-row-3.7.92.tar.xz
diff --git a/four-in-a-row.spec b/four-in-a-row.spec
new file mode 100644
index 0000000..0a1a056
--- /dev/null
+++ b/four-in-a-row.spec
@@ -0,0 +1,82 @@
+Name:           four-in-a-row
+Version:        3.7.92
+Release:        1%{?dist}
+Summary:        GNOME Four-in-a-row game
+
+License:        GPLv2+ and GFDL
+URL:            http://projects.gnome.org/gnome-games/
+Source0:        http://download.gnome.org/sources/four-in-a-row/3.7/four-in-a-row-%{version}.tar.xz
+
+# Contacted the translator. Should be fixed upstream at some point
+Patch1:         ug-po.patch
+
+BuildRequires:  gtk3-devel
+BuildRequires:  librsvg2-devel
+BuildRequires:  libcanberra-devel
+Buildrequires:  zlib-devel
+BuildRequires:  intltool
+BuildRequires:  itstool
+BuildRequires:  desktop-file-utils
+
+Obsoletes: gnome-games-gnect < 1:3.7.92-1
+
+%description
+The objective of Four-in-a-row is to build a line of four of your marbles
+while trying to stop your opponent (human or computer) building a line
+of his or her own.
+
+%prep
+%setup -q
+%patch1 -p1 -b .ug-po
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnect.desktop
+
+%find_lang %{name} --all-name --with-gnome
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+touch --no-create %{_datadir}/icons/HighContrast &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ]; then
+  touch --no-create %{_datadir}/icons/hicolor &> /dev/null
+  touch --no-create %{_datadir}/icons/HighContrast &> /dev/null
+  gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+  gtk-update-icon-cache %{_datadir}/icons/HighContrast &> /dev/null || :
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
+
+
+%files -f %{name}.lang
+%doc COPYING
+%{_datadir}/glib-2.0/schemas/org.gnome.four-in-a-row.gschema.xml
+%{_datadir}/applications/gnect.desktop
+%{_bindir}/four-in-a-row
+%{_datadir}/four-in-a-row
+%{_datadir}/icons/hicolor/*/apps/four-in-a-row.*
+%{_datadir}/icons/HighContrast/*/apps/four-in-a-row.*
+%{_mandir}/man6/four-in-a-row.6*
+
+
+%changelog
+* Tue Mar 19 2013 Yanko Kaneti <yaneti at declera.com> - 3.7.92-1
+- Update to 3.7.92
+
+* Wed Mar  6 2013 Yanko Kaneti <yaneti at declera.com> - 3.7.90-1
+- Initial packaging of standalone four-in-a-row
diff --git a/sources b/sources
index e69de29..96dddd7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7b744b8abf9a8f0a824302a79f3c8b1f  four-in-a-row-3.7.92.tar.xz
diff --git a/ug-po.patch b/ug-po.patch
new file mode 100644
index 0000000..9728c3a
--- /dev/null
+++ b/ug-po.patch
@@ -0,0 +1,13 @@
+diff --git a/po/ug.po b/po/ug.po
+index ccb6b8d..ce00713 100644
+--- a/po/ug.po
++++ b/po/ug.po
+@@ -29,7 +29,7 @@ msgstr "ئوخشاش رەڭدىكى قۇرلارنى ياسىسا ئۇتىدۇ"
+ 
+ #: ../data/four-in-a-row.desktop.in.in.h:3
+ msgid "game;strategy;logic;"
+-msgstr "game؛strategy؛logic؛ئويۇن؛ئىستراتېگىيە؛لوگىكىلىق؛"
++msgstr "game;strategy;logic;ئويۇن;ئىستراتېگىيە;لوگىكىلىق;"
+ 
+ #: ../data/org.gnome.four-in-a-row.gschema.xml.in.h:1
+ msgid "Level of Player One"


More information about the scm-commits mailing list