X-Git-Url: http://git.pld-linux.org/?p=packages%2Fboson.git;a=blobdiff_plain;f=boson.spec;h=a14352e300a844aadbd2aa6989101824737fc687;hp=357217a63c4912b8ad48e571cea2decb717ab827;hb=e62a646c6e71adce82591a30e3af8b9f221ef8fd;hpb=d603b77b5c490857e2efb32669619c3a5d90478f diff --git a/boson.spec b/boson.spec index 357217a..a14352e 100644 --- a/boson.spec +++ b/boson.spec @@ -1,21 +1,24 @@ +# +# TODO: +# - fix icon installation (probably somewhere in KDE3Macros.cmake) +# Summary: Boson: a Real-Time Strategy Game (RTS) for the KDE project -Summary(pl): Boson: gra strategiczna w czasie rzeczywistym dla KDE +Summary(pl.UTF-8): Boson: gra strategiczna w czasie rzeczywistym dla KDE Name: boson -Version: 0.10 +Version: 0.13 Release: 0.1 License: GPL Group: X11/Applications/Games Source0: http://dl.sourceforge.net/boson/%{name}-all-%{version}.tar.bz2 -# Source0-md5: e54b1a3f1f140412597d4df296522bde -Patch0: %{name}-desktop.patch -Patch1: %{name}-python.patch -Icon: boson.xpm +# 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 >= 8:3.2 +BuildRequires: kdelibs-devel >= 9:3.2 BuildRequires: lib3ds-devel -BuildRequires: rpmbuild(macros) >= 1.129 +BuildRequires: rpmbuild(macros) >= 1.293 Requires: arts-X11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -26,24 +29,26 @@ 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. -%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æ. +%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 -n %{name}-all-%{version} -%patch0 -p1 -%patch1 -p1 +%setup -q -c +%patch0 -p1 %build -kde_htmldir=%{_kdedocdir}; export kde_htmldir -%configure \ - --disable-rpath \ - --with-xinerama +%cmake \ +%if "%{_lib}" == "lib64" + -DLIB_SUFFIX=64 \ +%endif + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DHTML_INSTALL_DIR=%{_kdedocdir} \ + %{name}-all-%{version} %{__make} @@ -52,27 +57,23 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT - -mv -f $RPM_BUILD_ROOT%{_datadir}/applnk/Games/TacticStrategy/boson \ - $RPM_BUILD_ROOT%{_desktopdir} - -%find_lang %{name} --with-kde +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 -rf $RPM_BUILD_ROOT -%files -f %{name}.lang +%files %defattr(644,root,root,755) -%doc AUTHORS ChangeLog 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 -%{_libdir}/kde3/plugins/boson/*.la -%attr(755,root,root) %{_libdir}/kde3/plugins/boson/*.so.0.0.0 -%{_libdir}/kde3/plugins/boson/*.so -%{_libdir}/kde3/plugins/boson/*.so.0 -%attr(755,root,root) %{_libdir}/kde3/plugins/designer/*.so -%{_libdir}/kde3/plugins/designer/*.la +%attr(755,root,root) %{_libdir}/kde3/plugins/boson/*.so*