Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lemmy04:snowglobe
phoenix-firestorm-release
phoenix-firestorm-release.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File phoenix-firestorm-release.spec of Package phoenix-firestorm-release
# # spec file for package phoenix-firestorm-release # # 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/ # %if 0%{?is_opensuse} && 0%{?suse_version} >= 1550 %define pythons python310 %endif %define use_system_libs FALSE %define __provides_exclude_from ^%{prefix}/lib/.*$ %global _filter_GLIBC_PRIVATE 1 %define _major 6 %define _minor 6 %define _patch 8 %define _svn 68505 %define _githash 5806c34ce1 %define _version %{_major}.%{_minor}.%{_patch}.%{_svn} %define _exename firestorm %define _srcname %{name} %define _menuname FireStorm-Release %define _release %{_svn} %define _vibuver 4f31bde %ifarch x86_64 %define _arch x86_64 %else %define _arch i686 %endif Name: phoenix-firestorm-release Summary: Phoenix Firestorm License: GPL-2.0-only Group: Amusements/Games/RPG Version: %{_version} Release: 1.1 URL: https://www.firestormviewer.org/ #%%if 0%{?suse_version} < 1550 && 0%{?is_opensuse} Provides: libvivoxoal.so.1 Provides: libvivoxplatform.so Provides: libvivoxsdk.so #%%endif PreReq: permissions Prefix: /usr/share/games/%{name} ExclusiveArch: x86_64 Source0: %{name}-%{_version}.tar.xz Source2: prebuilds-x86_64-%{_major}.%{_minor}.tar.xz Source3: fs-build-variables.%{_vibuver}.tar.xz Source4: fmodstudio-2.02.09-linux64-222780906.tar.bz2 %define FMOD_HASH_4 a28c5880dd80fec533ca074be85bd9fd Source999: %{name}-rpmlintrc Source1000: find-requires Source1001: %{name}.permissions BuildRequires: bison BuildRequires: cmake BuildRequires: doxygen BuildRequires: fdupes BuildRequires: flex BuildRequires: fontconfig-devel BuildRequires: gdb BuildRequires: git BuildRequires: glibc-devel BuildRequires: libX11-devel BuildRequires: libXcursor-devel BuildRequires: libXft-devel BuildRequires: libXinerama-devel BuildRequires: libXrandr-devel BuildRequires: libXrender-devel BuildRequires: libxml2-devel BuildRequires: unzip BuildRequires: libpulse-devel %if 0%{?suse_version} BuildRequires: Mesa-devel BuildRequires: glu-devel BuildRequires: libXcomposite1 BuildRequires: libcairo2 BuildRequires: libpixman-1-0 BuildRequires: memory-constraints BuildRequires: python3-base BuildRequires: python3-xml BuildRequires: update-desktop-files %else BuildRequires: cairo-devel BuildRequires: libXcomposite-devel BuildRequires: mesa-libGL-devel BuildRequires: mesa-libGLU-devel BuildRequires: pixman-devel BuildRequires: python %endif %if 0%{?suse_version} >= 1550 BuildRequires: %{python_module autobuild} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module requests} BuildRequires: %{python_module llbase} ##BuildRequires: gcc7 gcc7-c++ ##BuildRequires: glib2-devel ##BuildRequires: glibc-devel-static BuildRequires: libXdamage-devel Requires: libXdamage1 ##%define _lto_cflags %{nil} %else BuildRequires: python3-autobuild BuildRequires: python3-llbase BuildRequires: python3-setuptools %endif BuildRequires: gcc gcc-c++ BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?is_opensuse} Provides: config(%{name}) Requires: gstreamer-plugins-bad Requires: gstreamer-plugins-good Requires: gstreamer-plugins-ugly Requires: libgstapp-1_0-0 Requires: libgstreamer-1_0-0 Requires: libquicktime0 %else Requires: libLLVM Requires: libgstapp-0.10.so.0 Requires: libgstbasevideo-0.10.so.23 Requires: libgstflv.so Requires: libgstinterfaces-0.10.so.0 Requires: libgstsdl.so Requires: libquicktime.so.0 %endif Provides: libortp.so Provides: libuuid.so.1 Provides: libvivoxoal.so.1 Provides: libvivoxplatform.so Provides: libvivoxsdk.so Provides: libalut.so.0()(64bit) Provides: libcef.so()(64bit) Provides: libdirect-1.7.so.1()(64bit) Provides: libdirectfb-1.7.so.1()(64bit) Provides: libfmod.so.13()(64bit) Provides: libfusion-1.7.so.1()(64bit) Provides: libhunspell-1.3.so.0()(64bit) Provides: libminigbm.so()(64bit) Provides: libuuid.so.16()(64bit) Provides: libvlccore.so.8()(64bit) AutoProv: no %debug_package %description The Phoenix Firestorm Viewer (Release version) The Phoenix Firestorm Project is currently active in developing the Firestorm Viewer, the successor to the now discontinued Phoenix Viewer. Firestorm Viewer is based on the Linden Lab V3 LGPL code base and has an enormous number of features, options and interface customization choices, including a look similar to its predecessor Phoenix Viewer. Firestorm is developed for Windows, Linux and Mac OS X operating systems. %prep %setup -q -n %{name} -T -b 0 -a 3 %autopatch -p1 chmod +x %{SOURCE1000} rm -rf /var/tmp/$USER/install.cache mkdir -p /var/tmp/$USER/install.cache cd /var/tmp/$USER tar xaf %{SOURCE2} ## cp %{SOURCE2000} /var/tmp/$USER/install.cache cp %{SOURCE1000} $RPM_BUILD_DIR/%{_srcname} ## export SUSE_ASNEEDED=0 cd $RPM_BUILD_DIR/%{_srcname} ##%if 0%{?suse_version} >= 1550 ##export CXX=/usr/bin/g++-7 ##export CC=/usr/bin/gcc-7 ##export CPP=/usr/bin/cpp-7 ##%endif export CFLAGS="-fopenmp $(echo $RPM_OPT_FLAGS|sed -e 's/-Wall//' -e 's/-fstack-clash-protection//') -fpermissive -Wno-unused-but-set-variable -Wformat" export CXXFLAGS="${CFLAGS} -fpermissive" export CMAKE_CXX_FLAGS=${CXXFLAGS} export revision=%{_svn} export gitHash=%{_githash} export buildVer=%{_svn} export LL_BUILD=${CXXFLAGS} export AUTOBUILD_VARIABLES_FILE=$RPM_BUILD_DIR/%{_srcname}/fs-build-variables/variables autobuild installables edit fmodstudio platform=linux64 hash=%{FMOD_HASH_4} url=file://%{SOURCE4} autobuild configure -c ReleaseFS_open -A 64 -- --chan Release \ --avx2 \ --fmodstudio \ -DCMAKE_POLICY_DEFAULT_CMP0072=OLD \ -DDISCORD_API_KEY:STRING="621677063895777310" \ -DGCC_DISABLE_FATAL_WARNINGS:BOOL=ON \ -DLL_LINUX=ON \ -DNDOF:BOOL=ON \ -DND_USE_OPENJPEG:BOOL=OFF \ -DUSE_JEMALLOC:BOOL=ON \ -DUSE_SDL2:BOOL=OFF \ -DUSESYSTEMLIBS:BOOL=%{use_system_libs} %build cd $RPM_BUILD_DIR/%{_srcname}/build-linux-%{_arch} ## export SUSE_ASNEEDED=0 ##%if 0%{?suse_version} >= 1550 ##export CXX=/usr/bin/g++-7 ##export CC=/usr/bin/gcc-7 ##export CPP=/usr/bin/cpp-7 ##%endif export CFLAGS="-fopenmp $(echo $RPM_OPT_FLAGS|sed -e 's/-Wall//' -e 's/-fstack-clash-protection//') -fpermissive -Wno-unused-but-set-variable -Wformat" export CXXFLAGS="${CFLAGS} -fpermissive" export CMAKE_CXX_FLAGS=${CXXFLAGS} export revision=%{_svn} export gitHash=%{_githash} export buildVer=%{_svn} export LL_BUILD=${CXXFLAGS} export AUTOBUILD_VARIABLES_FILE=$RPM_BUILD_DIR/%{_srcname}/fs-build-variables/variables %limit_build -m 2300 make %{?_smp_mflags} %install export NO_BRP_CHECK_RPATH=true install -D -m 0644 %{SOURCE1001} $RPM_BUILD_ROOT/etc/permissions.d/%{name} install -d -m 755 $RPM_BUILD_ROOT/%{prefix} cd $RPM_BUILD_DIR/%{_srcname}/build-linux-%{_arch}/newview/packaged chmod a-x *txt #mv FS_No_LD_Hacks.txt FS_Do_Use_LD_Hacks.txt pushd lib [ -f libopenal.so -a ! -f libopenal.so.1 ] && ln -sf libopenal.so libopenal.so.1 rm -f /tmp/find-requires.libs chmod g-w,o-w * for i in *; do echo " /$i/d" >> /tmp/find-requires.libs ; done; popd cd $RPM_BUILD_DIR/%{_srcname}/build-linux-%{_arch}/newview/packaged ### fix ALL permissions ### first, just to be sure that the basic perms of files and folders are not too crazy find . -type f |xargs -r chmod 644 find . -type d |xargs -r chmod 755 ### make only the necessary pieces executable find ./lib -type f |xargs -r chmod a+x find . -type f -a -iname \*.sh |xargs -r chmod a+x find ./bin -type f -a -name SL\* |xargs -r chmod a+x find . -type f -a -iname \*-bin |xargs -r chmod a+x find ./bin/llplugin -type f |xargs -r chmod a+x find ./lib/ -type f -a -iname \*.pak -o -iname \*.bin -o -iname \*.dat |xargs -r chmod -v a-x chmod a+x firestorm bin/dullahan_host bin/chrome-sandbox %if 0%{?suse_version} < 1550 && 0%{?is_opensuse} # now go strip-crazy on stuff find . -type f -a -perm /111 -a -! -name \*.sh -a -! -name firestorm -a -! -name plugins.dat |xargs -r strip -Sp %endif # now delete the .debug folder from bin/ rm -rf bin/.debug # remove the install script - we do not need that in a rpm package at all rm -vf install.sh cp -pr . $RPM_BUILD_ROOT/%{prefix} ## if tumbleweed then remove voice #%%if 0%{?suse_version} >= 1550 #rm -v $RPM_BUILD_ROOT/%{prefix}/bin/SLVoice #rm -v $RPM_BUILD_ROOT/%{prefix}/lib/libortp* #rm -v $RPM_BUILD_ROOT/%{prefix}/lib/libvivox* #%%endif mv $RPM_BUILD_ROOT/%{prefix}/README*.txt $RPM_BUILD_ROOT/%{prefix}/licenses.txt $RPM_BUILD_ROOT/%{prefix}/VivoxAUP.txt $RPM_BUILD_DIR/%{_srcname} chmod 644 *.txt install -d $RPM_BUILD_ROOT/usr/share/pixmaps install -d $RPM_BUILD_ROOT/usr/bin install $RPM_BUILD_DIR/%{_srcname}/indra/newview/res/%{_exename}_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{_menuname}.png ln -s %{prefix}/%{_exename} $RPM_BUILD_ROOT/usr/bin/%{_menuname} %if 0%{?suse_version} install -d $RPM_BUILD_ROOT/usr/share/applications %suse_update_desktop_file -c FireStorm-Release "FirestormOS-Releasex64 - %{_version}" "FirestormOS-Releasex64 - %{_version}" "FireStorm-Release" FireStorm-Release "Game;RolePlaying;Adult;" %endif %fdupes $RPM_BUILD_ROOT/%{prefix} %post /sbin/ldconfig %set_permissions /usr/share/games/%{name}/bin/chrome-sandbox %postun /sbin/ldconfig %verifyscript %verify_permissions -e /usr/share/games/%{name}/bin/chrome-sandbox %files %defattr(-,root,root,0755) %doc README-linux*.txt licenses.txt VivoxAUP.txt %verify(not mode) %attr(4755,root,root) /usr/share/games/%{name}/bin/chrome-sandbox %{prefix} %if 0%{?suse_version} /usr/share/applications/* %endif /usr/share/pixmaps/* /usr/bin/%{_menuname} %config /etc/permissions.d/%{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