diff --git a/.gitignore b/.gitignore index e69de29..2988ed6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/iagno-3.7.4.tar.xz diff --git a/iagno-keywords.patch b/iagno-keywords.patch new file mode 100644 index 0000000..d08df98 --- /dev/null +++ b/iagno-keywords.patch @@ -0,0 +1,24 @@ +diff -up iagno-3.7.4/po/it.po.keywords iagno-3.7.4/po/it.po +--- iagno-3.7.4/po/it.po.keywords 2013-02-09 16:14:08.633616195 -0500 ++++ iagno-3.7.4/po/it.po 2013-02-09 16:14:21.220617023 -0500 +@@ -4243,7 +4243,7 @@ msgstr "Domina la tavola in una versione + + #: ../iagno/data/iagno.desktop.in.in.h:3 + msgid "othello;" +-msgstr "othello;iagno;otello" ++msgstr "othello;iagno;otello;" + + #: ../iagno/src/iagno.vala:137 ../iagno/src/iagno.vala:254 + #: ../iagno/src/iagno.vala:262 +diff -up iagno-3.7.4/po/th.po.keywords iagno-3.7.4/po/th.po +--- iagno-3.7.4/po/th.po.keywords 2013-02-09 16:14:02.286615778 -0500 ++++ iagno-3.7.4/po/th.po 2013-02-09 16:09:30.033597876 -0500 +@@ -4166,7 +4166,7 @@ msgstr "ครอบครองกร� + + #: ../iagno/data/iagno.desktop.in.in.h:3 + msgid "othello;" +-msgstr "โอเทลโล่" ++msgstr "โอเทลโล่;" + + #: ../iagno/src/iagno.vala:137 ../iagno/src/iagno.vala:254 + #: ../iagno/src/iagno.vala:262 diff --git a/iagno.spec b/iagno.spec new file mode 100644 index 0000000..949fb9d --- /dev/null +++ b/iagno.spec @@ -0,0 +1,77 @@ +Name: iagno +Version: 3.7.4 +Release: 1%{?dist} +Summary: GNOME Reversi game + +License: GPLv2+ and GFDL +URL: http://live.gnome.org/Iagno +Source0: http://download.gnome.org/sources/iagno/3.7/iagno-%{version}.tar.xz + +# https://bugzilla.gnome.org/show_bug.cgi?id=693498 +Patch0: iagno-keywords.patch + +BuildRequires: glib2-devel +BuildRequires: gtk3-devel +BuildRequires: librsvg2-devel +BuildRequires: libcanberra-devel +BuildRequires: intltool +BuildRequires: itstool +BuildRequires: desktop-file-utils + +%description +The GNOME version of Reversi. The goal is to control the most disks +on the board. + + +%prep +%setup -q +%patch0 -p1 + + +%build +%configure +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/iagno.desktop + +%find_lang %{name} --all-name --with-gnome + + +%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 || : + glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi + + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : + + +%files -f %{name}.lang +%doc COPYING +%{_bindir}/iagno +%{_datadir}/applications/iagno.desktop +%{_datadir}/glib-2.0/schemas/org.gnome.iagno.gschema.xml +%{_datadir}/iagno/iagno.ui +%{_datadir}/iagno/sounds/flip-piece.ogg +%{_datadir}/iagno/sounds/gameover.ogg +%{_datadir}/iagno/themes/black_and_white.svg +%{_datadir}/iagno/themes/sun_and_star.svg +%{_datadir}/icons/hicolor/*/apps/iagno.png +%{_mandir}/man6/iagno.6.gz + + +%changelog +* Sat Feb 9 2013 Matthias Clasen - 3.7.4-1 +- Initial packaging of standalone iagno diff --git a/sources b/sources index e69de29..499094e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a17cd518afe9a550abfb844f8acbb325 iagno-3.7.4.tar.xz