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 - 3.7.92-1 - Update to 3.7.92 * Wed Mar 6 2013 Yanko Kaneti - 3.7.90-1 - Initial packaging of standalone four-in-a-row