2 # Spec file for package Boson
4 # Please send bugfixes or comments to the packager
9 # Thomas : Every packager should change only those four lines
12 # THe number of your attempt to build the rpm
14 # The name of your distribution : ex "SuSe Linux 6.0 (i386)", or "RedHat 5.1 (alpha)"
15 %define distro LinuxPPC R5/Q3
16 # THe place where kde is installed in your distro (probably /opt/kde/)
19 %define packager Thomas Capricelli <capricel@enst.fr>
22 # Thomas : shouldn't be altered after this line
27 # Directory-related Tags
28 %define builddir $RPM_BUILD_DIR/boson-%{version}
29 BuildRoot: /var/tmp/boson-%{version}-root
36 Distribution: %{distro}
42 Source0: boson-%{version}.tgz
43 Source1: boson-pics-%{version}.tgz
51 Summary: Boson : a Real-Time Strategy Game (RTS) for the KDE project
52 Vendor: Thomas Capricelli <capricel@enst.fr>, Benjamin Adler <BenAdler@gmx.net>
54 URL: http://aquila.rezel.enst.fr/boson/
57 Boson is a real-time strategy game, like Command&Conquer(tm) or StarCraft(tm).
58 It is designed to run on Unix (Linux) computers and uses the Qt
59 Toolkit and QwSpriteField. A minimum of two players is required, since there is
60 no artifical intelligence (yet?). Boson is still in very early development
63 Boson's Code and Graphics are published under the GNU General Public License.
65 If you want to know more about Boson, have a look at the Web site.
68 %setup -n boson-%{version}
70 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
72 --libdir=%{buildroot}/$KDEDIR/lib \
73 --with-install-root=%{buildroot}
78 if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT ; fi
79 make prefix=$RPM_BUILD_ROOT%{prefix} install
81 ## install textures and resources files :
82 mkdir $RPM_BUILD_ROOT%{prefix}/share/apps/
83 cd $RPM_BUILD_ROOT%{prefix}/share/apps/
84 cp $RPM_SOURCE_DIR/boson-pics-%{version}.tgz .
85 gunzip boson-pics-%{version}.tgz
86 tar xvf boson-pics-%{version}.tar
87 rm boson-pics-%{version}.tar
91 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
92 #rm -f $RPM_SOURCE_DIR/boson*
96 %{prefix}/share/applnk/
98 %{prefix}/share/icons/
99 %doc %{prefix}/share/doc/HTML/en/Boson/
100 %doc AUTHORS COPYING ChangeLog INSTALL README TODO
103 * Tue Sep 21 1999 Thomas Capricelli <capricel@enst.fr>
104 - making it the way I want it..
105 - adapted to boson-0.2 (Games/Boson)
106 * Thu Sep 17 1999 Guillaume Assire <alphagolf@rocketmail.com>
107 - Initial packaging version 0.1