X-Git-Url: http://git.pld-linux.org/?p=packages%2Fboson.git;a=blobdiff_plain;f=boson.spec;h=d128d46feb264b9ae04772098c2ed66648a4b33d;hp=f74ef65ee1f120f587be110f3c7fa98f40ecc72a;hb=ff20cb019929a715d86662963174e02cd2718b5d;hpb=c6faf19a3f7a68967aaaadebe544f576a07fa9b0 diff --git a/boson.spec b/boson.spec index f74ef65..d128d46 100644 --- a/boson.spec +++ b/boson.spec @@ -1,66 +1,83 @@ Summary: Boson: a Real-Time Strategy Game (RTS) for the KDE project Summary(pl): Boson: gra strategiczna w czasie rzeczywistym dla KDE -Name: boson -Version: 0.5 -Release: 1 +Name: boson +Version: 0.10 +Release: 0.1 License: GPL Group: X11/Applications/Games -Group(de): X11/Aplikacje/Spiele -Group(pl): X11/Aplikacje/Gry -Source0: http://prdownloads.sourceforge.net/boson/%{name}-%{version}.tar.bz2 -Source1: http://prdownloads.sourceforge.net/boson/%{name}-pics-%{version}.tgz +Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-all-%{version}.tar.bz2 +# Source0-md5: e54b1a3f1f140412597d4df296522bde +Patch0: %{name}-desktop.patch +Patch1: %{name}-python.patch Icon: boson.xpm URL: http://boson.sourceforge.net/ +BuildRequires: arts-devel +BuildRequires: kdegames-devel >= 3.0.3 +BuildRequires: kdelibs-devel >= 3.0.3 +BuildRequires: lib3ds-devel +Requires: arts-X11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _mandir %{_prefix}/man +%define _htmldir %{_docdir}/kde/HTML %description Boson is a real-time strategy game, like Command&Conquer(tm) or StarCraft(tm). It is designed to run on Unix (Linux) computers and uses the Qt Toolkit and QwSpriteField. A minimum of two players is -required, since there is no artifical intelligence (yet?). Boson is +required, since there is no artificial intelligence (yet?). Boson is still in very early development and not playable yet. -Boson's Code and Graphics are published under the GNU General Public -License. - -If you want to know more about Boson, have a look at the Web site. - %description -l pl Boson jest gr± strategiczn± rozgrywan± w czasie rzeczywistym, tak jak Command&Conquer czy StarCraft. Zosta³ zaprojektowany dla maszyn uniksowych (linuksowych); uzywa biblioteki Qt i QwSpriteField. Wymaga siê co najmniej dwóch graczy, poniewa¿ brak (jeszcze?) sztucznej inteligencji. Boson jest wci±¿ w fazie wczesnego rozwoju i nie da siê -jeszcze w niego graæ. Kod i grafika Bosona s± na powszechnej licencji -GNU. Aby dowiedzieæ siê wiêcej na temat Bosona, nale¿y zajrzeæ na -stronê WWW: http://aquila.rezel.enst.fr/boson/. +jeszcze w niego graæ. %prep -%setup -q +%setup -q -n %{name}-all-%{version} +%patch0 -p1 +%patch1 -p1 + %build -%configure2_13 \ - --with-install-root=%{buildroot} +kde_icondir=%{_pixmapsdir}; export kde_icondir +kde_htmldir=%{_htmldir}; export kde_htmldir +%configure \ + --host=%{_host}\ + --target=%{_target_platform} \ + --disable-rpath \ + --enable-final + +# %{__make} Fails becuse after including many QT headers gcc is unable to find :/ +#mv ./data/map ./data/map.foo +#cd boson +#%{__make} +#cd .. +#mv ./data/map.foo ./data/map %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT ## install textures and resources files : -install -d $RPM_BUILD_ROOT%{_datadir}/apps -tar xzf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir}/apps +#install -d $RPM_BUILD_ROOT%{_datadir}/apps + +mv -f $RPM_BUILD_ROOT%{_applnkdir}/Games/{TacticStrategy,Strategy} +mv -f $RPM_BUILD_ROOT%{_pixmapsdir}/{hicolor/48x48/apps/,}boson.png + +%find_lang %{name} --with-kde %clean -rm -f $RPM_SOURCE_DIR +rm -rf $RPM_BUILD_ROOT -%files +%files -f %{name}.lang %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/* -%{_applnkdir}/* -%{_datadir}/apps/ -%{_datadir}/icons/* -%doc %{_datadir}/doc/HTML/en/Boson/ %doc AUTHORS ChangeLog README TODO +%attr(755,root,root) %{_bindir}/* +%{_applnkdir}/Games/Strategy/*.desktop +%{_datadir}/apps/boson +%{_pixmapsdir}/boson.png