]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - fix icon installation (probably somewhere in KDE3Macros.cmake) | |
4 | # | |
5 | Summary: Boson: a Real-Time Strategy Game (RTS) for the KDE project | |
6 | Summary(pl.UTF-8): Boson: gra strategiczna w czasie rzeczywistym dla KDE | |
7 | Name: boson | |
8 | Version: 0.13 | |
9 | Release: 0.1 | |
10 | License: GPL | |
11 | Group: X11/Applications/Games | |
12 | Source0: http://dl.sourceforge.net/boson/%{name}-all-%{version}.tar.bz2 | |
13 | # Source0-md5: 1b91bbdda1ff81d4d60f80c8175d974b | |
14 | Patch0: %{name}-ugly_install_workround.patch | |
15 | URL: http://boson.sourceforge.net/ | |
16 | BuildRequires: arts-devel | |
17 | BuildRequires: cmake >= 2.4.0 | |
18 | BuildRequires: kdegames-devel >= 8:3.2 | |
19 | BuildRequires: kdelibs-devel >= 9:3.2 | |
20 | BuildRequires: lib3ds-devel | |
21 | BuildRequires: rpmbuild(macros) >= 1.293 | |
22 | Requires: arts-X11 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Boson is a real-time strategy game, like Command&Conquer(tm) or | |
27 | StarCraft(tm). It is designed to run on Unix (Linux) computers and | |
28 | uses the Qt Toolkit and QwSpriteField. A minimum of two players is | |
29 | required, since there is no artificial intelligence (yet?). Boson is | |
30 | still in very early development and not playable yet. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Boson jest grą strategiczną rozgrywaną w czasie rzeczywistym, tak jak | |
34 | Command&Conquer czy StarCraft. Został zaprojektowany dla maszyn | |
35 | uniksowych (linuksowych); używa biblioteki Qt i QwSpriteField. Wymaga | |
36 | się co najmniej dwóch graczy, ponieważ brak (jeszcze?) sztucznej | |
37 | inteligencji. Boson jest wciąż w fazie wczesnego rozwoju i nie da się | |
38 | jeszcze w niego grać. | |
39 | ||
40 | %prep | |
41 | %setup -q -c | |
42 | %patch0 -p1 | |
43 | ||
44 | %build | |
45 | %cmake \ | |
46 | %if "%{_lib}" == "lib64" | |
47 | -DLIB_SUFFIX=64 \ | |
48 | %endif | |
49 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
50 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
51 | %{name}-all-%{version} | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{32x32,48x48}/apps | |
61 | install %{name}-all-%{version}/code/boson/data/hi32-app-boeditor.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/boeditor.png | |
62 | install %{name}-all-%{version}/code/boson/data/hi32-app-boson.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/boson.png | |
63 | install %{name}-all-%{version}/code/boson/data/hi48-app-boeditor.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/boeditor.png | |
64 | install %{name}-all-%{version}/code/boson/data/hi48-app-boson.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/boson.png | |
65 | mv -f boson-all-0.13/data/{AUTHORS,ChangeLog,README} . | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc AUTHORS ChangeLog README | |
73 | %attr(755,root,root) %{_bindir}/* | |
74 | %{_datadir}/apps/boson | |
75 | %{_desktopdir}/*.desktop | |
76 | %{_datadir}/config/* | |
77 | %{_iconsdir}/hicolor/*/*/* | |
78 | %dir %{_libdir}/kde3/plugins/boson | |
79 | %attr(755,root,root) %{_libdir}/kde3/plugins/boson/*.so* |