Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:StefanBruens:branches:games
torcs
torcs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File torcs.spec of Package torcs
# # spec file for package torcs # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: torcs Summary: The Open Racing Car Simulator License: GPL-2.0-or-later Group: Amusements/Games/3D/Race Version: 1.3.7 Release: 0 URL: http://torcs.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/all-in-one/%{version}/%{name}-%{version}.tar.bz2 Source1: manpages.tar.xz Source2: torcs.appdata.xml # PATCH-FIX-OPENSUSE torcs-datadir.patch -- Install data in suse specific directories Patch0: torcs-datadir.patch # PATCH-FIX-UPSTREAM torcs-1.3.7-isnan.patch -- https://sourceforge.net/p/torcs/support-requests/11/ Patch1: torcs-1.3.7-isnan.patch # PATCH-FIX-UPSTREAM torcs-1.3.7-gcc7.patch -- Fix build with GCC 7 (picked from Debian) Patch2: torcs-1.3.7-gcc7.patch BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: freeglut-devel BuildRequires: gcc-c++ BuildRequires: plib-devel BuildRequires: pkgconfig(dri) BuildRequires: pkgconfig(freealut) BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(sdl) BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(xi) BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(xxf86vm) Requires: %{name}-data = %{version} %description A 3D racing car simulator using OpenGL, which includes highly trained, computer programmed driver opponents. %package data Summary: Data files for TORCS Group: Amusements/Games/Action/Race Requires: %{name} = %{version} BuildArch: noarch %description data Architecture independent data files for The Open Racing Car Simulator. %prep %setup -q -a 1 %patch0 -p1 %patch1 -p1 %if %(gcc -dumpversion | cut -c 1) >= 7 %patch2 -p1 %endif %build %configure # WARNING: don't use parallel build because of compiling fatal errors. make V=1 %install make V=1 install DESTDIR=%{buildroot} make V=1 datainstall DESTDIR=%{buildroot} install -dm755 %{buildroot}%{_datadir}/applications/ install -m755 -t %{buildroot}%{_datadir}/applications/ torcs.desktop mkdir -p %{buildroot}%{_datadir}/pixmaps/ cp torcs.xpm %{buildroot}%{_datadir}/pixmaps/ cp icon.png %{buildroot}%{_datadir}/pixmaps/torcs.png desktop-file-edit %{buildroot}%{_datadir}/applications/%{name}.desktop --remove-category=Application --add-category=Simulation --set-icon=torcs chmod +x %{buildroot}%{_datadir}/torcs/telemetry/telemetry.sh %fdupes %{buildroot}%{_datadir} find %{buildroot}%{_prefix} -exec chmod go-w {} + rm -rf %{buildroot}/%{_datadir}/%{name}/COPYING install -dm755 %{buildroot}%{_mandir}/man6 install -m644 -t %{buildroot}%{_mandir}/man6 *.6 install -Dm644 %{S:2} %{buildroot}%{_datadir}/appdata/torcs.appdata.xml %files %defattr(-, root, root) %doc COPYING README %{_bindir}/* %{_mandir}/man6/* %{_libdir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/* %dir %{_datadir}/appdata/ %{_datadir}/appdata/torcs.appdata.xml %files data %defattr(-, root, root) %{_datadir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor