]> git.pld-linux.org Git - packages/boson.git/blobdiff - boson.spec
- requires arts-X11
[packages/boson.git] / boson.spec
index c744f2773511403a66c58b9b4475f80f1bc95e93..0eda30333f9c31b26439984038cecf72a832c3f9 100644 (file)
@@ -1,18 +1,22 @@
-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:       2
 License:       GPL
-Group:         X11/KDE/Games
-Group(pl):     X11/KDE/Gry
-Source0:       boson-%{version}.tgz
-Source1:       boson-pics-%{version}.tgz
+Group:         X11/Applications/Games
+Source0:       http://telia.dl.sourceforge.net/sourceforge/boson/%{name}-all-%{version}.tar.bz2
 Icon:          boson.xpm
-URL:           http://aquila.rezel.enst.fr/boson/
+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
@@ -27,7 +31,7 @@ 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
+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
@@ -37,34 +41,41 @@ GNU. Aby dowiedzie
 stronê WWW: http://aquila.rezel.enst.fr/boson/.
 
 %prep
-%setup -q
+%setup -q -n %{name}
+
 %build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
-              --prefix=$KDEDIR \
-              --libdir=%{buildroot}/$KDEDIR/lib \
- --with-install-root=%{buildroot}
+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 <map> :/
+mv map map.foo
+cd boson
+%{__make}
+cd ..
+mv map.foo 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 :
-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
+#install -d $RPM_BUILD_ROOT%{_datadir}/apps
 
 %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 TODO
+%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
This page took 0.0716 seconds and 4 git commands to generate.