]>
Commit | Line | Data |
---|---|---|
263efd3d | 1 | # |
2 | # TODO: | |
3 | # - fix icon installation (probably somewhere in KDE3Macros.cmake) | |
263efd3d | 4 | # |
03df381a | 5 | Summary: Boson: a Real-Time Strategy Game (RTS) for the KDE project |
e62a646c | 6 | Summary(pl.UTF-8): Boson: gra strategiczna w czasie rzeczywistym dla KDE |
c29f9d9f | 7 | Name: boson |
900d1f11 | 8 | Version: 0.13 |
ff20cb01 | 9 | Release: 0.1 |
f1199096 | 10 | License: GPL |
383bede4 | 11 | Group: X11/Applications/Games |
db6a4c6a | 12 | Source0: http://dl.sourceforge.net/boson/%{name}-all-%{version}.tar.bz2 |
900d1f11 | 13 | # Source0-md5: 1b91bbdda1ff81d4d60f80c8175d974b |
14 | Patch0: %{name}-ugly_install_workround.patch | |
6b81d176 | 15 | URL: http://boson.sourceforge.net/ |
40b8fe05 | 16 | BuildRequires: arts-devel |
900d1f11 | 17 | BuildRequires: cmake >= 2.4.0 |
263efd3d | 18 | BuildRequires: kdegames-devel >= 8:3.2 |
19 | BuildRequires: kdelibs-devel >= 9:3.2 | |
ff20cb01 | 20 | BuildRequires: lib3ds-devel |
900d1f11 | 21 | BuildRequires: rpmbuild(macros) >= 1.293 |
b0bc7c57 | 22 | Requires: arts-X11 |
9ad5e9df | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f1199096 | 24 | |
36d24f82 | 25 | %description |
f1199096 | 26 | Boson is a real-time strategy game, like Command&Conquer(tm) or |
1f15ea7e | 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 | |
94ef520f | 29 | required, since there is no artificial intelligence (yet?). Boson is |
1f15ea7e | 30 | still in very early development and not playable yet. |
36d24f82 | 31 | |
3ec14d3f JR |
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ć. | |
677160c8 | 39 | |
36d24f82 | 40 | %prep |
900d1f11 | 41 | %setup -q -c |
42 | %patch0 -p1 | |
c29f9d9f | 43 | |
36d24f82 | 44 | %build |
900d1f11 | 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} | |
3bbc2cbf | 52 | |
55808fcc | 53 | %{__make} |
36d24f82 | 54 | |
36d24f82 | 55 | %install |
1f15ea7e | 56 | rm -rf $RPM_BUILD_ROOT |
371f1cb1 | 57 | |
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
900d1f11 | 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 | |
75797b45 | 65 | mv -f boson-all-0.13/data/{AUTHORS,ChangeLog,README} . |
371f1cb1 | 66 | |
36d24f82 | 67 | %clean |
c29f9d9f | 68 | rm -rf $RPM_BUILD_ROOT |
36d24f82 | 69 | |
900d1f11 | 70 | %files |
1f15ea7e | 71 | %defattr(644,root,root,755) |
75797b45 | 72 | %doc AUTHORS ChangeLog README |
03df381a | 73 | %attr(755,root,root) %{_bindir}/* |
371f1cb1 | 74 | %{_datadir}/apps/boson |
900d1f11 | 75 | %{_desktopdir}/*.desktop |
d603b77b | 76 | %{_datadir}/config/* |
77 | %{_iconsdir}/hicolor/*/*/* | |
78 | %dir %{_libdir}/kde3/plugins/boson | |
30911ddf | 79 | %attr(755,root,root) %{_libdir}/kde3/plugins/boson/*.so* |