X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=boson.spec;h=a14352e300a844aadbd2aa6989101824737fc687;hb=HEAD;hp=610638164bd6981dc9fe740e50f8e8dc3ad1a02f;hpb=1f15ea7eb510cc3c7585550acae4f6892fb3fa40;p=packages%2Fboson.git diff --git a/boson.spec b/boson.spec index 6106381..a14352e 100644 --- a/boson.spec +++ b/boson.spec @@ -1,70 +1,79 @@ -Summary: Boson : a Real-Time Strategy Game (RTS) for the KDE project -Name: boson -Version: 0.2 -Release: 1 +# +# TODO: +# - fix icon installation (probably somewhere in KDE3Macros.cmake) +# +Summary: Boson: a Real-Time Strategy Game (RTS) for the KDE project +Summary(pl.UTF-8): Boson: gra strategiczna w czasie rzeczywistym dla KDE +Name: boson +Version: 0.13 +Release: 0.1 License: GPL -Group: X11/KDE/Games -Group(pl): X11/KDE/Gry -Source0: boson-%{version}.tgz -Source1: boson-pics-%{version}.tgz -Icon: boson.xpm -URL: http://aquila.rezel.enst.fr/boson/ +Group: X11/Applications/Games +Source0: http://dl.sourceforge.net/boson/%{name}-all-%{version}.tar.bz2 +# Source0-md5: 1b91bbdda1ff81d4d60f80c8175d974b +Patch0: %{name}-ugly_install_workround.patch +URL: http://boson.sourceforge.net/ +BuildRequires: arts-devel +BuildRequires: cmake >= 2.4.0 +BuildRequires: kdegames-devel >= 8:3.2 +BuildRequires: kdelibs-devel >= 9:3.2 +BuildRequires: lib3ds-devel +BuildRequires: rpmbuild(macros) >= 1.293 +Requires: arts-X11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _mandir %{_prefix}/man - %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 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.UTF-8 +Boson jest grą strategiczną rozgrywaną w czasie rzeczywistym, tak jak +Command&Conquer czy StarCraft. Został zaprojektowany dla maszyn +uniksowych (linuksowych); używa 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 +%setup -q -c +%patch0 -p1 + %build -CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ - --prefix=$KDEDIR \ - --libdir=%{buildroot}/$KDEDIR/lib \ - --with-install-root=%{buildroot} -make +%cmake \ +%if "%{_lib}" == "lib64" + -DLIB_SUFFIX=64 \ +%endif + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DHTML_INSTALL_DIR=%{_kdedocdir} \ + %{name}-all-%{version} + +%{__make} %install rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT%{_prefix} install -## install textures and resources files : -mkdir $RPM_BUILD_ROOT%{_datadir}/apps/ -cd $RPM_BUILD_ROOT%{_datadir}/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 +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{32x32,48x48}/apps +install %{name}-all-%{version}/code/boson/data/hi32-app-boeditor.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/boeditor.png +install %{name}-all-%{version}/code/boson/data/hi32-app-boson.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/boson.png +install %{name}-all-%{version}/code/boson/data/hi48-app-boeditor.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/boeditor.png +install %{name}-all-%{version}/code/boson/data/hi48-app-boson.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/boson.png +mv -f boson-all-0.13/data/{AUTHORS,ChangeLog,README} . %clean -rm -f $RPM_SOURCE_DIR +rm -rf $RPM_BUILD_ROOT -%files +%files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/ -%{_applnkdir}/ -%{_datadir}/apps/ -%{_datadir}/icons/ -%doc %{_datadir}/doc/HTML/en/Boson/ -%doc AUTHORS COPYING ChangeLog INSTALL README TODO +%doc AUTHORS ChangeLog README +%attr(755,root,root) %{_bindir}/* +%{_datadir}/apps/boson +%{_desktopdir}/*.desktop +%{_datadir}/config/* +%{_iconsdir}/hicolor/*/*/* +%dir %{_libdir}/kde3/plugins/boson +%attr(755,root,root) %{_libdir}/kde3/plugins/boson/*.so*