Name: gnome-mahjongg Version: 3.7.5 Release: 1%{?dist} Summary: GNOME Mahjongg game License: GPLv2+ and GFDL URL: http://live.gnome.org/Mahjongg Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-mahjongg/3.7/gnome-mahjongg-%{version}.tar.xz # https://bugzilla.gnome.org/show_bug.cgi?id=693494 Patch0: gnome-mahjongg-keywords.patch BuildRequires: glib2-devel BuildRequires: gtk3-devel BuildRequires: librsvg2-devel BuildRequires: intltool BuildRequires: itstool BuildRequires: desktop-file-utils Obsoletes: gnome-games-mahjongg < 1:3.7.4 Provides: gnome-games-mahjongg = 1:3.7.4 %description Mahjongg is a simple pattern recognition game. You score points by matching identical tiles. %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/gnome-mahjongg.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 %{_datadir}/glib-2.0/schemas/org.gnome.gnome-mahjongg.gschema.xml %{_datadir}/applications/gnome-mahjongg.desktop %{_mandir}/man6/gnome-mahjongg.6.gz %{_bindir}/gnome-mahjongg %{_datadir}/gnome-mahjongg %{_datadir}/icons/hicolor/*/apps/gnome-mahjongg.* %changelog * Sat Feb 9 2013 Matthias Clasen - 3.7.5-1 - Update to 3.7.5 * Mon Jan 28 2013 Matthias Clasen - 3.7.4-2 - Initial packaging of standalone gnome-mahjongg