]> git.pld-linux.org Git - packages/xpat2.git/blob - xpat2.spec
- desktop files cleaning: conversion to UTF-8, pl translations, names
[packages/xpat2.git] / xpat2.spec
1 Summary:        A set of Solitaire type games for the X Window System.
2 Name:           xpat2
3 Version:        1.07
4 Release:        1
5 Copyright:      distributable - most of it GPL
6 Group:          Games
7 Source0:        ftp://metalab.unc.edu/pub/Linux/games/solitaires/%{name}-%{version}-src.tar.gz
8 Source1:        %{name}.desktop
9 Source2:        %{name}.png
10 Patch0:         %{name}-qt-path.patch
11 # Patch0:               %{name}-1.03-fsstnd.patch
12 # Patch1:               %{name}.nomkdirhier.patch
13 # Patch2:               %{name}-1.06-nochown.patch
14 BuildPrereq:    tetex-dvips, tetex, tetex-latex, XFree86-devel, glibc-devel
15 BuildRequires:  qt-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _prefix         /usr/X11R6
19 %define         _mandir         %{_prefix}/man
20
21 %description
22 Xpat2 is a generic patience or Solitaire game for the X Window System.
23 Xpat2 can be used with different rules sets, so it can be used to play
24 Spider, Klondike, and other card games.
25
26 %prep
27 %setup -q
28 %patch -p0
29 #%patch1 -p0 -b .nobr
30 #%patch2 -p1 -b .nochown
31
32 %build
33 export PATH=%{_bindir}/X11:$PATH
34 %{__make}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_applnkdir}/Games
39 install -d $RPM_BUILD_ROOT%{_bindir}
40 install -d $RPM_BUILD_ROOT%{_libdir}/games/xpat
41 install -d $RPM_BUILD_ROOT%{_mandir}/man6
42 install -d $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/{italian,german,russian,french}/app-defaults
43 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
44
45 %{__make} DESTDIR=$RPM_BUILD_ROOT install
46
47 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
48 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc README doc/xpat2.tex
56 %{_libdir}/games/xpat
57 %{_mandir}/*/*
58 %attr(755,root,root) %{_bindir}/xpat2
59 %{_prefix}/lib/X11/app-defaults/XPat
60 %config(noreplace) %{_applnkdir}/Games/xpat2.desktop
61 %{_pixmapsdir}/*
This page took 0.078139 seconds and 3 git commands to generate.