]> git.pld-linux.org Git - packages/boson.git/blob - boson.spec
bf6c76685742556cb0a2a764eb36183d990c8efe
[packages/boson.git] / boson.spec
1 Summary:        Boson: a Real-Time Strategy Game (RTS) for the KDE project
2 Summary(pl):    Boson: gra strategiczna w czasie rzeczywistym dla KDE
3 Name:           boson
4 Version:        0.6.1
5 Release:        3
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/sourceforge/%{name}/%{name}-all-%{version}.tar.bz2
9 # Source0-md5:  a8a1f40fde64d5e03d22b3d10cc16198
10 Patch0:         %{name}-desktop.patch
11 Patch1:         %{name}-qptrdict_h.patch
12 Icon:           boson.xpm
13 URL:            http://boson.sourceforge.net/
14 BuildRequires:  arts-devel
15 BuildRequires:  kdegames-devel >= 3.0.3
16 BuildRequires:  kdelibs-devel >= 3.0.3
17 Requires:       arts-X11
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _htmldir        %{_docdir}/kde/HTML
21
22 %description
23 Boson is a real-time strategy game, like Command&Conquer(tm) or
24 StarCraft(tm). It is designed to run on Unix (Linux) computers and
25 uses the Qt Toolkit and QwSpriteField. A minimum of two players is
26 required, since there is no artificial intelligence (yet?). Boson is
27 still in very early development and not playable yet.
28
29 %description -l pl
30 Boson jest gr± strategiczn± rozgrywan± w czasie rzeczywistym, tak jak
31 Command&Conquer czy StarCraft. Zosta³ zaprojektowany dla maszyn
32 uniksowych (linuksowych); uzywa biblioteki Qt i QwSpriteField. Wymaga
33 siê co najmniej dwóch graczy, poniewa¿ brak (jeszcze?) sztucznej
34 inteligencji. Boson jest wci±¿ w fazie wczesnego rozwoju i nie da siê
35 jeszcze w niego graæ.
36
37 %prep
38 %setup -q -n %{name}
39 %patch0 -p1
40 %patch1 -p1
41
42 %build
43 kde_icondir=%{_pixmapsdir}; export kde_icondir
44 kde_htmldir=%{_htmldir}; export kde_htmldir
45 %configure \
46         --disable-rpath \
47         --enable-final
48
49 # %{__make} Fails becuse after including many QT headers gcc is unable to find <map> :/
50 mv ./data/map ./data/map.foo
51 cd boson
52 %{__make}
53 cd ..
54 mv ./data/map.foo ./data/map
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 ## install textures and resources files :
64 #install -d $RPM_BUILD_ROOT%{_datadir}/apps
65
66 mv -f $RPM_BUILD_ROOT%{_applnkdir}/Games/{TacticStrategy,Strategy}
67 mv -f $RPM_BUILD_ROOT%{_pixmapsdir}/{hicolor/48x48/apps/,}boson.png
68
69 %find_lang %{name} --with-kde
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files -f %{name}.lang
75 %defattr(644,root,root,755)
76 %doc AUTHORS ChangeLog README TODO
77 %attr(755,root,root) %{_bindir}/*
78 %{_applnkdir}/Games/Strategy/*.desktop
79 %{_datadir}/apps/boson
80 %{_pixmapsdir}/boson.png
This page took 0.022736 seconds and 2 git commands to generate.