1 Summary: A set of Solitaire type games for the X Window System
2 Summary(pl): Zestaw pasjansów dla X Window System
6 License: distributable - most of it GPL
8 Source0: ftp://metalab.unc.edu/pub/Linux/games/solitaires/%{name}-%{version}-src.tar.gz
9 Source1: %{name}.desktop
11 Patch0: %{name}-paths.patch
12 Patch1: %{name}-qt-locales.patch
13 BuildRequires: tetex-dvips
14 BuildRequires: tetex-latex
15 BuildRequires: XFree86-devel
16 BuildRequires: qt-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _prefix /usr/X11R6
20 %define _mandir %{_prefix}/man
23 Xpat2 is a generic patience or Solitaire game for the X Window System.
24 Xpat2 can be used with different rules sets, so it can be used to play
25 Spider, Klondike, and other card games.
28 Xpat2 jest zestawem pasjansów dla X Window.
41 rm -f de_DE fr_FR it_IT
44 %{__make} CCOPTIONS="%{rpmcflags}" CXXOPTIONS="%{rpmcflags}"
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games,%{_pixmapsdir}}
53 %{__make} DESTDIR=$RPM_BUILD_ROOT install
55 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
56 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
58 gzip -9nf README doc/xpat2.ps
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %doc README.gz doc/xpat2.ps.gz
68 %lang(de) %{_datadir}/xpat/de
69 %lang(fr) %{_datadir}/xpat/fr
70 %lang(it) %{_datadir}/xpat/it
71 %lang(ru) %{_datadir}/xpat/ru
73 %attr(755,root,root) %{_bindir}/xpat2
74 %{_libdir}/X11/app-defaults/XPat
75 %lang(de) %{_libdir}/X11/app-defaults/de/XPat
76 %lang(fr) %{_libdir}/X11/app-defaults/fr/XPat
77 %lang(it) %{_libdir}/X11/app-defaults/it/XPat
78 %lang(ru) %{_libdir}/X11/app-defaults/ru/XPat
79 %config(noreplace) %{_applnkdir}/Games/xpat2.desktop