summaryrefslogtreecommitdiff
path: root/xmahjongg.spec
blob: c0bd6a987686593f61ae869a95272796ae05afc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Summary:	Colorful X solitaire Mah Jongg game
Summary(pl):	Komputerowy Madżong
Name:		xmahjongg
Version:	3.6.1
Release:	2
License:	GPL
Vendor:		Little Cambridgeport Design Factory
Group:		X11/Applications/Games
Source0:	http://www.lcdf.org/xmahjongg/%{name}-%{version}.tar.gz
# Source0-md5:	d8367caefbdae8e10c48593d17c342ae
Source1:	%{name}.desktop
Source2:	%{name}.png
Patch0:		%{name}-DESTDIR.patch
URL:		http://www.lcdf.org/xmahjongg/
BuildRequires:	XFree86-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libstdc++-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Real Mah Jongg is a social game that originated in China thousands of
years ago. Four players, named after the four winds, take tiles from a
wall in turn. The best tiles are made of ivory and wood; they click
pleasantly when you knock them together. Computer Solitaire Mah Jongg
(xmahjongg being one of the sillier examples) is nothing like that but
it's fun, or it must be, since there are like 300 shareware versions
available for Windows. This is for X11 and it's free.

%description -l pl
Stara, chińska gra logiczna. Powstała ona w starożytnym Państwie
Środka, a jej historia sięga chińskiej dynastii Zachodniego Chou,
czyli ok. 720 roku n.e. Podobnie jak większość gier karcianych tak i
madżong rozwijał się niezależnie w różnych okręgach i prowincjach
dawnych Chin, zyskując niezliczone odmiany dla różnej liczby
grających. Ta wersja przeznaczona jest dla jednej osoby i zawiera
kilka różnych zestawów klocków (dorothys, gnome, gnome2, real, thick,
dorwhite, small, thin). Wywołuje się je za pomocą parametru '-t'.

%prep
%setup -q
%patch0 -p1

%build
%{__aclocal}
%{__autoheader}
%{__autoconf}
%{__automake}
%configure

%{__make}

%install
rm -rf $RPM_BUILD_ROOT

install $RPM_BUILD_ROOT{%{_desktopsdir},%{_pixmapsdir}}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopsdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc NEWS README
%attr(755,root,root) %{_bindir}/xmahjongg
%{_mandir}/man6/xmahjongg.6*
%{_datadir}/%{name}