-#
-# Spec file for package Boson
-#
-# Please send bugfixes or comments to the packager
-#
-
-
-#
-# Thomas : Every packager should change only those four lines
-#
-
-# THe number of your attempt to build the rpm
-%define release 1
-# The name of your distribution : ex "SuSe Linux 6.0 (i386)", or "RedHat 5.1 (alpha)"
-%define distro LinuxPPC R5/Q3
-# THe place where kde is installed in your distro (probably /opt/kde/)
-%define prefix /usr
-# Your name
-%define packager Thomas Capricelli <capricel@enst.fr>
-
-#
-# Thomas : shouldn't be altered after this line
-#
-
-%define version 0.2
-
-# Directory-related Tags
-%define builddir $RPM_BUILD_DIR/boson-%{version}
-BuildRoot: /var/tmp/boson-%{version}-root
-Prefix: %{prefix}
-
-# Package Naming Tags
-Name: boson
-Version: %{version}
-Release: %{release}
-Distribution: %{distro}
-Packager: %{packager}
-Group: X11/KDE/Games
-
-#
-Icon: boson.xpm
-Source0: boson-%{version}.tgz
-Source1: boson-pics-%{version}.tgz
-
-# Dependancy Tags
-Provides: boson
-Serial: %{release}
-AutoReqProv: Yes
-
-# Descriptive Tags
-Summary: Boson : a Real-Time Strategy Game (RTS) for the KDE project
-Vendor: Thomas Capricelli <capricel@enst.fr>, Benjamin Adler <BenAdler@gmx.net>
-Copyright: GPL
-URL: http://aquila.rezel.enst.fr/boson/
+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.10
+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
+URL: http://boson.sourceforge.net/
+BuildRequires: arts-devel
+BuildRequires: kdegames-devel >= 3.0.3
+BuildRequires: kdelibs-devel >= 3.0.3
+BuildRequires: lib3ds-devel
+BuildRequires: rpmbuild(macros) >= 1.129
+Requires: arts-X11
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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.
-
-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.
+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 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); 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 -n boson-%{version}
+%setup -q -n %{name}-all-%{version}
+%patch0 -p1
+%patch1 -p1
+
%build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
- --prefix=$KDEDIR \
- --libdir=%{buildroot}/$KDEDIR/lib \
- --with-install-root=%{buildroot}
-make
+kde_htmldir=%{_kdedocdir}; export kde_htmldir
+%configure \
+ --disable-rpath \
+ --with-xinerama
+%{__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
-## 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
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-%clean
-rm -rf %{builddir}
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
-#rm -f $RPM_SOURCE_DIR/boson*
+mv -f $RPM_BUILD_ROOT%{_datadir}/applnk/Games/TacticStrategy/boson \
+ $RPM_BUILD_ROOT%{_desktopdir}/kde
-%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
+%find_lang %{name} --with-kde
-%changelog
-* Tue Sep 21 1999 Thomas Capricelli <capricel@enst.fr>
-- making it the way I want it..
-- adapted to boson-0.2 (Games/Boson)
-* Thu Sep 17 1999 Guillaume Assire <alphagolf@rocketmail.com>
-- Initial packaging version 0.1
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/apps/boson
+%{_desktopdir}/kde/*.desktop
+%{_datadir}/config/*
+%{_iconsdir}/hicolor/*/*/*
+%dir %{_libdir}/kde3/plugins/boson
+%attr(755,root,root) %{_libdir}/kde3/plugins/boson/*.so*
+%{_libdir}/kde3/plugins/boson/*.la
+%attr(755,root,root) %{_libdir}/kde3/plugins/designer/*.so
+%{_libdir}/kde3/plugins/designer/*.la