X-Git-Url: http://git.pld-linux.org/?p=packages%2Fboson.git;a=blobdiff_plain;f=boson.spec;h=68fad042672e0921b753c41d8ec6694b008cc754;hp=a3049e265f8cb7dab53dcc32cfb013967ec4a76e;hb=5a41b8c8d931e7dee0c5e2d772b670c8d1b2825b;hpb=677160c8eaef899d5258b1dabe7b41a102bd0a54 diff --git a/boson.spec b/boson.spec index a3049e2..68fad04 100644 --- a/boson.spec +++ b/boson.spec @@ -1,70 +1,78 @@ -Summary: Boson : a Real-Time Strategy Game (RTS) for the KDE project -Name: boson -Version: 0.2 -Release: 1 +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.6.1 +Release: 3 License: GPL -Group: X11/KDE/Games -Source0: boson-%{version}.tgz -Source1: boson-pics-%{version}.tgz +Group: X11/Applications/Games +Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-all-%{version}.tar.bz2 +# Source0-md5: a8a1f40fde64d5e03d22b3d10cc16198 +Patch0: %{name}-desktop.patch Icon: boson.xpm -URL: http://aquila.rezel.enst.fr/boson/ -BuildRoot: /tmp/%{name}-%{version}-root +URL: http://boson.sourceforge.net/ +BuildRequires: arts-devel +BuildRequires: kdegames-devel >= 3.0.3 +BuildRequires: kdelibs-devel >= 3.0.3 +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 still in very early -development and not playable yet. +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 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 -Boson jest gr± strategiczn± rozgrywan± w czsie 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/. +%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æ. %prep -%setup -q -%build -CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ - --prefix=$KDEDIR \ - --libdir=%{buildroot}/$KDEDIR/lib \ - --with-install-root=%{buildroot} -make +%setup -q -n %{name} +%patch0 -p1 +%build +kde_icondir=%{_pixmapsdir}; export kde_icondir +kde_htmldir=%{_htmldir}; export kde_htmldir +%configure \ + --disable-rpath \ + --enable-final + +# %{__make} Fails becuse after including many QT headers gcc is unable to find :/ +mv map map.foo +cd boson +%{__make} +cd .. +mv map.foo map +%{__make} %install -if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT ; fi -make prefix=$RPM_BUILD_ROOT%{prefix} install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT ## install textures and resources files : -mkdir $RPM_BUILD_ROOT%{prefix}/share/apps/ -cd $RPM_BUILD_ROOT%{prefix}/share/apps/ -cp $RPM_SOURCE_DIR/boson-pics-%{version}.tgz . -gunzip boson-pics-%{version}.tgz -tar xvf boson-pics-%{version}.tar -rm boson-pics-%{version}.tar +#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 -rf %{builddir} -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT -#rm -f $RPM_SOURCE_DIR/boson* +rm -rf $RPM_BUILD_ROOT -%files -%{prefix}/bin/ -%{prefix}/share/applnk/ -%{prefix}/share/apps/ -%{prefix}/share/icons/ -%doc %{prefix}/share/doc/HTML/en/Boson/ -%doc AUTHORS COPYING ChangeLog INSTALL README TODO +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog README TODO +%attr(755,root,root) %{_bindir}/* +%{_applnkdir}/Games/Strategy/*.desktop +%{_datadir}/apps/boson +%{_pixmapsdir}/boson.png