]>
Commit | Line | Data |
---|---|---|
363f164d WF |
1 | %define _state stable |
2 | %define orgname kajongg | |
3 | %define qtver 4.8.0 | |
4 | ||
5 | Summary: kajongg | |
6 | Name: kde4-kajongg | |
7 | Version: 4.12.0 | |
8 | Release: 1 | |
9 | License: GPL | |
10 | Group: X11/Applications/Games | |
11 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz | |
12 | # Source0-md5: 27b66e849937ba74df99cdc2e41c7a90 | |
13 | BuildRequires: automoc4 >= 0.9.88 | |
14 | BuildRequires: cmake >= 2.8.0 | |
15 | BuildRequires: kde4-kdelibs-devel >= %{version} | |
16 | BuildRequires: kde4-libkdegames-devel >= %{version} | |
17 | BuildRequires: phonon-devel >= 4.3.80 | |
18 | BuildRequires: python-PyKDE4 | |
19 | BuildRequires: python-TwistedCore | |
20 | BuildRequires: qt4-build >= %{qtver} | |
21 | BuildRequires: qt4-qmake >= %{qtver} | |
22 | BuildRequires: rpmbuild(macros) >= 1.600 | |
23 | Requires: python-TwistedCore | |
24 | Obsoletes: kde4-kdegames-kajongg | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Kajongg. | |
29 | ||
30 | %prep | |
31 | %setup -q -n %{orgname}-%{version} | |
32 | ||
33 | %build | |
34 | install -d build | |
35 | cd build | |
36 | %cmake \ | |
37 | ../ | |
38 | ||
39 | %{__make} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} -C build install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT \ | |
46 | kde_htmldir=%{_kdedocdir} | |
47 | ||
48 | install -d $RPM_BUILD_ROOT/var/games | |
363f164d WF |
49 | # remove locolor icons |
50 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %post -p /sbin/ldconfig | |
56 | %postun -p /sbin/ldconfig | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %attr(755,root,root) %{_bindir}/kajongg | |
61 | %attr(755,root,root) %{_bindir}/kajonggserver | |
62 | #%attr(755,root,root) %{_libdir}/libkcardgame.so | |
63 | %{_desktopdir}/kde4/kajongg.desktop | |
64 | %{_datadir}/apps/kajongg | |
65 | %{_kdedocdir}/en/kajongg | |
66 | %{_iconsdir}/hicolor/*x*/apps/kajongg.png | |
67 | %{_iconsdir}/hicolor/scalable/apps/kajongg.svgz | |
68 | %{_iconsdir}/hicolor/scalable/actions/games-kajongg-law.svgz |