Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
rigsofrods
rigsofrods.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rigsofrods.spec of Package rigsofrods
# # spec file for package rigsofrods # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: rigsofrods Version: 0.4.7.0 Release: 0 Summary: Rigs of Rods is an open source vehicle simulator License: GPL-3.0 Group: Amusements/Games/3D/Simulation Url: http://www.rigsofrods.org Source0: https://github.com/RigsOfRods/rigs-of-rods/archive/%{version}/rigs-of-rods-%{version}.tar.gz Source1: RoR-wrapper.sh Source2: RoR.desktop Source99: %{name}.changes # PATCH-FIX-UPSTREAM fix-compiler-warnings-errors.patch - https://github.com/RigsOfRods/rigs-of-rods/pull/1289 Patch0: fix-compiler-warnings-errors.patch # PATCH-FEATURE-UPSTREAM allow-reproducible-builds.patch - https://github.com/RigsOfRods/rigs-of-rods/pull/1292 Patch1: allow-reproducible-builds.patch # PATCH-FEATURE-UPSTREAM upstream-man-page.patch - https://github.com/RigsOfRods/rigs-of-rods/commit/7e3c50664d2e97ce00a8638bb57574dbceea9b8f Patch2: upstream-man-page.patch # PATCH-FIX-UPSTREAM fix-resourcedir-detection.patch - Check that path contains needed directories to ensure correct path is picked Patch3: fix-resourcedir-detection.patch BuildRequires: ImageMagick BuildRequires: angelscript2_22-devel BuildRequires: boost-devel >= 1.50 BuildRequires: cg-devel BuildRequires: cmake >= 2.8 BuildRequires: dos2unix BuildRequires: doxygen BuildRequires: fdupes BuildRequires: libSocketW-devel BuildRequires: libircclient-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(Caelum) >= 0.6.2 BuildRequires: pkgconfig(MYGUI) >= 3.2.2 BuildRequires: pkgconfig(OGRE) BuildRequires: pkgconfig(OGRE-Overlay) BuildRequires: pkgconfig(OGRE-Paging) BuildRequires: pkgconfig(OGRE-RTShaderSystem) BuildRequires: pkgconfig(OGRE-Terrain) BuildRequires: pkgconfig(OIS) = 1.3.0 BuildRequires: pkgconfig(PagedGeometry) BuildRequires: pkgconfig(jsoncpp) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libssl) BuildRequires: pkgconfig(openal) > 1.15 Requires: unzip BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} <= 1320 # See build section BuildRequires: gcc-c++ BuildRequires: gcc5-c++ %else BuildRequires: gcc-c++ >= 5 %endif BuildRequires: wxWidgets-devel >= 3 %description What makes Rigs of Rods different to most simulators is its unique soft-body physics: vehicles, machines, objects, etc. are simulated in real-time as flexible soft-body objects, giving the simulation an extremely accurate behavior which entirely depends on the physical construction of the vehicles or objects you create. %prep %setup -q -n rigs-of-rods-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 sed -i -e "s/local\/lib\/OGRE/%{_lib}\/OGRE/" \ -e "s|libCaelum.so|../libCaelum.so|" tools/linux/binaries/plugins.cfg dos2unix COPYING README.md doc/angelscript/*.as doc/angelscript/*.h %build export SOURCE_DATE_EPOCH="$(sed -n '/^----/n;s/ - .*$//;p;q' %{SOURCE99} | date -u -f - +%%s)" %cmake -DBUILD_DEV_VERSION=OFF \ -DROR_USE_MYGUI=ON \ -DROR_USE_OPENAL=ON \ -DROR_USE_SOCKETW=ON \ -DROR_USE_PAGED=ON \ -DROR_USE_CAELUM=ON \ -DROR_USE_ANGELSCRIPT=ON \ -DROR_USE_JSONCPP=ON \ -DSOCKETW_INCLUDE_DIRS="%{_includedir}/SocketW" # Hack for openSUSE Leap: gcc < 5 does not properly support c++11 regex which leads to std::regex exception on startup # But using gcc other then the default (on Leap gcc 4.8) will lead to wxWidgets crash as the program using wxWidgets and wxWidgets itselfe # have to be compiled with the same version of the standard c++ libary and this has changed between gcc 4.8 and gcc 5. # So we use the build above for the Configurator (RoRConf) and this build for the main game (RoR) %if 0%{?suse_version} == 1315 make %{?_smp_mflags} RoRConfig VERBOSE=1 cd .. mv build build-gcc %cmake -DBUILD_DEV_VERSION=OFF \ -DCMAKE_C_COMPILER=gcc-5 \ -DCMAKE_CXX_COMPILER=g++-5 \ -DROR_USE_MYGUI=ON \ -DROR_BUILD_CONFIGURATOR=OFF \ -DROR_USE_OPENAL=ON \ -DROR_USE_SOCKETW=ON \ -DROR_USE_PAGED=ON \ -DROR_USE_CAELUM=ON \ -DROR_USE_ANGELSCRIPT=ON \ -DROR_USE_JSONCPP=ON \ -DSOCKETW_INCLUDE_DIRS="%{_includedir}/SocketW" %endif make %{?_smp_mflags} VERBOSE=1 convert ../doc/images/rorlogo.png -gravity center \ -background transparent -extent 100x100 -strip ../RoR.png %install pushd build mkdir -p %{buildroot}%{_datadir}/%{name} cp -R bin/resources %{buildroot}%{_datadir}/%{name}/ install -Dm644 bin/plugins.cfg %{buildroot}%{_libexecdir}/%{name}/plugins.cfg install -m755 bin/RoR %{buildroot}%{_libexecdir}/%{name}/RoR %if 0%{?suse_version} == 1315 # See Leap hack in build section popd pushd build-gcc %endif install -m755 bin/RoRConfig %{buildroot}%{_libexecdir}/%{name}/RoRConfig popd # Install wrapper mkdir -p %{buildroot}%{_bindir} sed -e 's|@LIBDIR@|%{_libexecdir}|' -e 's|@DATADIR@|%{_datadir}/%{name}|' %{SOURCE1} > %{buildroot}%{_bindir}/RoR ln -s %{_bindir}/RoR %{buildroot}%{_bindir}/RoRConfig # Install icon and .desktop file install -Dm644 RoR.png %{buildroot}%{_datadir}/pixmaps/RoR.png install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications/RoR.desktop # Install man page install -Dm644 doc/rigsofrods.6 %{buildroot}%{_mandir}/man6/%{name}.6 ln -s %{name}.6%{ext_man} %{buildroot}%{_mandir}/man6/RoR.6%{ext_man} %fdupes %{buildroot}%{_datadir}/%{name} %files %defattr(-, root, root) %doc COPYING README.md %attr(0755, root, root) %{_bindir}/RoR* %{_libexecdir}/%{name} %{_datadir}/%{name} %{_datadir}/pixmaps/RoR.png %{_datadir}/applications/RoR.desktop %{_mandir}/man6/*.6%{ext_man} %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