Name: rcssserver Version: 12.1.3 Release: 2%{?dist} Summary: Robocup 2D Soccer Simulation Server Group: Applications/System License: GPLv2+ URL: http://sourceforge.net/projects/sserver/ Source0: http://downloads.sourceforge.net/sserver/%{name}-%{version}.tar.gz # Source 1 is created by me. Source1: %{name}.desktop Patch0: %{name}-12.1.1-utf8fix.patch Patch1: %{name}-12.1.1-libfix.patch Patch2: %{name}-12.1.3-libdirfix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: automake libtool boost-devel rcssbase-devel desktop-file-utils %description The RoboCup Soccer Simulator Server (rcssserver) is a research and educational tool for mutli-agent systems and artificial intelligence. It allows 11 simulated autonomous robotic players to play soccer (football). This package includes the simulation server. If you want to view the games you should install and run a monitor (rcssmonitor or rcssmonitor_classic). %package devel Summary: Header files and libraries for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: boost-devel rcssbase-devel %description devel This package contains the header files and libraries for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %package gui Summary: A simple way to run 2D Soccer Simulation on a single machine Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: rcssmonitor %description gui This package contains rcsoccersim script as simple way for running 2D Soccer Simulation on a single machine. It'll also provide a menu entry for this script. %prep %setup -q %patch0 -p1 -b .utf8fix %patch1 -p1 -b .libfix %patch2 -p1 -b .libdirfix sed -i.lib \ -e 's|\$ac_boost_path/lib|\$libdir|' \ -e 's|$ac_boost_path_tmp/lib|\$libdir|' \ m4/ax_boost_base.m4 autoreconf -if # Fix rpath sed -i.rpath -e '/sys_lib_search_path_spec/s| /usr/lib| /lib64 /usr/lib64 /usr/lib|' \ configure %build %configure sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool #%{?_smp_mflags} doesn't work make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" rm -rf %{buildroot}/%{_libdir}/*.la rm -rf %{buildroot}/%{_libdir}/%{name}/modules/*.la desktop-file-install --vendor="fedora" \ --dir=%{buildroot}/%{_datadir}/applications %{SOURCE1} %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING.LESSER NEWS README %{_bindir}/rcss* %{_libdir}/*.so.* %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/modules %{_libdir}/%{name}/modules/* %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/*.so %files gui %defattr(-,root,root,-) %{_bindir}/rcsoccersim %{_datadir}/applications/* %changelog * Sat Sep 13 2008 Hedayat Vatankhah 12.1.3-2 (Thanks to Mamoru Tasaka) - Fixed License tag - Fixed gui sub-package requires to include release number of the main package - Added defattr to -gui files section - Modules moved completely to the main package (from -devel) - Fixed libdir problem in 64bit platforms in rcsoccersim.in * Thu Sep 11 2008 Hedayat Vatankhah 12.1.3-1 - Updated to the latest version (12.1.3) * Thu Sep 04 2008 Hedayat Vatankhah 12.1.1-1 - Some fixes from rcssbase.spec - Added gui subpackage * Fri Jul 11 2008 Hedayat Vatankhah 12.1.1-1 - Initial version