File xmahjong.spec of Package xmahjong
#
# spec file for package xmahjong (Version 2006.8.10)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xmahjong
%if %suse_version > 910
BuildRequires: freetype2 xorg-x11 xorg-x11-devel
%else
BuildRequires: XFree86 XFree86-devel freetype2
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/misc
%define xbindir /usr/bin
%define xlibdir /usr/share
%define xmandir /usr/share/man
%else
%define fontdir /usr/X11R6/lib/X11/fonts/misc
%define xbindir /usr/X11R6/bin
%define xlibdir /usr/X11R6/lib/X11
%define xmandir /usr/X11R6/man
%endif
License: X11/MIT
Group: Amusements/Games/Board/Other
Autoreqprov: on
PreReq: %suseconfig_fonts_prereq
Version: 2006.8.10
Release: 1
Summary: Mahjongg for X
Source: xmahjong.tar.bz2
Patch0: xmahjong.dif
Patch1: missing-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Mahjongg is a challenging Chinese game similar to domino. It is usually
played by four players. Xmahjongg is the solitaire version designed for
the X Window System. More can be found in the appropriate manual page.
Authors:
--------
Jeff S. Young <jsy@cray.com>
%prep
%setup -n xmahjong
%patch0
%patch1 -p1
%build
xmkmf -a
rm -f xmahjongg.man; ln -sf xmahjongg.6 xmahjongg.man
make LIBDIR=%{xlibdir}
%install
make install install.man DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{xlibdir}
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-,root,root)
%doc copyright readme.1 readme.2
%dir %{xlibdir}/xmahjongg
%{xbindir}/xmahjongg
%dir %{fontdir}
%{fontdir}/xmahjongg.pcf.gz
%{xlibdir}/xmahjongg/bridge
%{xlibdir}/xmahjongg/default
%{xlibdir}/xmahjongg/wedges
%doc %{xmandir}/man1/xmahjongg.1x.gz
%changelog -n xmahjong
* Thu Aug 10 2006 - mfabian@suse.de
- change paths for X11R7
- bzip2 source tarball
- add missing includes
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 06 2004 - mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Thu May 27 2004 - sndirsch@suse.de
- added freetype2 to #neededforbuild; prevents from building empty
xmahjong font (bdftopcf needs freetype2)
* Fri Mar 19 2004 - mfabian@suse.de
- use %%suseconfig_fonts_prereq
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr
* Fri Jun 13 2003 - kukuk@suse.de
- Use BuildRoot
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Wed Jun 20 2001 - ro@suse.de
- fix to build
* Thu Dec 14 2000 - werner@suse.de
- Group tag
* Mon Jun 05 2000 - ro@suse.de
- specfile cleanup , doc relocation
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Sep 24 1998 - ro@suse.de
- fixed arguments for bind, connnect in initial.c
* Wed May 14 1997 - werner@suse.de
- Move documentation to /usr/doc/packages/xmahjong