]> git.pld-linux.org Git - packages/xpat2.git/blob - xpat2.spec
- release 7: move desktop file to Games/Card/.
[packages/xpat2.git] / xpat2.spec
1 Summary:        A set of Solitaire type games for the X Window System
2 Summary(es):    X Patience - varios juegos de cartas
3 Summary(pl):    Zestaw pasjansów dla X Window System
4 Summary(pt_BR): X Patience - vários jogos de cartas
5 Name:           xpat2
6 Version:        1.07
7 Release:        7
8 License:        distributable - most of it GPL
9 Group:          X11/Applications/Games
10 Group(de):      X11/Applikationen/Spiele
11 Group(pl):      X11/Aplikacje/Gry
12 Source0:        ftp://metalab.unc.edu/pub/Linux/games/solitaires/%{name}-%{version}-src.tar.gz
13 Source1:        %{name}.desktop
14 Source2:        %{name}.png
15 Patch0:         %{name}-paths.patch
16 Patch1:         %{name}-qt-locales.patch
17 BuildRequires:  tetex-dvips
18 BuildRequires:  tetex-latex
19 BuildRequires:  XFree86-devel
20 BuildRequires:  qt-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _prefix         /usr/X11R6
24 %define         _mandir         %{_prefix}/man
25
26 %description
27 Xpat2 is a generic patience or Solitaire game for the X Window System.
28 Xpat2 can be used with different rules sets, so it can be used to play
29 Spider, Klondike, and other card games.
30
31 %description -l es
32 %description -l pl
33 Xpat2 jest zestawem pasjansów dla X Window.
34
35 %description -l pt_BR
36 Em 1989, Dave Lemke, Heather Rose, Donald R. Woods e a Sun
37 Microsystems, Inc., criaram o jogo de paciência xsol (também conhecido
38 como klondike no DOS) e as regras de alguns outros jogos de paciência.
39 As características principais são variáveis com conjuntos de regras e
40 diferentes conjuntos de cartas para diferentes resoluções de
41 monitores. xpat2 (X Patience) é uma coleção destes variados jogos de
42 paciência que irão realmente "testar a sua paciência".
43
44 %prep
45 %setup -q
46 %patch0 -p1
47 %patch1 -p1
48
49 %build
50 cd lib
51 mv -f german de
52 mv -f french fr
53 mv -f italian it
54 mv -f russian ru
55 rm -f de_DE fr_FR it_IT
56 cd ../src
57 xmkmf
58 %{__make} CCOPTIONS="%{rpmcflags}" CXXOPTIONS="%{rpmcflags}"
59
60 cd ..
61 %{__make} manual
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games/Card,%{_pixmapsdir}}
66
67 %{__make} DESTDIR=$RPM_BUILD_ROOT install
68
69 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Card
70 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
71
72 gzip -9nf README doc/xpat2.ps
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc README.gz doc/xpat2.ps.gz
80 %dir %{_datadir}/xpat
81 %{_datadir}/xpat/???*
82 %lang(de) %{_datadir}/xpat/de
83 %lang(fr) %{_datadir}/xpat/fr
84 %lang(it) %{_datadir}/xpat/it
85 %lang(ru) %{_datadir}/xpat/ru
86 %{_mandir}/man6/*
87 %attr(755,root,root) %{_bindir}/xpat2
88 %{_libdir}/X11/app-defaults/XPat
89 %lang(de) %{_libdir}/X11/app-defaults/de/XPat
90 %lang(fr) %{_libdir}/X11/app-defaults/fr/XPat
91 %lang(it) %{_libdir}/X11/app-defaults/it/XPat
92 %lang(ru) %{_libdir}/X11/app-defaults/ru/XPat
93 %config(noreplace) %{_applnkdir}/Games/Card/xpat2.desktop
94 %{_pixmapsdir}/*
This page took 0.031201 seconds and 4 git commands to generate.