From cd9c1ea63513d206e13c7aa6a46597775031edd7 Mon Sep 17 00:00:00 2001 From: Matthias Saou Date: Aug 06 2007 09:58:00 +0000 Subject: Update License field. --- diff --git a/torcs.spec b/torcs.spec index 5c57ad4..6cdf92f 100644 --- a/torcs.spec +++ b/torcs.spec @@ -1,10 +1,8 @@ -%define desktop_vendor fedora - Summary: The Open Racing Car Simulator Name: torcs Version: 1.3.0 -Release: 1%{?dist} -License: GPL +Release: 2%{?dist} +License: GPLv2+ Group: Amusements/Games URL: http://torcs.org/ Source: http://dl.sf.net/torcs/TORCS-%{version}-src.tgz @@ -18,13 +16,8 @@ Requires: torcs-data, torcs-data-tracks-road, torcs-data-cars-extra BuildRequires: libGL-devel, freeglut-devel, freealut-devel, plib-devel >= 1.8.3 BuildRequires: libpng-devel, libjpeg-devel, zlib-devel, openal-devel BuildRequires: desktop-file-utils -# Use monolithic X up to FC4, and modular X for FC5+ and non-Fedora -%if %{!?fedora:6}%{?fedora} >= 5 BuildRequires: libXext-devel, libXt-devel, libXi-devel, libXmu-devel BuildRequires: libXxf86vm-devel, libXrandr-devel, libXrender-devel -%else -BuildRequires: xorg-x11-devel -%endif %description TORCS is a 3D racing cars simulator using OpenGL. The goal is to have @@ -46,20 +39,18 @@ This package contains the robots who can race on their own. %prep -%setup -a 1 -a 2 -a 3 -a 4 +%setup -q -a 1 -a 2 -a 3 -a 4 %patch0 -p1 -b .freealutfix # Put the drivers back where they belong %{__mv} %{name}-%{version}/src/drivers/* src/drivers/ %build -# Force locations with modular X (for FC5+ and non-Fedora) +# Force locations with modular X # Required (1.2.4, still in 1.3.0) %configure \ -%if %{!?fedora:5}%{?fedora} >= 5 --x-includes=%{_includedir} \ --x-libraries=%{_libdir} -%endif # Having %{?_smp_mflags} makes the build fail since 1.2.3, still in 1.3.0 %{__make} @@ -79,11 +70,12 @@ Icon=%{name}.png Terminal=false Type=Application Encoding=UTF-8 -Categories=Application;Game; +Categories=Game; EOF %{__mkdir_p} %{buildroot}%{_datadir}/applications -desktop-file-install --vendor %{desktop_vendor} \ +desktop-file-install \ + --vendor "" \ --dir %{buildroot}%{_datadir}/applications \ %{name}.desktop @@ -96,7 +88,8 @@ find %{buildroot}%{_libdir}/%{name}/ -name '*.so' | xargs %{__chmod} +x %files -%defattr(-, root, root, 0755) +# Directory default mode of 0755 is MANDATORY, since installed dirs are 0777 +%defattr(-,root,root,0755) %doc COPYING README README.linux %{_bindir}/* %dir %{_libdir}/%{name}/ @@ -115,7 +108,7 @@ find %{buildroot}%{_libdir}/%{name}/ -name '*.so' | xargs %{__chmod} +x %{_libdir}/%{name}/modules/ %{_libdir}/%{name}/setup_linux.sh %{_libdir}/%{name}/*-bin -%{_datadir}/applications/%{desktop_vendor}-%{name}.desktop +%{_datadir}/applications/%{name}.desktop %dir %{_datadir}/games/%{name}/ %{_datadir}/games/%{name}/config/ %dir %{_datadir}/games/%{name}/drivers/ @@ -134,7 +127,8 @@ find %{buildroot}%{_libdir}/%{name}/ -name '*.so' | xargs %{__chmod} +x %{_datadir}/pixmaps/%{name}.png %files robots -%defattr(-, root, root, 0755) +# Directory default mode of 0755 is MANDATORY, since installed dirs are 0777 +%defattr(-,root,root,0755) %dir %{_libdir}/%{name}/ %dir %{_libdir}/%{name}/drivers/ # From robots-berniw @@ -160,6 +154,11 @@ find %{buildroot}%{_libdir}/%{name}/ -name '*.so' | xargs %{__chmod} +x %changelog +* Mon Aug 6 2007 Matthias Saou 1.3.0-2 +- Update License field. +- Minor spec file cleanups. +- Minor desktop file cleanups. + * Fri Nov 10 2006 Matthias Saou 1.3.0-1 - Update to 1.3.0. - Remove no longer needed track.cpp patch1.