#%global debug_package %{nil} %global _pkgbuilddir %{_builddir}/%{name}_%{version} %global real_ver rc1-r4420 %global pkg_name speed-dreams-2 Summary: The Open Racing Car Simulator Name: speed-dreams Version: 2.0.0 Release: 0.1.rc1_r4420.12%{?dist} License: GPLv2+ Group: Amusements/Games URL: http://speed-dreams.org/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-base-%{version}-rc1-r4420.tar.xz Source1: http://downloads.sourceforge.net/%{name}/%{name}-src-wip-cars-and-tracks-%{version}-rc1-r4420.tar.xz Source2: http://downloads.sourceforge.net/%{name}/%{name}-src-hq-cars-and-tracks-%{version}-rc1-r4420.tar.xz Source3: http://downloads.sourceforge.net/%{name}/%{name}-src-more-hq-cars-and-tracks-%{version}-rc1-r4420.tar.xz Patch0: %{pkg_name}-bindir.patch Source9: %{pkg_name}.conf Source10: %{pkg_name}.desktop Requires: opengl-games-utils BuildRequires: cmake BuildRequires: SDL-devel BuildRequires: desktop-file-utils BuildRequires: enet-devel BuildRequires: freealut-devel BuildRequires: freeglut-devel BuildRequires: libGL-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libXi-devel BuildRequires: libXmu-devel BuildRequires: libXrandr-devel BuildRequires: plib-devel %description Speed-Dreams is a 3D racing cars simulator using OpenGL. A Fork of TORCS. The goal is to have programmed robots drivers racing against each others. You can also drive yourself with either a wheel, keyboard or mouse. %package robots-base Summary: The Open Racing Car Simulator additional dirt tracks Group: Amusements/Games Requires: speed-dreams %description robots-base Speed Dreams is a 3D racing cars simulator using OpenGL. A Fork of TORCS. The goal is to have programmed robots drivers racing against each others. You can also drive yourself with either a wheel, keyboard or mouse. This package contains additional tracks for the game. %package devel Summary: The Open Racing Car Simulator additional oval tracks Group: Amusements/Games Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Speed Dreams is a 3D racing cars simulator using OpenGL. The goal is to have programmed robots drivers racing against each others. You can also drive yourself with either a wheel, keyboard or mouse. This package contains the development files for the game. %prep %setup -q -c -n %{name}-src-base-%{version}-%{release} -a1 -a2 -a3 %patch0 -p1 -b .bindir %build %cmake -DCMAKE_INSTALL_PREFIX:PATH="%{_prefix}" \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -DOPTION_DEBUG:STRING=ON \ -DOPTION_OFFICIAL_ONLY:BOOL=ON make %{?_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install install -dm 755 %{buildroot}%{_libdir}/games/%{name}/lib install -D -p -m 755 src/modules/simu/simuv2.1/SOLID-2.0/src/libsolid.so %{buildroot}%{_libdir}/games/%{pkg_name}/lib/ install -D -p -m 755 src/libs/tgf/libtgf.so %{buildroot}%{_libdir}/games/%{pkg_name}/lib/ # Add non standard lib path /usr/lib64/games/speed-dreams-2/lib install -dm 755 -p ${RPM_BUILD_ROOT}/etc/ld.so.conf.d cp %{SOURCE9} %{buildroot}/etc/ld.so.conf.d/%{pkg_name}.conf desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE10} # We need this for proper automatic stripping to take place (still in 1.3.0) find %{buildroot}%{_libdir}/games/ -name '*.so' | xargs %{__chmod} +x # remove cmake files find %{buildroot} -type f -name "*.cmake" -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files # Directory default mode of 0755 is MANDATORY, since installed dirs are 0777 # %defattr(-,root,root,0755) %dir %{_datadir}/games/%{pkg_name}/ %dir %{_libdir}/games/ %{_libdir}/games/%{pkg_name}/ %{_bindir}/%{pkg_name} %{_bindir}/sd2-* %{_sysconfdir}/ld.so.conf.d/%{pkg_name}.conf %files robots-base %defattr(-,root,root,-) # data packages, installs tracks, car models, fonts ... %{_datadir}/games/%{pkg_name}/* %{_datadir}/applications/%{pkg_name}.desktop %files devel %defattr(-,root,root,-) %{_includedir}/%{pkg_name}/ %changelog * Sun Jan 29 2012 Martin Gansser 2.0.0-rc1-r4420-12 - rpm macro cleanup * Thu Jan 26 2012 Martin Gansser 2.0.0-rc1-r4420-11 - add bindir patch * Wed Jan 25 2012 Martin Gansser 2.0.0-rc1-r4420-10 - more SPEC file cleanups * Thu Jan 24 2012 Martin Gansser 2.0.0-rc1-r4420-9 - more SPEC file cleanups - removing files from /usr/share/pixmap * Mon Jan 23 2012 Martin Gansser 2.0.0-rc1-r4420-8 - more SPEC file cleanups * Sat Jan 21 2012 Martin Gansser 2.0.0-rc1-r4420-7 - SPEC file optimization * Fri Jan 20 2012 Martin Gansser 2.0.0-rc1-r4420-6 - add library path to ld.so.conf.d/speed-dreams-2.conf * Mon Jan 16 2012 Martin Gansser 2.0.0-rc1-r4420-5 - new release * Sat Oct 31 2011 Martin Gansser 2.0.0-b1-r3937-4 - add CMAKE options DOPTION_DEBUG and SKIP_RPATH * Sun Oct 16 2011 Mario Blättermann 2.0.0-b1-r3937-3 - Removed unneeded definitions of BuildRoot, clean section - Corrected URL - Moved the *.desktop file to a real file as second source - Removed unneeded BuildRequires * Fri Oct 14 2011 Martin Gansser 2.0.0-b1-r3937-2 - copy libsolid.so to SD lib dir * Mon Oct 4 2011 Martin Gansser 2.0.0-b1-r3937-1 - new version for Fedora 15 * Thu Jun 24 2010 Martin Gansser 1.4.0-r2307-2 - initial version for Fedora 13