Name: xmahjongg Version: 3.7 Release: 1 Summary: Mahjongg game License: GPLv2+ Group: Games/Other URL: http://www.lcdf.org/xmahjongg/ Source0: http://www.lcdf.org/%{name}/%{name}-%{version}.tar.gz Source1: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Xmahjongg is a simple solitaire game. The object is to remove all 144 Mah Jongg tiles from the playing area by matching them two at a time. %prep %setup -q %build ./configure \ --prefix=%{_prefix} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : mkdir -p ${RPM_BUILD_ROOT}/etc/X11/applnk/Graphics cp %{SOURCE1} ${RPM_BUILD_ROOT}/etc/X11/applnk/Graphics/ chmod 0644 ${RPM_BUILD_ROOT}/etc/X11/applnk/Graphics/* cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %{_bindir}/%{name} %{_mandir}/man6/* %{_datadir}/%{name} %attr(0644,root,system) /etc/X11/applnk/Graphics/%{name}.desktop /usr/bin/%{name} %changelog * Tue Feb 15 2011 Michael Perzl - 3.7-1 - first version for AIX V5.1 and higher