X-Git-Url: http://git.pld-linux.org/?p=packages%2Fboson.git;a=blobdiff_plain;f=boson.spec;h=27e4a2524f37ef264b4d469b53fc3492aaa89af2;hp=0eda30333f9c31b26439984038cecf72a832c3f9;hb=900d1f11fc62f427161787a34c7ca4c3cd8027a1;hpb=b0bc7c57827d8365c71aa72378effc55a0019a4c diff --git a/boson.spec b/boson.spec index 0eda303..27e4a25 100644 --- a/boson.spec +++ b/boson.spec @@ -1,81 +1,74 @@ 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: 2 +Version: 0.13 +Release: 0.1 License: GPL Group: X11/Applications/Games -Source0: http://telia.dl.sourceforge.net/sourceforge/boson/%{name}-all-%{version}.tar.bz2 -Icon: boson.xpm +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: kdegames-devel >= 3.0.3 -BuildRequires: kdelibs-devel >= 3.0.3 +BuildRequires: cmake >= 2.4.0 +BuildRequires: kdegames-devel >= 3.1 +BuildRequires: kdelibs-devel >= 3.1 +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 -%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 +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æ. 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 -n %{name} +%setup -q -c +%patch0 -p1 %build -kde_icondir=%{_pixmapsdir}; export kde_icondir -kde_htmldir=%{_htmldir}; export kde_htmldir -%configure \ - --with-install-root=%{buildroot} - -# %{__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 +%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} install DESTDIR=$RPM_BUILD_ROOT -## install textures and resources files : -#install -d $RPM_BUILD_ROOT%{_datadir}/apps +%{__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 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc AUTHORS ChangeLog README TODO +%doc boson-all-0.13/data/AUTHORS boson-all-0.13/data/ChangeLog boson-all-0.13/data/README %attr(755,root,root) %{_bindir}/* -%{_htmldir}/en/boson -%{_applnkdir}/Games/TacticStrategy/*.desktop -%{_datadir}/apps/boson/bosonui.rc -%{_datadir}/apps/boson/themes -%{_datadir}/apps/boson/map -%{_datadir}/apps/boson/music/*/* -%{_datadir}/apps/boson/pics/*.png -%{_pixmapsdir}/*/*/apps/boson.png +%{_datadir}/apps/boson +%{_desktopdir}/*.desktop +%{_datadir}/config/* +%{_iconsdir}/hicolor/*/*/* +%dir %{_libdir}/kde3/plugins/boson +%attr(755,root,root) %{_libdir}/kde3/plugins/boson/*.so*